mirror of
https://github.com/nmap/nmap.git
synced 2025-12-06 04:31:29 +00:00
Fixed a bug that would prevent the script from displaying any output unless
being run in debug mode. [Patrik]
This commit is contained in:
@@ -95,9 +95,12 @@ local output = function(parsed, lists)
|
||||
for _, l in ipairs(lists) do
|
||||
local v = parsed[l]
|
||||
local a = v:len() > 0 and stdnse.strsplit(",", v) or {}
|
||||
local e = { ["name"] = l .. " (" .. #a .. ")" }
|
||||
local e
|
||||
if nmap.verbosity() > 0 then
|
||||
e = { ["name"] = l .. " (" .. #a .. ")" }
|
||||
table.insert(e, a)
|
||||
else
|
||||
e = l .. " (" .. #a .. ")"
|
||||
end
|
||||
table.insert(out, e)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user