Nmap Development mailing list archives
[Zenmap] patch for log-scale radius on Topology tab
From: Daniel Miller <bonsaiviking () gmail com>
Date: Fri, 10 Sep 2010 14:27:11 -0500
Hey list,I ran into an issue viewing the Topology tab of a scan of our local network where a few hosts had firewalls, leading a -sU scan to produce a large number (~1000) of open|filtered ports. This made for an unusable topology, since the radius of these hosts was enormous (~500) and covered all the other hosts (see attachment "original.png"). So I developed a patch which uses a logarithmic scale for the radius, specifically radius = BASE_RADIUS + 4 * ln( open_ports ). This is much more usable, and still gives an idea of the number of open ports (see attachment "log_scale.png"). I was still not satisfied, however, since these very secure, firewalled machines were showing up as large red circles. So I hijacked the calculation of the poorly-named "number_of_scanned_ports" property and changed it to ignore open|filtered extraports (I copied the same algorithm used by zenmapCore.NmapParser.HostInfo.get_port_count_by_state, so results should otherwise be the same). For the final view, see attachment "both_changes.png." The 3 offending hosts are now small green dots, as they should be. Thank you for your consideration.
Dan
Attachment:
logradius.patch
Description:
_______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://seclists.org/nmap-dev/
Current thread:
- [Zenmap] patch for log-scale radius on Topology tab Daniel Miller (Sep 10)
- Re: [Zenmap] patch for log-scale radius on Topology tab David Fifield (Sep 20)