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

Support Nmap on Windows Subsystem for Linux (WSL) #1864

Open
fyodor opened this issue Dec 17, 2019 · 2 comments
Open

Support Nmap on Windows Subsystem for Linux (WSL) #1864

fyodor opened this issue Dec 17, 2019 · 2 comments

Comments

@fyodor
Copy link

@fyodor fyodor commented Dec 17, 2019

This is a tracking/feedback issue for the common request of supporting The Nmap Security Scanner using Windows Subsystem for Linux (WSL). Obviously we already have an official native Windows build which works well, but WSL users may want to use Nmap in that environment too. I haven't played with this new Windows feature yet, but my understanding is that Nmap does not currently work with it, probably due to raw socket limitations. Here are some notes:

This tracking issue can be used by anyone with information to add about using Nmap on WSL in the hope that we'll be able to fully support it some day. At least assuming that Microsoft continues to support and improve WSL.

@dmiller-nmap

This comment has been minimized.

Copy link

@dmiller-nmap dmiller-nmap commented Dec 18, 2019

I have heard that Nmap works correctly on WSL2 (currently only available in Windows 10 Insider Preview), though I have not tested it myself. We currently issue a warning if WSL is detected (uname -r contains "Microsoft"), but do not attempt any change in behavior.

It seems to me that it is incumbent upon the developers of WSL to introduce changes that would better support Nmap, rather than the other way around.

@fyodor

This comment has been minimized.

Copy link
Author

@fyodor fyodor commented Dec 18, 2019

Thanks for the note about WSL2. That is great news if it turns out to work with Nmap. And I agree that the best solution would be for WSL/WSL2 compatability to improve to the point where we and other Linux applications don't need to do anything special to support it. I haven't tried WSL2 (or even plain WSL) yet, but I'm looking forward to it. Currently I use Cygwin instead along with the native nmap.exe.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.