Browse Source

Fix bug in js_obfuscate

wchen-r7 3 years ago
parent
commit
d55e68e76b
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      lib/msf/core/exploit/jsobfu.rb

+ 1
- 1
lib/msf/core/exploit/jsobfu.rb View File

@@ -24,7 +24,7 @@ module Msf
24 24
     #
25 25
     def js_obfuscate(js, opts={})
26 26
       iterations = (opts[:iterations] || datastore['JsObfuscate']).to_i
27
-      identifiers = (opts[:preserved_identifiers] || datastore['JsIdentifiers'] || '').split(',')
27
+      identifiers = opts[:preserved_identifiers].blank? ? (datastore['JsIdentifiers'] || '').split(',') : opts[:preserved_identifiers]
28 28
       obfu = ::Rex::Exploitation::JSObfu.new(js)
29 29
       obfu_opts = {}
30 30
       obfu_opts.merge!(iterations: iterations)

Loading…
Cancel
Save