mirror of
https://github.com/nmap/nmap.git
synced 2026-08-31 23:40:57 +00:00
Strip blank lines from the output of targets-asn.nse.
Patch by John Bond.
This commit is contained in:
parent
be2e413914
commit
0c52330285
1 changed files with 6 additions and 4 deletions
|
|
@ -84,10 +84,12 @@ action = function(host, port)
|
|||
break
|
||||
else
|
||||
for i, prefix in ipairs(stdnse.strsplit("\n",data)) do
|
||||
table.insert(prefixes,prefix)
|
||||
if target.ALLOW_NEW_TARGETS then
|
||||
stdnse.print_debug("Added targets: "..prefix)
|
||||
local status,err = target.add(prefix)
|
||||
if ( #prefix > 1 ) then
|
||||
table.insert(prefixes,prefix)
|
||||
if target.ALLOW_NEW_TARGETS then
|
||||
stdnse.print_debug("Added targets: "..prefix)
|
||||
local status,err = target.add(prefix)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue