mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 14:49: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:
parent
c2c163b856
commit
6714caede8
1 changed files with 4 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue