Nmap Development mailing list archives

Re: Terser output of ping scan required


From: Daniel Miller <bonsaiviking () gmail com>
Date: Mon, 19 Sep 2011 09:20:59 -0500

Andrew,

This won't help with existing scripts, but the official answer to questions like this is that scripts and other programs that consume Nmap output should be written to use either the XML (-oX, preferred) output or the Grepable (-oG, deprecated) output. The Grepable output has not changed since 4.11 and earlier; and though it is incomplete with regard to NSE script output, it is sufficient for ping scans. The XML output has changed slightly, but not in ways that should break a proper XML parser.

Dan

On 09/17/2011 12:37 AM, Huo Zhigang wrote:
Hi,

In the good old days, I am happy with the terse output of nmap-4.11:
Starting Nmap 4.11 ( http://www.insecure.org/nmap/ ) at 2011-09-07
12:59 GMT
Host m03 (10.10.112.103) appears to be up.
Host m08 (10.10.112.108) appears to be up.
Host m11 (10.10.112.111) appears to be up.
<snip>
Host m27 (10.10.112.127) appears to be up.
Nmap finished: 32 IP addresses (xx hosts up) scanned in 0.320 seconds

Unfortunately, using the new nmap-5.51:
Starting Nmap 5.51 ( http://nmap.org ) at 2011-09-17 13:15 CST
Nmap scan report for 10.10.112.99
Host is up (0.00064s latency).
Nmap scan report for m03 (10.10.112.103)
Host is up (0.00059s latency).
Nmap scan report for m08 (10.10.112.108)
Host is up (0.0012s latency).
Nmap scan report for m11 (10.10.112.111)
Host is up (0.00096s latency).
<snip>
Nmap scan report for m27 (10.10.112.127)
Host is up (0.0011s latency).
Nmap done: 32 IP addresses (xx hosts up) scanned in 1.31 seconds

It is true I can filter redundant info out and do not make a fuss,
but it really caused me some frustrations because several scripts
were built on top of nmap.

nmap has the option to increase the output verbosity (-v,-vv,-vvv),
why not give an option to increase the terseness.


andrew


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


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


Current thread: