From 70275c69c37e4ec00a7f370902417825110b565f Mon Sep 17 00:00:00 2001 From: ron Date: Tue, 31 Mar 2009 15:04:10 +0000 Subject: [PATCH] Fixed a small output bug in smb-check-vulns where it would print 'PATCHED' if an error occurred (in addition to the error message) --- scripts/smb-check-vulns.nse | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/scripts/smb-check-vulns.nse b/scripts/smb-check-vulns.nse index 5ec158517..824563972 100644 --- a/scripts/smb-check-vulns.nse +++ b/scripts/smb-check-vulns.nse @@ -270,20 +270,20 @@ action = function(host) if(nmap.debugging() > 0) then response = response .. "MS08-067: ERROR: " .. result .. "\n" end - end - - if(result == VULNERABLE) then - response = response .. "MS08-067: VULNERABLE\n" - found = true - elseif(result == UNKNOWN) then - response = response .. "MS08-067: LIKELY VULNERABLE (host stopped responding)\n" - elseif(result == NOTRUN) then - response = response .. "MS08-067: NOT RUN\n" - elseif(result == INFECTED) then - response = response .. "MS08-067: PATCHED (possibly by Conficker)\n" else - if(nmap.verbosity() > 0) then - response = response .. "MS08-067: FIXED\n" + if(result == VULNERABLE) then + response = response .. "MS08-067: VULNERABLE\n" + found = true + elseif(result == UNKNOWN) then + response = response .. "MS08-067: LIKELY VULNERABLE (host stopped responding)\n" + elseif(result == NOTRUN) then + response = response .. "MS08-067: NOT RUN\n" + elseif(result == INFECTED) then + response = response .. "MS08-067: PATCHED (possibly by Conficker)\n" + else + if(nmap.verbosity() > 0) then + response = response .. "MS08-067: FIXED\n" + end end end