From c632d0e6e2d488604b4dc67012d7bde48f0f7cce Mon Sep 17 00:00:00 2001 From: kris Date: Tue, 3 Aug 2010 18:54:29 +0000 Subject: [PATCH] remove unused port arg from host scripts' action/hostrule --- scripts/smb-brute.nse | 2 +- scripts/sniffer-detect.nse | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/smb-brute.nse b/scripts/smb-brute.nse index 0bb3ba79e..4a74a1123 100644 --- a/scripts/smb-brute.nse +++ b/scripts/smb-brute.nse @@ -1060,7 +1060,7 @@ local function go(host) end --_G.TRACEBACK = TRACEBACK or {} -action = function(host, port) +action = function(host) -- TRACEBACK[coroutine.running()] = true; local status, result diff --git a/scripts/sniffer-detect.nse b/scripts/sniffer-detect.nse index 916b60a34..89d2ec596 100644 --- a/scripts/sniffer-detect.nse +++ b/scripts/sniffer-detect.nse @@ -16,7 +16,7 @@ license = "Same as Nmap--See http://nmap.org/book/man-legal.html" categories = {"discovery", "intrusive"} -- okay, we're interested only in hosts that are on our ethernet lan -hostrule = function(host, port) +hostrule = function(host) return host.directly_connected == true and host.mac_addr ~= nil and host.mac_addr_src ~= nil and @@ -63,7 +63,7 @@ do_test = function(dnet, pcap, host, test) return('_') end -action = function(host, port) +action = function(host) local dnet = nmap.new_dnet() local pcap = nmap.new_socket() local _