Change to JsIdentifiers
parent
4bd2be5dfa
commit
f4139f85cb
|
@ -9,7 +9,7 @@ module Msf
|
|||
super
|
||||
register_advanced_options([
|
||||
OptInt.new('JsObfuscate', [false, "Number of times to obfuscate JavaScript", 0]),
|
||||
OptString.new('Identifiers', [false, "Identifiers to preserve for JsObfu"])
|
||||
OptString.new('JsIdentifiers', [false, "Identifiers to preserve for JsObfu"])
|
||||
], Exploit::JSObfu)
|
||||
end
|
||||
|
||||
|
@ -24,7 +24,7 @@ module Msf
|
|||
#
|
||||
def js_obfuscate(js, opts={})
|
||||
iterations = (opts[:iterations] || datastore['JsObfuscate']).to_i
|
||||
identifiers = (opts[:preserved_identifiers] || datastore['Identifiers'] || '').split(',')
|
||||
identifiers = (opts[:preserved_identifiers] || datastore['JsIdentifiers'] || '').split(',')
|
||||
obfu = ::Rex::Exploitation::JSObfu.new(js)
|
||||
obfu_opts = {}
|
||||
obfu_opts.merge!(iterations: iterations)
|
||||
|
|
Loading…
Reference in New Issue