1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-28 02:19:04 +00:00

XML output: include host times and a flag if the host timed out

This commit is contained in:
dmiller
2021-05-07 22:08:44 +00:00
parent f17fa67008
commit 14c7f87d6f
3 changed files with 7 additions and 0 deletions

View File

@@ -2228,8 +2228,10 @@ int nmap_main(int argc, char *argv[]) {
xml_open_start_tag("host");
xml_attribute("starttime", "%lu", (unsigned long) currenths->StartTime());
xml_attribute("endtime", "%lu", (unsigned long) currenths->EndTime());
xml_attribute("timedout", "true");
xml_close_start_tag();
write_host_header(currenths);
printtimes(currenths);
xml_end_tag(); /* host */
xml_newline();
log_write(LOG_PLAIN, "Skipping host %s due to host timeout\n",