mirror of
https://github.com/nmap/nmap.git
synced 2025-12-24 08:29:04 +00:00
Check if we have an interface to work with in the prerule of
targets-sniffer.nse.
This commit is contained in:
@@ -58,7 +58,7 @@ local function get_ip_addresses(layer3)
|
||||
end
|
||||
|
||||
prerule = function()
|
||||
return true
|
||||
return stdnse.get_script_args("targets-sniffer.iface") or nmap.get_interface()
|
||||
end
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user