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

dnet: Failed to open device eth0 (Windows 10 + nmap 7.80 + npcap 0.9982) #1769

Open
Youda008 opened this issue Oct 1, 2019 · 7 comments

Comments

@Youda008
Copy link

commented Oct 1, 2019

I just freshly installed nmap 7.80 and its bundled npcap 0.9982 from the Windows installer downloaded on the official page, but whenever i try to run any kind of nmap scan, it ends up with error

dnet: Failed to open device eth0
QUITTING!

Output of my nmap -iflist:

************************INTERFACES************************
DEV  (SHORT) IP/MASK                                   TYPE     UP MTU  MAC
lo0  (lo0)   ::1/128                                   loopback up 1500
lo0  (lo0)   127.0.0.1/8                               loopback up 1500
eth0 (eth0)  2a0b:e181:600:900:b105:bf3f:d639:691b/64  ethernet up 1500 B8:85:84:C0:7A:97
eth0 (eth0)  2a0b:e181:600:900:c105:6040:55bc:b6e1/128 ethernet up 1500 B8:85:84:C0:7A:97
eth0 (eth0)  fe80::b105:bf3f:d639:691b/64              ethernet up 1500 B8:85:84:C0:7A:97
eth0 (eth0)  192.168.123.158/24                        ethernet up 1500 B8:85:84:C0:7A:97

DEV  WINDEVICE
lo0  <none>
lo0  <none>
eth0 <none>
eth0 <none>
eth0 <none>
eth0 <none>

**************************ROUTES**************************
DST/MASK                                  DEV  METRIC GATEWAY
255.255.255.255/32                        lo0  281
169.254.207.22/32                         lo0  281
169.254.255.255/32                        lo0  281
192.168.123.158/32                        eth0 291
255.255.255.255/32                        eth0 291
192.168.123.255/32                        eth0 291
127.255.255.255/32                        lo0  331
127.0.0.1/32                              lo0  331
255.255.255.255/32                        eth0 331
192.168.123.0/24                          eth0 291
169.254.0.0/16                            lo0  281
127.0.0.0/8                               lo0  331
224.0.0.0/4                               lo0  281
224.0.0.0/4                               eth0 291
224.0.0.0/4                               eth0 331
0.0.0.0/0                                 eth0 35     192.168.123.1
fe80::2043:6173:1163:cf16/128             lo0  281
2a0b:e181:600:900:c105:6040:55bc:b6e1/128 eth0 291
fe80::b105:bf3f:d639:691b/128             eth0 291
2a0b:e181:600:900:b105:bf3f:d639:691b/128 eth0 291
::1/128                                   lo0  331
fe80::/64                                 lo0  281
fe80::/64                                 eth0 291
2a0b:e181:600:900::/64                    eth0 4131
ff00::/8                                  lo0  281
ff00::/8                                  eth0 291
ff00::/8                                  eth0 331
::/0                                      eth0 4131   fe80::5ee2:8cff:fe9e:fc0c

Tried running command prompt in admin mode, tried reinstalling nmap, tried upgrading to npcap 0.9983, tried rebooting.

@dmiller-nmap

This comment has been minimized.

Copy link

commented Oct 1, 2019

Thanks for the report. Can you please provide the output of DiagReport so we can better diagnose the problem?

@dmiller-nmap dmiller-nmap added the Npcap label Oct 1, 2019
@dzhenway

This comment has been minimized.

Copy link

commented Oct 2, 2019

same with me
i got this error

@Youda008

This comment has been minimized.

Copy link
Author

commented Oct 2, 2019

@dmiller-nmap

This comment has been minimized.

Copy link

commented Oct 2, 2019

Ok, it seems the npcap driver service is stopped. Nmap normally attempts to start it, but if you aren't running with an Admin account, it can't do so. What output do you get if you try to start the service manually? Here are the steps:

  1. Open an command prompt as Administrator. (Windows+R, then type: powershell.exe Start-Process cmd.exe -Verb runAs )
  2. In the Administrator command console, type: net start npcap
@dzhenway

This comment has been minimized.

Copy link

commented Oct 2, 2019

hi @dmiller-nmap

C:\Windows\system32>powershell.exe Start-Process cmd.exe -Verb runAs

C:\Windows\system32>net start npcap
System error 2 has occurred.

The system cannot find the file specified.

I tried reinstall NPCAP (0.9983) but still didnt work

OS : Windows 10 Pro 64 bit

@Youda008

This comment has been minimized.

Copy link
Author

commented Oct 3, 2019

Same as dzhenway:

C:\WINDOWS\system32>net start npcap
System error 2 has occurred.

The system cannot find the file specified.
@Youda008

This comment has been minimized.

Copy link
Author

commented Oct 9, 2019

Additional info. When i uninstall the npcap, i see the following in the uninstall window

...
Npcap LWF driver (with Wi-Fi support) has failed to be uninstalled.
Npcap WFP callout driver has been successfully uninstalled!
The npcap service for Win7, Win8 and Win10 was successfully deleted
ROOT\NET\0001                                               : Removed
Npcap Loopback adapter has failed to be uninstalled.
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.