mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 06:40:48 +00:00
Small fix for script output not to include the newtargets comment when no output is produced.
This commit is contained in:
parent
95108436cc
commit
b9a1f0d49e
1 changed files with 3 additions and 1 deletions
|
|
@ -267,7 +267,9 @@ action = function()
|
|||
for ip_addr, mac_addr in pairs(icmp_responders) do
|
||||
table.insert(output,"IP: "..ip_addr..string.rep(" ",15-#ip_addr).." MAC: "..mac_addr)
|
||||
end
|
||||
table.insert(output,"Use the newtargets script-arg to add the results as targets")
|
||||
if #output>0 then
|
||||
table.insert(output,"Use the newtargets script-arg to add the results as targets")
|
||||
end
|
||||
end
|
||||
|
||||
return stdnse.format_output( (#output>0), output )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue