netdiscover tool doesn't work
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

Actual Behavior
pcap_open_live(): eth1: socket: Address family not supported by protoco
Diagnostic Logs
No response
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 ?
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_liveis 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
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 ')
4.4.0-19041
This kernel version indicates that you are using WSL1.
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.
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 ')
My netdiscover works WSL but no machines found.
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!