WSL icon indicating copy to clipboard operation
WSL copied to clipboard

netdiscover tool doesn't work

Open JaK0B-Pro opened this issue 5 years ago • 9 comments

Windows Build Number

Microsoft Windows [Version 10.0.19043.1151]

WSL Version

  • [ ] WSL 2
  • [x] WSL 1

Kernel Version

4.4.0-19041

Distro Version

-bash: lsb_release: command not found

Other Software

No response

Repro Steps

$ git clone https://github.com/netdiscover-scanner/netdiscover.git $ cd netdiscover $ ./update-oui-database.sh (optional, to update the MAC addresses list) $ ./autogen.sh $ ./configure $ make $ make install $ make distclean $ sudo netdiscover pcap_open_live(): eth1: socket: Address family not supported by protocol

Expected Behavior

2021-08-02 20_24_44-5  Scanning - Google Drive

Actual Behavior

pcap_open_live(): eth1: socket: Address family not supported by protoco

Diagnostic Logs

No response

JaK0B-Pro avatar Aug 02 '21 19:08 JaK0B-Pro

Thanks for reporting this.

Given that WSL2 runs NATed, I wouldn't expect tools like these which appear to rely on ARP to discover machines to work.

Now pcap_open_live is interesting. I wonder which address family isn't supported here. Can you share an strace of that command so we can figure that out ?

OneBlue avatar Aug 03 '21 16:08 OneBlue

Thanks for reporting this.

Given that WSL2 runs NATed, I wouldn't expect tools like these which appear to rely on ARP to discover machines to work.

Now pcap_open_live is interesting. I wonder which address family isn't supported here. Can you share an strace of that command so we can figure that out ?

didn't understand

JaK0B-Pro avatar Aug 03 '21 17:08 JaK0B-Pro

You can find more info about ARP here. Basically WSL runs in its own 'network', and ARP requests can only be sent on the same network (they don't traverse routers).

Regarding the strace, you can find instructions on how to do that here (see '6) Strace of the failing command ')

OneBlue avatar Aug 03 '21 17:08 OneBlue

4.4.0-19041

This kernel version indicates that you are using WSL1.

0xbadfca11 avatar Aug 03 '21 21:08 0xbadfca11

4.4.0-19041

This kernel version indicates that you are using WSL1.

yes, I discover it when I run the command 'wsl --list --verbose' on an administration PowerShell.

JaK0B-Pro avatar Aug 04 '21 17:08 JaK0B-Pro

You can find more info about ARP here. Basically WSL runs in its own 'network', and ARP requests can only be sent on the same network (they don't traverse routers).

Regarding the strace, you can find instructions on how to do that here (see '6) Strace of the failing command ')

Uploading 2021-08-04 19_01_10-.png…

JaK0B-Pro avatar Aug 04 '21 18:08 JaK0B-Pro

My netdiscover works WSL but no machines found.

chezis45 avatar Mar 09 '23 01:03 chezis45

This issue has been automatically closed since it has not had any activity for the past year. If you're still experiencing this issue please re-file this as a new issue or feature request.

Thank you!

This issue has been automatically closed since it has not had any activity for the past year. If you're still experiencing this issue please re-file this as a new issue or feature request.

Thank you!