mirror of
https://github.com/nmap/nmap.git
synced 2026-06-10 01:35:18 +00:00
Fixed a small output bug in smb-check-vulns where it would print 'PATCHED' if an error occurred (in addition to the error message)
This commit is contained in:
parent
f4575514af
commit
70275c69c3
1 changed files with 13 additions and 13 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue