From 6714caede82db0dcdcbfe62893b94c37bba9f81a Mon Sep 17 00:00:00 2001 From: patrik Date: Tue, 26 Jul 2011 06:46:12 +0000 Subject: [PATCH] Fixed a bug that would prevent the script from displaying any output unless being run in debug mode. [Patrik] --- scripts/ssh2-enum-algos.nse | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/ssh2-enum-algos.nse b/scripts/ssh2-enum-algos.nse index 1c25e15cc..7a3d446e0 100644 --- a/scripts/ssh2-enum-algos.nse +++ b/scripts/ssh2-enum-algos.nse @@ -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