Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

windows 10 bash tcpdump: socket: Invalid argument

I am using windows 10 bash to use tcpdump From tutorial i found that to listen to a interface command is:

tcpdump -i eth0 //eth0 is ethernet interface
tcpdump -i any // to listen to any interface

In both cases I am getting tcpdump: socket: Invalid argument error. NOTE:

tcpdump -D

does not print anything on console.

like image 672
Al-Alamin Avatar asked Oct 18 '17 02:10

Al-Alamin


2 Answers

Based on https://github.com/Microsoft/WSL/issues/69, this is a limitation of the current Windows Subsystem for Linux. The Fall Creators update added a lot of functionality, but tcpdump still does not work.

like image 119
user3657298 Avatar answered Oct 22 '22 14:10

user3657298


Try nmap... It will output a page of errors but eventually works.

% sudo nmap -sP 192.168.1.0/24

WSL while utilizing a true linux kernel, is not a true linux operating system yet...

like image 1
Mike Zoe Avatar answered Oct 22 '22 13:10

Mike Zoe