From 05a8b545111229dc0525a60dc963feb6801c375b Mon Sep 17 00:00:00 2001 From: ron Date: Thu, 4 Jun 2009 13:10:00 +0000 Subject: [PATCH] Reduced the amount of output that p2p-conficker.nse gives unless verbosity 2 or higher is given. --- scripts/p2p-conficker.nse | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/scripts/p2p-conficker.nse b/scripts/p2p-conficker.nse index 017172d3a..0eba7b8c5 100644 --- a/scripts/p2p-conficker.nse +++ b/scripts/p2p-conficker.nse @@ -614,12 +614,18 @@ local function go(host) end end - + -- Remove the response if verbose is turned off + if(nmap.verbosity() < 2) then + response = "" + else + response = response .. "|_ " + end + -- Check how many INFECTED hits we got if(count == 0) then - response = response .. string.format("|_ %d/%d checks: Host is CLEAN or ports are blocked\n", count, checks) + response = response .. string.format("%d/%d checks are positive: Host is CLEAN or ports are blocked\n", count, checks) else - response = response .. string.format("|_ %d/%d checks: Host is likely INFECTED\n", count, checks) + response = response .. string.format("%d/%d checks are positive: Host is likely INFECTED\n", count, checks) end