Fixed ruby 1.9 String Indexing issue, using Rex::Text.uri_encode
parent
c2c160f86c
commit
12a28bd519
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue