Linux lorencats.com 5.10.103-v7l+ #1529 SMP Tue Mar 8 12:24:00 GMT 2022 armv7l
Apache/2.4.59 (Raspbian)
: 10.0.0.29 | : 216.73.216.10
Cant Read [ /etc/named.conf ]
7.3.31-1~deb10u7
root
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
usr /
share /
doc /
ruby-hashery /
demo /
[ HOME SHELL ]
Name
Size
Permission
Action
applique
[ DIR ]
drwxr-xr-x
00_introduction.rdoc
159
B
-rw-r--r--
01_open_hash.rdoc
1.62
KB
-rw-r--r--
02_query_hash.rdoc
402
B
-rw-r--r--
03_casting_hash.rdoc
260
B
-rw-r--r--
04_static_hash.rdoc
385
B
-rw-r--r--
05_key_hash.rdoc
376
B
-rw-r--r--
06_open_cascade.rdoc
1.49
KB
-rw-r--r--
07_fuzzy_hash.rdoc
2.9
KB
-rw-r--r--
08_propery_hash.rdoc
715
B
-rw-r--r--
10_association.rdoc
1.17
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : 07_fuzzy_hash.rdoc
= FuzzyHash Should accept strings and retrieve based on them. l = FuzzyHash.new l['asd'] = 'qwe' l['asd'].should == 'qwe' Should accept strings, but the second time you set the same string, it should overwrite. l = FuzzyHash.new l['asd'] = 'asd' l['asd'] = 'qwe' l['asd'].should == 'qwe' Should accept regexs too. l = FuzzyHash.new l[/asd.*/] = 'qwe' l['asdqweasd'].should == 'qwe' Should accept regexs too, but the second time you set the same regex, it should overwrite. l = FuzzyHash.new l[/asd/] = 'asd' l[/asd/] = 'qwe' l['asdqweasd'].should == 'qwe' Should accept regexs too with the match. l = FuzzyHash.new l[/asd.*/] = 'qwe' l.match_with_result('asdqweasd').should == ['qwe', 'asdqweasd'] Should accept regexs that match the whole strong too with the match. l = FuzzyHash.new l[/asd/] = 'qwe' l.match_with_result('asd').should == ['qwe', 'asd'] Should prefer string to regex matches. l = FuzzyHash.new l['asd'] = 'qwe2' l[/asd.*/] = 'qwe' l['asd'].should == 'qwe2' Should allow nil keys. l = FuzzyHash.new l[nil] = 'qwe2' l['asd'] = 'qwe' l['asd'].should == 'qwe' l[nil].should == 'qwe2' Should allow boolean keys. l = FuzzyHash.new l[false] = 'false' l[true] = 'true' l[/.*/] = 'everything else' l[true].should == 'true' l[false].should == 'false' l['false'].should == 'everything else' Should pick between the correct regex. hash = FuzzyHash.new hash[/^\d+$/] = 'number' hash[/.*/] = 'something' hash['123asd'].should == 'something' Should be able to delete by value for hash. l = FuzzyHash.new l[nil] = 'qwe2' l['asd'] = 'qwe' l['asd'].should == 'qwe' l[nil].should == 'qwe2' l.delete_value('qwe2') l[nil].should == nil Should be able to delete by value for regex. l = FuzzyHash.new l[/qwe.*/] = 'qwe2' l['asd'] = 'qwe' l['asd'].should == 'qwe' l['qweasd'].should == 'qwe2' l.delete_value('qwe2') l['qweasd'].should == nil Should iterate through the keys. l = FuzzyHash.new l[/qwe.*/] = 'qwe2' l['asd'] = 'qwe' l['zxc'] = 'qwe' l.keys.size.should == 3 Should iterate through the values. l = FuzzyHash.new l[/qwe.*/] = 'qwe2' l['asd'] = 'qwe' l['zxc'] = 'qwelkj' (['qwe2','qwe','qwelkj'] & l.values).size.should == 3 Should clear. l = FuzzyHash.new l[/qwe.*/] = 'qwe2' l['asd'] = 'qwe' l['zxc'] = 'qwelkj' l.clear l.empty?.should == true Should handle equality. l_1 = FuzzyHash.new l_1[/qwe.*/] = 'qwe2' l_1['asd'] = 'qwelkj' l_1['zxc'] = 'qwe' l_2 = FuzzyHash.new l_2['zxc'] = 'qwe' l_2['asd'] = 'qwelkj' l_2[/qwe.*/] = 'qwe2' l_1.should == l_2 Should return the value when adding the value. h = FuzzyHash.new (h[/asd/] = '123').should == '123' (h['qwe'] = '123').should == '123' That's It.
Close