1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-28 18:39:03 +00:00

Suppresses empty output if no credentials are found

This commit is contained in:
nnposter
2017-03-29 23:23:22 +00:00
parent 7e6146d4c5
commit 95c42025d7

View File

@@ -368,5 +368,7 @@ action = function(host, port)
end
end
end
return output, stdnse.format_output(true, text_output)
if #text_output > 0 then
return output, stdnse.format_output(true, text_output)
end
end