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 still does not work on WSL #5160

Closed
sephethus opened this issue Apr 30, 2020 · 5 comments
Closed

nmap still does not work on WSL #5160

sephethus opened this issue Apr 30, 2020 · 5 comments

Comments

@sephethus
Copy link

As of two years since this was last reported and ignored as a problem this still does not work.

Windows 10 1909, 18.363.778, Ubuntu WSL:

Starting Nmap 7.60 ( https://nmap.org ) at 2020-04-30 10:23 EDT
Problem binding to interface , errno: 92
socket_bindtodevice: Protocol not available
Problem binding to interface , errno: 92
socket_bindtodevice: Protocol not available
NSOCK ERROR [0.0530s] mksock_bind_device(): Setting of SO_BINDTODEVICE failed (IOD #1): Protocol not available (92)
NSOCK ERROR [0.0530s] mksock_bind_device(): Setting of SO_BINDTODEVICE failed (IOD #2): Protocol not available (92)
NSOCK ERROR [0.0530s] mksock_bind_device(): Setting of SO_BINDTODEVICE failed (IOD #3): Protocol not available (92)
Problem binding to interface , errno: 92
socket_bindtodevice: Protocol not available
Problem binding to interface , errno: 92
socket_bindtodevice: Protocol not available
Problem binding to interface , errno: 92
socket_bindtodevice: Protocol not available
Problem binding to interface , errno: 92
socket_bindtodevice: Protocol not available
Problem binding to interface , errno: 92
socket_bindtodevice: Protocol not available
Problem binding to interface , errno: 92
@aress31
Copy link

aress31 commented Apr 30, 2020

+1 some people's job rely heavily on the use of network scanners, particularly nmap, therefore if you want to win them over and have them ditch their VM to fully commit to WSL this issue should be treated as a high priority issue.

@Biswa96
Copy link

Biswa96 commented Apr 30, 2020

some people's job rely heavily on the use of network scanners

Them they should use the Windows version of nmap or use a real GNU/Linux distribution with its nmap package. Without relaying on any type of VM or compatibility layer.

@sirredbeard
Copy link
Contributor

sirredbeard commented Apr 30, 2020

This is a duplicate of at least #5083, #1349, #3859, #3521, #3440, #2039, #2548, #1349.

By knowingly opening a duplicate bug report you take time from developers working on new features. It does not help the developers ship it faster.

This is fixed in WSL 2 which is available on all Insiders channels. If you want to try it in a VM without upgrading your system, you can follow this guide. If you are interested in using WSL 2 for security, you should watch How we use WSL at Kali.

@denzuko
Copy link

denzuko commented Apr 4, 2021

@sirredbeard your guide link has been taken down and only returns a 404 page.

for those coming from google, make sure you have gone though the steps to enable wsl then to upgrade from wsl 1 to wsl 2:

wsl --version 2
wsl --set-version default 2

@udoline
Copy link

udoline commented Dec 14, 2021

@denzuko your second command is false, right is

wsl --set-version-default 2

and then you can try on a wsl shell

sudo nmap -vv -F 192.168.1.1

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

7 participants