Nmap Development mailing list archives

Re: nping command line parsing: set source IP address


From: "Luis MartinGarcia." <luis.mgarc () gmail com>
Date: Sat, 18 May 2013 09:58:16 +0200

I have tested this in a Linux Mint box and I can't reproduce it either.

Regards,

Luis MartinGarcia.



On 05/17/2013 09:37 PM, Perry Hooker wrote:
I compiled nmap/nping on a fresh install of CentOS 6.2, and the command worked as expected.   This seems to uphold 
your suspicions about something in the local configuration.  My first thought: something to do with the getopt family 
of commands.  

Thank you for the advice thus far.

-----Original Message-----
From: David Fifield [mailto:david () bamsoftware com] 
Sent: Friday, May 17, 2013 11:48 AM
To: Perry Hooker
Cc: dev () nmap org
Subject: Re: nping command line parsing: set source IP address

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/


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


Current thread: