mirror of
https://github.com/nmap/nmap.git
synced 2025-12-17 13:09:02 +00:00
Reduced the amount of output that p2p-conficker.nse gives unless verbosity 2 or higher is given.
This commit is contained in:
@@ -614,12 +614,18 @@ local function go(host)
|
|||||||
end
|
end
|
||||||
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
|
-- Check how many INFECTED hits we got
|
||||||
if(count == 0) then
|
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
|
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
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user