Use anonymous function in setTimeout when executing sequential ARE rules. Added ARE rule for lan fingerprint using common IPs.
This commit is contained in:
23
arerules/lan_fingerprint_common.json
Normal file
23
arerules/lan_fingerprint_common.json
Normal file
@@ -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"
|
||||
}
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user