Nmap Development mailing list archives

RE: Zenmap IP (host) sort not octet aware


From: "Norris Carden" <ncarden () ascendfcu org>
Date: Mon, 5 Apr 2010 08:15:54 -0500

Good catch on the sort by domain component on hosts with names.

If you select multiple hosts in the left column, you can view them in
the Ports/Hosts tab on the right hand side. That is where I was able to
sort.

Norris Carden, CISSP, CISA

-----Original Message-----
From: David Fifield [mailto:david () bamsoftware com] 
Sent: Sunday, April 04, 2010 9:08 AM
To: Norris Carden
Cc: nmap-dev () insecure org
Subject: Re: Zenmap IP (host) sort not octet aware

On Fri, Apr 02, 2010 at 12:07:05PM -0500, Norris Carden wrote:
In Zenmap, when sorting the list of ports/hosts by the Host column,
the
sort of IPs without host names is not octet-aware... meaning it sorts
like Excel, not like an IP address aware software. This is how it
sorts:

10.1.1.1
10.1.1.10
10.1.1.2
10.1.1.20
10.1.1.3
10.1.1.30

It would be very helpful if this sort was made to be aware that it was
sorting IP addresses in order to present in this fashion:

10.1.1.1
10.1.1.2
10.1.1.3
10.1.1.10
10.1.1.20
10.1.1.30

That's a good point. I can't even get it to sort as in the first
example. (It's sorting by default these three addresses like this:

192.168.0.21
192.168.0.1
192.168.0.190

It looks to me like clicking on the Host column to sort is only sorting
by operating system icon. (See how a little arrow appears in both column
headers.) Sorting by address independently would be more useful. However
there is a also the question of how to treat hostnames.

We could have separate hostname and IP address columns, but that's going
to look gappy in some cases and make an already cramped display even
wider. What would be great would be to combine hostname and IP address
in one column as is done now, and let different sort modes happen when
clicking on the colun header. One click: sort by address; two clicks:
sort by hostname; ideally with a textual indication of which is in
effect in the header. I'm not sure that is easy or possible in GTK+;
I'll have to check.

Sorting hostnames should work starting from the last domain component,
so you get

bar.com
firewall.bar.com
www.bar.com
foo.com
aaa.foo.com
sub.bar.org

David Fifield



_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://seclists.org/nmap-dev/


Current thread: