From 95c42025d7ef11e772b59c3e25d0067a416a0bd3 Mon Sep 17 00:00:00 2001 From: nnposter Date: Wed, 29 Mar 2017 23:23:22 +0000 Subject: [PATCH] Suppresses empty output if no credentials are found --- scripts/http-default-accounts.nse | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/http-default-accounts.nse b/scripts/http-default-accounts.nse index 9fa8d83a8..68795cbd7 100644 --- a/scripts/http-default-accounts.nse +++ b/scripts/http-default-accounts.nse @@ -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