Nmap Development mailing list archives

Re: nping command line parsing: set source IP address


From: David Fifield <david () bamsoftware com>
Date: Fri, 17 May 2013 10:47:40 -0700

On Fri, May 17, 2013 at 04:36:48PM +0000, Perry Hooker wrote:
Yes, I built Nping from source.  "make distclean" followed by rebuild
had no effect.  FWIW, this behavior also manifests on our servers
running RHEL Server release 6.2 Beta (Santiago).  Please let me know
what details I can provide to help reproduce this behavior.

It might help if you can find another machine that does not exhibit the
behavior, and see what's different about it. I still suspect something
in the local configuration. This is the output I see with 0.6.25 on
Debian 7:

$ ./nping -c 1 -S 192.168.1.1 127.0.0.1

Starting Nping 0.6.25 ( http://nmap.org/nping ) at 2013-05-17 10:46 PDT
SENT (0.0017s) Starting TCP Handshake > 127.0.0.1:80
RECV (0.0018s) Possible TCP RST received from 127.0.0.1:80 --> Connection refused

Max rtt: N/A | Min rtt: N/A | Avg rtt: N/A
TCP connection attempts: 1 | Successful connections: 0 | Failed: 1 (100.00%)
Tx time: 0.00121s | Tx bytes/s: 66115.70 | Tx pkts/s: 826.45
Rx time: 0.00131s | Rx bytes/s: 0.00 | Rx pkts/s: 0.00
Nping done: 1 IP address pinged in 0.00 seconds

$ ./nping -c 1 -S random 127.0.0.1

Starting Nping 0.6.25 ( http://nmap.org/nping ) at 2013-05-17 10:46 PDT
SENT (0.0016s) Starting TCP Handshake > 127.0.0.1:80
RECV (0.0017s) Possible TCP RST received from 127.0.0.1:80 --> Connection refused

Max rtt: N/A | Min rtt: N/A | Avg rtt: N/A
TCP connection attempts: 1 | Successful connections: 0 | Failed: 1 (100.00%)
Tx time: 0.00123s | Tx bytes/s: 64935.06 | Tx pkts/s: 811.69
Rx time: 0.00128s | Rx bytes/s: 0.00 | Rx pkts/s: 0.00
Nping done: 1 IP address pinged in 0.00 seconds

$ sudo ./nping -c 1 -S 192.168.1.1 127.0.0.1

Starting Nping 0.6.25 ( http://nmap.org/nping ) at 2013-05-17 10:46 PDT
SENT (0.0602s) ICMP 192.168.1.1 > 127.0.0.1 Echo request (type=8/code=0) ttl=64 id=11543 iplen=28
nping_event_handler(): READ-PCAP killed: Resource temporarily unavailable

Max rtt: N/A | Min rtt: N/A | Avg rtt: N/A
Raw packets sent: 1 (28B) | Rcvd: 0 (0B) | Lost: 1 (100.00%)
Tx time: 0.00122s | Tx bytes/s: 23007.40 | Tx pkts/s: 821.69
Rx time: 1.00120s | Rx bytes/s: 0.00 | Rx pkts/s: 0.00
Nping done: 1 IP address pinged in 1.06 seconds

$ sudo ./nping -c 1 -S random 127.0.0.1

Starting Nping 0.6.25 ( http://nmap.org/nping ) at 2013-05-17 10:46 PDT
SENT (0.0586s) ICMP 88.131.55.162 > 127.0.0.1 Echo request (type=8/code=0) ttl=64 id=54569 iplen=28
nping_event_handler(): READ-PCAP killed: Resource temporarily unavailable

Max rtt: N/A | Min rtt: N/A | Avg rtt: N/A
Raw packets sent: 1 (28B) | Rcvd: 0 (0B) | Lost: 1 (100.00%)
Tx time: 0.00127s | Tx bytes/s: 22134.39 | Tx pkts/s: 790.51
Rx time: 1.00075s | Rx bytes/s: 0.00 | Rx pkts/s: 0.00
Nping done: 1 IP address pinged in 1.06 seconds

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


Current thread: