mirror of
https://github.com/nmap/nmap.git
synced 2025-12-06 04:31:29 +00:00
remove unused port arg from host scripts' action/hostrule
This commit is contained in:
@@ -1060,7 +1060,7 @@ local function go(host)
|
|||||||
end
|
end
|
||||||
|
|
||||||
--_G.TRACEBACK = TRACEBACK or {}
|
--_G.TRACEBACK = TRACEBACK or {}
|
||||||
action = function(host, port)
|
action = function(host)
|
||||||
-- TRACEBACK[coroutine.running()] = true;
|
-- TRACEBACK[coroutine.running()] = true;
|
||||||
|
|
||||||
local status, result
|
local status, result
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ license = "Same as Nmap--See http://nmap.org/book/man-legal.html"
|
|||||||
categories = {"discovery", "intrusive"}
|
categories = {"discovery", "intrusive"}
|
||||||
|
|
||||||
-- okay, we're interested only in hosts that are on our ethernet lan
|
-- 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
|
return host.directly_connected == true and
|
||||||
host.mac_addr ~= nil and
|
host.mac_addr ~= nil and
|
||||||
host.mac_addr_src ~= nil and
|
host.mac_addr_src ~= nil and
|
||||||
@@ -63,7 +63,7 @@ do_test = function(dnet, pcap, host, test)
|
|||||||
return('_')
|
return('_')
|
||||||
end
|
end
|
||||||
|
|
||||||
action = function(host, port)
|
action = function(host)
|
||||||
local dnet = nmap.new_dnet()
|
local dnet = nmap.new_dnet()
|
||||||
local pcap = nmap.new_socket()
|
local pcap = nmap.new_socket()
|
||||||
local _
|
local _
|
||||||
|
|||||||
Reference in New Issue
Block a user