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 not working #2039

Closed
nlogozzo opened this Issue May 1, 2017 · 79 comments

Comments

Projects
None yet
@nlogozzo

nlogozzo commented May 1, 2017

  • Windows Version Number: 10.0.15063
  • Bash Version: Ubuntu 16.04

-After installing nmap, when I try running sudo nmap -v -sn 192.168.0.0/16 to scan my network for devices I get the error:
Couldn't open a raw socket. Error: Permission Denied (13)

-When running nmap -v -sn 192.168.0.0/16 without using sudo I get the error:
Problem binding to interface , errno: 92
socket_bindtodevice : protocol not available

  • The output I should be receiving is (example):
    Initiating Ping Scan at 20:14
    Scanning 4096 hosts [2 ports/host]
    Completed Ping Scan at 20:14, 33.00s elapsed (4096 total hosts)
    Initiating Parallel DNS resolution of 4096 hosts. at 20:14
    Completed Parallel DNS resolution of 4096 hosts. at 20:14, 0.01s elapsed
    Nmap scan report for amazon-3c5740640.home (192.168.1.13)
    Host is up (0.095s latency).

@nlogozzo nlogozzo changed the title from nmap error to nmap not working May 1, 2017

@stehufntdev

This comment has been minimized.

Collaborator

stehufntdev commented May 4, 2017

Thanks for reporting the issue. WSL currently has limited support for raw sockets. Please give us feedback on UserVoice so we can prioritize the work - https://wpdev.uservoice.com/forums/266908-command-prompt-console-bash-on-ubuntu-on-windo

@therealkenc

This comment has been minimized.

Collaborator

therealkenc commented May 5, 2017

#1349. User Voice is here.

@tjwebb

This comment has been minimized.

tjwebb commented Jun 29, 2017

+1

@bmelnik

This comment has been minimized.

bmelnik commented Jul 11, 2017

+1 same behavior

@banaabraham

This comment has been minimized.

banaabraham commented Jul 13, 2017

+1

4 similar comments
@cptBuggy

This comment has been minimized.

cptBuggy commented Jul 14, 2017

+1

@Sndav

This comment has been minimized.

Sndav commented Jul 17, 2017

+1

@phlogistic

This comment has been minimized.

phlogistic commented Jul 18, 2017

+1

@evertondornelas

This comment has been minimized.

evertondornelas commented Jul 19, 2017

+1

@sunilmut

This comment has been minimized.

Member

sunilmut commented Jul 25, 2017

Marking this duplicate of #1349

@sunilmut sunilmut marked this as a duplicate of #1349 Jul 25, 2017

@sunilmut sunilmut added the duplicate label Jul 25, 2017

@chtapodi

This comment has been minimized.

chtapodi commented Aug 19, 2017

+1

9 similar comments
@raiyuza

This comment has been minimized.

raiyuza commented Aug 20, 2017

+1

@mrcha0s

This comment has been minimized.

mrcha0s commented Aug 22, 2017

+1

@sstodd7532

This comment has been minimized.

sstodd7532 commented Aug 25, 2017

+1

@WizardRyan

This comment has been minimized.

WizardRyan commented Aug 25, 2017

+1

@Oxicode

This comment has been minimized.

Oxicode commented Aug 28, 2017

+1

@RiaanAspelingSage

This comment has been minimized.

RiaanAspelingSage commented Aug 30, 2017

+1

@mathisloge

This comment has been minimized.

mathisloge commented Sep 2, 2017

+1

@danhanley

This comment has been minimized.

danhanley commented Sep 3, 2017

+1

@pitmacaloway

This comment has been minimized.

pitmacaloway commented Sep 4, 2017

+1

@Microsoft Microsoft deleted a comment from BrightSchema Sep 6, 2017

@Imamadmad

This comment has been minimized.

Imamadmad commented Sep 7, 2017

+100

@lacraig2

This comment has been minimized.

lacraig2 commented Sep 8, 2017

+1

@sunilmut

This comment has been minimized.

Member

sunilmut commented Sep 8, 2017

For everyone upvoting here, thanks, we understand that this is an important ask. I would also recommend heading down to the user voice and upvoting there as well. We use that to prioritize.

@dezza

This comment has been minimized.

dezza commented Sep 9, 2017

+1

@chriswood

This comment has been minimized.

chriswood commented Sep 12, 2017

This would be great.

@bitcrazed

This comment has been minimized.

Collaborator

bitcrazed commented Nov 7, 2017

Hey @OvermindDL1 - sorry to be a pain, but would you mind pinging UserVoice support:

image

Alternatively, if you can send me your email (richturn at you know where dotcom) I can add you to the thread.

Thanks.

@OvermindDL1

This comment has been minimized.

OvermindDL1 commented Nov 7, 2017

@bitcrazed All good, I'm confused as well, not seeing anything odd with the network traffic at all otherwise. Sent you the email as you'll be able to link the thread properly then. ^.^

@OvermindDL1

This comment has been minimized.

OvermindDL1 commented Nov 7, 2017

Ahh, actually hold on, curl just worked this time, as are both browsers on both systems! I'm guessing the fixing the blacklist part took a bit to replicate to the cache's or so? Seems to work now though. :-)

@bitcrazed

This comment has been minimized.

Collaborator

bitcrazed commented Nov 7, 2017

@LucidObscurity

This comment has been minimized.

LucidObscurity commented Nov 20, 2017

So is this fixed? I'm seeing the same as OP on build 15063.726. I do have Hyper-V installed...would that be part of the problem. I'll try turning it off in the boot, but I don't think that gets rid of the virtual ethernet adapter. Would installing Fall Creators Update fix the problem? Thanks.

@bitcrazed

This comment has been minimized.

Collaborator

bitcrazed commented Nov 20, 2017

Please note - this issue is closed as a dupe of #1349.

@aegistudio

This comment has been minimized.

aegistudio commented Dec 23, 2017

+1

@OvermindDL1

This comment has been minimized.

OvermindDL1 commented Dec 27, 2017

@bitcrazed Blocked while on the college's network again for note.

@bitcrazed

This comment has been minimized.

Collaborator

bitcrazed commented Jan 3, 2018

@OvermindDL1 Sorry to hear, but please let UserVoice know - we have no control over their site.

@OvermindDL1

This comment has been minimized.

OvermindDL1 commented Jan 3, 2018

@OvermindDL1 Sorry to hear, but please let UserVoice know - we have no control over their site.

Any chance of using a decent site instead? One that randomly seems to block campus networks, especially where people work, does not look very good upon it... Never had such an issue with GitHub for example...

@bitcrazed

This comment has been minimized.

Collaborator

bitcrazed commented Jan 4, 2018

I hear ya. Please do give UV that feedback too: Ultimately though, they are likely blocking your campus network for a reason. Are you able to tunnel non-student traffic out via a separate static IP address?

FWIW, I have been pushing for Microsoft to offer a great community "forum" for a while. Let's see if I can be annoying enough that someone eventually says "fine, do it"! ;)

@OvermindDL1

This comment has been minimized.

OvermindDL1 commented Jan 4, 2018

Are you able to tunnel non-student traffic out via a separate static IP address?

I can ssh tunnel out but that is via a terminal and a headless server, so I'd need to install X and firefox or something to X client here locally or use a text browser. ^.^;

@Ironsecurity

This comment has been minimized.

Ironsecurity commented Jan 26, 2018

Same problem here also... :-/

@Karasuni

This comment has been minimized.

Karasuni commented Feb 24, 2018

+1

@wisetc

This comment has been minimized.

wisetc commented Feb 26, 2018

让我认为nmap有一个bug

@manishkumr

This comment has been minimized.

manishkumr commented Feb 26, 2018

+1

1 similar comment
@abdilahrf

This comment has been minimized.

abdilahrf commented Feb 26, 2018

+1

@bitcrazed

This comment has been minimized.

Collaborator

bitcrazed commented Feb 26, 2018

Please don't add +1* replies - they just dilute an issue's signal to noise ratio. Use reactions on the original post to signal your votes:
image

@c17abab

This comment has been minimized.

c17abab commented Jul 26, 2018

+1

@kartio

This comment has been minimized.

kartio commented Aug 15, 2018

Even though this issue is already closed I would like to hint other that you can use windows installed nmap from you wsl. Solution is presented here: https://medium.com/@the4rchangel/nmap-in-the-windows-bash-shell-64cadff1a689

In short: Install nmap on windows and add alias nmap='"/mnt/c/Program Files (x86)/Nmap/nmap.exe"' to you .bashrc.

@artisticcheese

This comment has been minimized.

artisticcheese commented Aug 15, 2018

I think even better way to use nmap on windows is to just launch docker container with nmap. You don't even need to switch to linux containers if you use windows ones.

Advantages:

  1. No need to install and maintain nmap installation and all dependencies
  2. Fully reproducible scenario regardless of where you run it
  3. Always latest and up to date version of nmap
  4. Faster execution time then on WSL

Command is docker run --rm --platform=linux instrumentisto/nmap -p 3389 --script ssl-enum-ciphers 10.40.129.61

PS C:\Users\admin> docker run --rm --platform=linux instrumentisto/nmap -p 3389 --script ssl-enum-ciphers 10.40.129.61
Starting Nmap 7.70 ( https://nmap.org ) at 2018-08-15 10:49 UTC
Nmap scan report for 10.40.129.61
Host is up (0.051s latency).

PORT     STATE SERVICE
3389/tcp open  ms-wbt-server
| ssl-enum-ciphers:
|   TLSv1.0:
|     ciphers:
|       TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA (secp256r1) - A
|       TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA (secp256r1) - A
|       TLS_DHE_RSA_WITH_AES_256_CBC_SHA (dh 1024) - A
|       TLS_DHE_RSA_WITH_AES_128_CBC_SHA (dh 1024) - A
|       TLS_RSA_WITH_AES_256_CBC_SHA (rsa 2048) - A
|       TLS_RSA_WITH_AES_128_CBC_SHA (rsa 2048) - A
|       TLS_RSA_WITH_RC4_128_SHA (rsa 2048) - C
|       TLS_RSA_WITH_RC4_128_MD5 (rsa 2048) - C
|     compressors:
|       NULL
|     cipher preference: server
|     warnings:
|       Broken cipher RC4 is deprecated by RFC 7465
|       Ciphersuite uses MD5 for message integrity
|       Key exchange (dh 1024) of lower strength than certificate key
|       Weak certificate signature: SHA1
|   TLSv1.1:
|     ciphers:
|       TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA (secp256r1) - A
|       TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA (secp256r1) - A
|       TLS_DHE_RSA_WITH_AES_256_CBC_SHA (dh 1024) - A
|       TLS_DHE_RSA_WITH_AES_128_CBC_SHA (dh 1024) - A
|       TLS_RSA_WITH_AES_256_CBC_SHA (rsa 2048) - A
|       TLS_RSA_WITH_AES_128_CBC_SHA (rsa 2048) - A
|       TLS_RSA_WITH_RC4_128_SHA (rsa 2048) - C
|       TLS_RSA_WITH_RC4_128_MD5 (rsa 2048) - C
|     compressors:
|       NULL
|     cipher preference: server
|     warnings:
|       Broken cipher RC4 is deprecated by RFC 7465
|       Ciphersuite uses MD5 for message integrity
|       Key exchange (dh 1024) of lower strength than certificate key
@Ironsecurity

This comment has been minimized.

Ironsecurity commented Aug 15, 2018

Why not just download the nmap binary installer to windows, install it and run it in either Powershell or command prompt? Works fine... It's obvious that Kali and other WSL apps will not work using nmap. Hoping for next updates will fix this issue.

@danhanley

This comment has been minimized.

danhanley commented Aug 22, 2018

@JAustinal

This comment has been minimized.

JAustinal commented Oct 1, 2018

+86

@sgf

This comment has been minimized.

sgf commented Oct 7, 2018

Why ppl like Linux because Linux has fewer restrictions, people can do more what they want to do.
Please don't bring the limit from windows to the WSL.if only can do the windows can do,why we should be use WSL?

Soo,when could be the problem soloved?

https://wpdev.uservoice.com/forums/266908-command-prompt-console-bash-on-ubuntu-on-windo/suggestions/17817685-support-af-packet-address-family-tcpdump-wireshar

that has 1426 votes now ?
how many votes need ?

@mailinglists35

This comment has been minimized.

mailinglists35 commented Nov 21, 2018

that has 1426 votes now ?
how many votes need ?

You don't understand. Our votes do not really count. The uservoice website is just a simulation so you think your opinion matters, but in fact it doesn't.

They blatantly use the name Linux but in fact they don't really want a full blown Linux distro, and instead they just needed a dev environment beucause they realized linux has everything and setting up a dev env on powershell is a painful experience.

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