From d67464dda2b238e7ede3f1fa028de204beb7e270 Mon Sep 17 00:00:00 2001 From: dmiller Date: Wed, 12 Feb 2014 18:47:40 +0000 Subject: [PATCH] -sn -v --open will now hide down hosts http://seclists.org/nmap-dev/2014/q1/158 --- CHANGELOG | 4 ++++ nmap.cc | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index 0326b223f..cc283af95 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,5 +1,9 @@ # Nmap Changelog ($Id$); -*-text-*- +o When doing a ping scan (-sn), the --open option will prevent down hosts from + being shown when -v is specified. This aligns with similar output for other + scan types. [Daniel Miller] + o [Ncat] Added support for socks5 and corresponding regression tests. [Marek Lucaszuk, Petr Stodulka] diff --git a/nmap.cc b/nmap.cc index 4e9350b58..5089c33fa 100644 --- a/nmap.cc +++ b/nmap.cc @@ -1826,7 +1826,7 @@ int nmap_main(int argc, char *argv[]) { #endif ) || o.listscan) { /* We're done with the hosts */ - if (currenths->flags & HOST_UP || o.verbose) { + if (currenths->flags & HOST_UP || (o.verbose && !o.openOnly())) { xml_start_tag("host"); write_host_header(currenths); printmacinfo(currenths);