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:
@@ -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 _
|
||||
|
||||
Reference in New Issue
Block a user