Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nmap 6.49BETA4 - unable to find right interface to send packets #191

Open
kost opened this issue Jul 27, 2015 · 4 comments
Open

Nmap 6.49BETA4 - unable to find right interface to send packets #191

kost opened this issue Jul 27, 2015 · 4 comments

Comments

@kost
Copy link

kost commented Jul 27, 2015

This problem was orginally submitted at my NetworkMapper project here:
kost/NetworkMapper#6

But, I see it more as Nmap binary problem itself as nmap binary is reporting this.

Nmap is not able to find right interface to send packets. Actually it cannot find any interfaces:

Executing /data/data
org.kost.nmap.android.networkmapper/bin/nmap -F -vvv scanme.nmap.org

Starting Nmap 6.49BETA4 ( https://nmap.org ) at 2015-07-17 05:48 BRT
Warning: Hostname scanme.nmap.org resolves to 2 IPs.
Using 45.33.32.156
int route_dst_netlink(const __kernel_sockaddr_storage*, route_nfo*, const char*, const __kernel_sockaddr_storage*): can't find interface wlan0

cannot find interfaces on:

Executing /data/data
org.kost.nmap.android.networkmapper/bin/nmap --iflist
Starting Nmap 6.49BETA4 ( https://nmap.org ) at 2015-07-17 05:48 BRT
INTERFACES: NONE FOUND(!)
ROUTES: NONE FOUND(!)

More about the problem:
kost/NetworkMapper#6

@dmiller-nmap
Copy link

We run into this problem on occasion when Linux kernel adds a new ARP_HRD_* constant. See the Nmap modifications to libdnet for examples of previous fixes. Unfortunately, it's often hard to pin down what constant needs to be added.

I tried to write a diagnostic program to get this info, but it has yet to be successful. If you could try it out or figure out a better way, that'd be great. It's attached to this message on the nmap-dev mailing list: https://seclists.org/nmap-dev/2015/q2/165

@cpg
Copy link

cpg commented Sep 13, 2019

nmap does not work when running as root for me.

In case it helps, the diagnosis program you posted shows this:

$ ./ifacediag enp0s31f6
Interface enp0s31f6 has ARP_HRD 1

CentOS with some run off the mill networking PC with kernel 3.10.0-957.27.2.el7.x86_64. The network output I cannot write up here, but it has some 5 Intel NICs and 2 WAN modems.

@Liiura
Copy link

Liiura commented Jan 18, 2022

any update about this issue?

@Ajaythepower1606
Copy link

any update about this issue?

I don't know 😕 buy still I am getting the error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants