remove unused port arg from host scripts' action/hostrule

This commit is contained in:
kris 2010-08-03 18:54:29 +00:00
parent 1de6efd6b5
commit c632d0e6e2
2 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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 _