mirror of
https://github.com/nmap/nmap.git
synced 2025-12-17 13:09:02 +00:00
o XML output now excludes output for down hosts when doing host
discovery only, except in verbose mode. This is how it already worked for normal scans, but the ping-only case was overlooked. [David]
This commit is contained in:
@@ -1,5 +1,10 @@
|
|||||||
# Nmap Changelog ($Id$); -*-text-*-
|
# Nmap Changelog ($Id$); -*-text-*-
|
||||||
|
|
||||||
|
o XML output now excludes output for down hosts when doing host
|
||||||
|
discovery only, except in verbose mode. This is how it already
|
||||||
|
worked for normal scans, but the ping-only case was overlooked.
|
||||||
|
[David]
|
||||||
|
|
||||||
o [NSE] Added a new Web Service Dynamic Discovery library (wsdd) and the two
|
o [NSE] Added a new Web Service Dynamic Discovery library (wsdd) and the two
|
||||||
scripts broadcast-wsdd-discover and wsdd-discover. [Patrik]
|
scripts broadcast-wsdd-discover and wsdd-discover. [Patrik]
|
||||||
|
|
||||||
|
|||||||
20
nmap.cc
20
nmap.cc
@@ -1682,15 +1682,17 @@ int nmap_main(int argc, char *argv[]) {
|
|||||||
#endif
|
#endif
|
||||||
) || o.listscan) {
|
) || o.listscan) {
|
||||||
/* We're done with the hosts */
|
/* We're done with the hosts */
|
||||||
xml_start_tag("host");
|
if (currenths->flags & HOST_UP || o.verbose) {
|
||||||
write_host_header(currenths);
|
xml_start_tag("host");
|
||||||
printmacinfo(currenths);
|
write_host_header(currenths);
|
||||||
// if (currenths->flags & HOST_UP)
|
printmacinfo(currenths);
|
||||||
// log_write(LOG_PLAIN,"\n");
|
// if (currenths->flags & HOST_UP)
|
||||||
printtimes(currenths);
|
// log_write(LOG_PLAIN,"\n");
|
||||||
xml_end_tag();
|
printtimes(currenths);
|
||||||
xml_newline();
|
xml_end_tag();
|
||||||
log_flush_all();
|
xml_newline();
|
||||||
|
log_flush_all();
|
||||||
|
}
|
||||||
delete currenths;
|
delete currenths;
|
||||||
o.numhosts_scanned++;
|
o.numhosts_scanned++;
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
Reference in New Issue
Block a user