Nmap Development mailing list archives

Re: Display Response Times???


From: Brandon Enright <bmenrigh () ucsd edu>
Date: Wed, 07 Jun 2006 18:58:29 +0000

On Wed, 2006-06-07 at 11:46 -0700, Jerry Baker wrote:
Despite having searched for a way to do this for several hours, I
cannot 
locate a method to force nmap to display response times for each 
connection. I need to scan a port range and get some sort of useful 
round trip time information for each port. It can be time to receive 
first ACK, total time to set up connection, or whatever. I just need 
some measure of how long it took for the server to respond on each
port.

Is this at all possible with nmap?

It is possible to gather that information albeit not in a very compact
format.

You want either -d3 (debug level 3) or --packet-trace.  A quick and
dirty Perl script should be able to get the time difference between
sending and receiving.  You'll probably also want to use -n and -P0 in
conjunction with --packet-trace to reduce the amount of noise to sort
through.

Ex:

# nmap --packet-trace -n -p 80 -P0 google.com

Starting Nmap 4.03 ( http://www.insecure.org/nmap/ ) at 2006-06-07 19:01
UTC
SENT (0.0310s) TCP x.x.1.162:39134 > 64.233.167.99:80 S ttl=41 id=24537
iplen=44 seq=1891025424 win=2048
RCVD (0.0960s) TCP 64.233.167.99:80 > x.x.1.162:39134 SA ttl=239 id=9801
iplen=44 seq=1757190416 win=8190 ack=1891025425
Interesting ports on 64.233.167.99:
PORT   STATE SERVICE
80/tcp open  http

Nmap finished: 1 IP address (1 host up) scanned in 0.110 seconds

Hope that is what you are looking for.

Brandon

-- 
Brandon Enright
Network Security Analyst
UCSD ACS/Network Operations
bmenrigh () ucsd edu




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


Current thread: