From 0dee9b603d72776e25e5980b586e26b2c11db5c8 Mon Sep 17 00:00:00 2001 From: fyodor Date: Fri, 15 Aug 2008 03:30:34 +0000 Subject: [PATCH] Nmap now avoids collapsing large numbers of ports in open|filtered state if verbosity or debugging levels are greater than two. --- portlist.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/portlist.cc b/portlist.cc index 1be4efcc6..78388cfa2 100644 --- a/portlist.cc +++ b/portlist.cc @@ -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;