Nmap Development mailing list archives

Re: nping not working as intended


From: Morgan Tørvolt <morgan () torvolt com>
Date: Wed, 21 Jan 2015 22:10:27 +0100

Hi Luis

Finally got around to doing this after 3 hours of shoveling snow. Norway
can be a bitch this time of year.

Anyway, adding the options did not help. Below is a short command line log,
where I highlighted the commands I sent. As you can see, the response is
underwhelming.

*root@HCG:/home/pi# nping -4 --icmp -e eth0 --source-mac
"b8:27:eb:db:ea:a9" --dest-mac "e0:cb:4e:7a:f1:5c" 8.8.8.8*
Starting Nping 0.6.00 ( http://nmap.org/nping ) at 2015-01-21 22:04 CET
Could not find interface eth0 which was specified by -e


*root@HCG:/home/pi# nping -4 --icmp -e eth0 --source-mac
"b8:27:eb:db:ea:a9" --dest-mac "e0:cb:4e:7a:f1:5c" --dest-ip 10.0.0.1
8.8.8.8*
Starting Nping 0.6.00 ( http://nmap.org/nping ) at 2015-01-21 22:05 CET
Could not find interface eth0 which was specified by -e

*root@HCG:/home/pi# nping -4 --icmp -e eth0 --source-mac
"b8:27:eb:db:ea:a9" --dest-ip 10.0.0.1 8.8.8.8*
Starting Nping 0.6.00 ( http://nmap.org/nping ) at 2015-01-21 22:05 CET
Could not find interface eth0 which was specified by -e

*root@HCG:/home/pi# nping -4 --icmp --source-mac "b8:27:eb:db:ea:a9"
--dest-ip 10.0.0.1 8.8.8.8*
Starting Nping 0.6.00 ( http://nmap.org/nping ) at 2015-01-21 22:05 CET
Could not find interface eth0 which was specified by -e

*root@HCG:/home/pi# nping -4 --icmp -e eth0 --dest-mac "e0:cb:4e:7a:f1:5c"
8.8.8.8*
Starting Nping 0.6.00 ( http://nmap.org/nping ) at 2015-01-21 22:06 CET
Could not find interface eth0 which was specified by -e

*root@HCG:/home/pi# ifconfig*
eth0      Link encap:Ethernet  HWaddr b8:27:eb:db:ea:a9
          inet addr:10.0.0.146  Bcast:10.0.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:223960 errors:0 dropped:0 overruns:0 frame:0
          TX packets:18080 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:19670097 (18.7 MiB)  TX bytes:2173972 (2.0 MiB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:29991 errors:0 dropped:0 overruns:0 frame:0
          TX packets:29991 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:2719040 (2.5 MiB)  TX bytes:2719040 (2.5 MiB)

wlan0     Link encap:Ethernet  HWaddr 70:62:b8:2b:c0:d1
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

*root@HCG:/home/pi# ip route*
10.0.0.0/24 dev eth0  proto kernel  scope link  src 10.0.0.146


Do you have any ideas what is going on?

Best regards
Morgan Tørvolt

On Wed, Jan 21, 2015 at 9:40 AM, Luis MartinGarcia <luis.mgarc () gmail com>
wrote:

Hi Morgan,

Can you try passing also -e and the nane of the interface that should be
used to send the packets? If that doesn't work, try passing the source MAC
address to.

Let me know if that works.

Regards

Luis MartinGarcia

-- Sent from a cellphone. Apologies for the brevity or any typos.
On 21 Jan 2015 05:50, "Morgan Tørvolt" <morgan () torvolt com> wrote:

Hi.

Bonsaiviking on IRC referred me to this mail address.

I have been trying to ping the internet without having a default gw set.
From what I have read several places, this should be possible with nping by
setting --dest-mac

My command:
nping -4 --icmp --dest-mac "e0:cb:4e:7a:f1:5c" 8.8.8.8

This works if default gw is set. It also works to IPs on my lan without
default gw set. It does however not work without default gw set and trying
to ping the internet. It seems like --dest-mac is not really doing anything.

The error message I get is:
Starting Nping 0.6.00 ( http://nmap.org/nping ) at 2015-01-21 00:15 CET
Could not find interface eth0 which was specified by -e

I realize that 0.6.00 is not the newest, but that is what I have on my
raspberry pi.

Any ideas on what to test? I could possibly compile and test the newest
version, but that takes forever on the PI, and I don't have a cross
compiler setup going unfortunately. Was hoping you have a quick fix, or a
quick "won't work" reply.

Best regards
Morgan Tørvolt

_______________________________________________
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
https://nmap.org/mailman/listinfo/dev
Archived at http://seclists.org/nmap-dev/

Current thread: