mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 06:40:48 +00:00
Nmap now avoids collapsing large numbers of ports in open|filtered state if verbosity or debugging levels are greater than two.
This commit is contained in:
parent
cbfde183cb
commit
0dee9b603d
1 changed files with 4 additions and 1 deletions
|
|
@ -692,6 +692,9 @@ bool PortList::isIgnoredState(int state) {
|
|||
state == PORT_FRESH)
|
||||
return false; /* Cannot be ignored */
|
||||
|
||||
if (state == PORT_OPENFILTERED && (o.verbose > 2 || o.debugging > 2))
|
||||
return false;
|
||||
|
||||
/* If openonly, we always ignore states that don't at least have open
|
||||
as a possibility. */
|
||||
if (o.openOnly() && state != PORT_OPENFILTERED && state != PORT_UNFILTERED
|
||||
|
|
@ -706,7 +709,7 @@ bool PortList::isIgnoredState(int state) {
|
|||
else
|
||||
max_per_state *= (o.verbose + 20 * o.debugging);
|
||||
}
|
||||
|
||||
|
||||
if (getStateCounts(state) > max_per_state)
|
||||
return true;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue