From c58aa814f38cd81eff62ef9a72d18efb16b45fc4 Mon Sep 17 00:00:00 2001 From: nnposter Date: Sat, 15 Apr 2017 00:08:49 +0000 Subject: [PATCH] Suppresses empty output if no vulnerable parameters are found --- scripts/http-rfi-spider.nse | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/http-rfi-spider.nse b/scripts/http-rfi-spider.nse index 06b2c5251..250667063 100644 --- a/scripts/http-rfi-spider.nse +++ b/scripts/http-rfi-spider.nse @@ -286,6 +286,8 @@ function action(host, port) table.insert(text_output, rfi) end - return output, stdnse.format_output(true, text_output) + if #text_output > 0 then + return output, stdnse.format_output(true, text_output) + end end