1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-30 19:39:07 +00:00

Show the "service" XML element whenever a tunnel is detected.

Previously this would be omitted if the service was not otherwise
discovered, and the port it was on was not in nmap-services. (There was
not problem if the port was present in nmap-services with a name of
"unknown".)
This commit is contained in:
david
2012-03-31 03:21:27 +00:00
parent 01f5d05159
commit 3741b5a4fa
2 changed files with 5 additions and 1 deletions

View File

@@ -1,5 +1,9 @@
# Nmap Changelog ($Id$); -*-text-*-
o Changed XML output to show the "service" element whenever a tunnel
is discovered for a port, even if the service behind it was unknown.
[Matt Foster]
o [Zenmap] Fixed a crash that would happen in the profile editor when
the script.db file doesn't exist. The bug was reported by Daniel
Miller.

View File

@@ -778,7 +778,7 @@ void printportoutput(Target *currenths, PortList *plist) {
xml_attribute("reason_ip", "%s", inet_ntop_ez(&current->reason.ip_addr, sizeof(current->reason.ip_addr)));
xml_close_empty_tag();
if (sd.name || sd.service_fp)
if (sd.name || sd.service_fp || sd.service_tunnel != SERVICE_TUNNEL_NONE)
print_xml_service(&sd);
rowno++;