diff --git a/arerules/lan_fingerprint_common.json b/arerules/lan_fingerprint_common.json new file mode 100644 index 000000000..1e8127b41 --- /dev/null +++ b/arerules/lan_fingerprint_common.json @@ -0,0 +1,23 @@ +{"name": "LAN Fingerprint (Common IPs)", + "author": "antisnatchor", + "browser": ["FF", "C"], + "browser_version": "ALL", + "os": "ALL", + "os_version": "ALL", + "modules": [ + {"name": "internal_network_fingerprinting", + "condition": null, + "code": null, + "options": { + "ipRange":"common", + "ports":"80,8080", + "threads":"3", + "wait":"5", + "timeout":"10" + } + } + ], + "execution_order": [0], + "execution_delay": [0], + "chain_mode": "sequential" +} diff --git a/core/main/autorun_engine/engine.rb b/core/main/autorun_engine/engine.rb index 53d74838c..0c89cba53 100644 --- a/core/main/autorun_engine/engine.rb +++ b/core/main/autorun_engine/engine.rb @@ -114,14 +114,14 @@ module BeEF delayed_exec = '' c = 0 while c < mods.length - delayed_exec += %Q| setTimeout("#{mods[order[c]][:mod_name]}_#{rule_token}();", #{delay[c]}); | + delayed_exec += %Q| setTimeout(function(){#{mods[order[c]][:mod_name]}_#{rule_token}();}, #{delay[c]}); | mod_body = mods[order[c]][:mod_body].to_s.gsub("#{mods[order[c]][:mod_name]}_mod_output", "#{mods[order[c]][:mod_name]}_#{rule_token}_mod_output") wrapped_mod = "#{mod_body}\n" wrapper += wrapped_mod c += 1 end wrapper += delayed_exec - print_more "Final Modules Wrapper:\n #{delayed_exec}" if @debug_on + print_more "Final Modules Wrapper:\n #{wrapper}" if @debug_on wrapper end