mirror of
https://github.com/nmap/nmap.git
synced 2025-12-24 08:29:04 +00:00
-sn -v --open will now hide down hosts
http://seclists.org/nmap-dev/2014/q1/158
This commit is contained in:
@@ -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]
|
||||
|
||||
|
||||
2
nmap.cc
2
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);
|
||||
|
||||
Reference in New Issue
Block a user