Change to JsIdentifiers

bug/bundler_fix
wchen-r7 2016-01-28 15:18:25 -06:00
parent 4bd2be5dfa
commit f4139f85cb
1 changed files with 2 additions and 2 deletions

View File

@ -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)