mirror of
https://github.com/nmap/nmap.git
synced 2025-12-21 23:19:03 +00:00
Note better way to scan all addresses in resolveall.nse
This commit is contained in:
@@ -120,6 +120,7 @@ preaction = function()
|
|||||||
else
|
else
|
||||||
table.insert(output, "Use the 'newtargets' script-arg to add the results as targets")
|
table.insert(output, "Use the 'newtargets' script-arg to add the results as targets")
|
||||||
end
|
end
|
||||||
|
table.insert(output, "Scanning 'hostname*all' will scan all resolved addresses for 'hostname' without using this script.")
|
||||||
return xmloutput, stdnse.format_output(true, output)
|
return xmloutput, stdnse.format_output(true, output)
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -151,6 +152,7 @@ hostaction = function(host)
|
|||||||
else
|
else
|
||||||
table.insert(output, "Use the 'newtargets' script-arg to add the results as targets")
|
table.insert(output, "Use the 'newtargets' script-arg to add the results as targets")
|
||||||
end
|
end
|
||||||
|
table.insert(output, ("Scanning '%s*all' will scan all resolved addresses without using this script."):format(host.targetname))
|
||||||
return xmloutput, stdnse.format_output(true, output)
|
return xmloutput, stdnse.format_output(true, output)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user