mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 06:40:48 +00:00
remove unused port arg from host scripts' action/hostrule
This commit is contained in:
parent
1de6efd6b5
commit
c632d0e6e2
2 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 _
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue