From dcb946dfa21ab4c9d6b933846db0543c1015d47f Mon Sep 17 00:00:00 2001 From: AussieKlutz Date: Wed, 1 Apr 2020 14:38:14 +1000 Subject: [PATCH] First cut, automated scan using new sw_port_scanner module. --- arerules/lan_sw_port_scan.json | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 arerules/lan_sw_port_scan.json diff --git a/arerules/lan_sw_port_scan.json b/arerules/lan_sw_port_scan.json new file mode 100644 index 000000000..5f9e8ba91 --- /dev/null +++ b/arerules/lan_sw_port_scan.json @@ -0,0 +1,29 @@ +{"name": "LAN SW Port Scan", + "author": "aburro & aussieklutz", + "browser": "ALL", + "browser_version": "ALL", + "os": "ALL", + "os_version": "ALL", + "modules": [ + {"name": "get_internal_ip_webrtc", + "condition": null, + "code": null, + "options": {} + }, + {"name": "sw_port_scanner", + "condition": "status==1", + "code": "var s=get_internal_ip_webrtc_mod_output.split('.');var start = s[0]+'.'+s[1]+'.'+s[2]+'.'+s[3]; var mod_input = start;", + "options": { + "ipRange":"<>", + "ports":"80,8080", + "threads":2, + "wait":2, + "timeout":20 + #"port":"80,8080" + } + } + ], + "execution_order": [0, 1], + "execution_delay": [0, 0], + "chain_mode": "nested-forward" +}