Fixed ruby 1.9 String Indexing issue, using Rex::Text.uri_encode

unstable
Jeff Jarmoc 2012-06-12 14:59:06 -05:00
parent c2c160f86c
commit 12a28bd519
1 changed files with 3 additions and 2 deletions

View File

@ -29,7 +29,8 @@ class Metasploit3 < Msf::Exploit::Remote
a system-defined manner" from the RFC) and then passes them to the CGI
binary."
},
'Author' => [ 'egypt', 'hdm' ],
'Author' => [ 'egypt', 'hdm', #original msf exploit
'jjarmoc' ], #added URI encoding obfuscation
'License' => MSF_LICENSE,
'Version' => '$Revision$',
'References' => [
@ -177,7 +178,7 @@ class Metasploit3 < Msf::Exploit::Remote
max.times { chars << rand(string.length)}
end
end
chars.uniq.sort.reverse.each{|index| string[index] = "%"+"%02x" % string[index]}
chars.uniq.sort.reverse.each{|index| string[index] = Rex::Text.uri_encode(string[index,1], "hex-all")}
string
end