WSL: Kali Linux on windows 10 WSL is not detecting WI-FI. cant able practice wifi hacking.
Windows Build Number
Microsoft Windows [Version 10.0.19043.1165]
WSL Version
- WSL 2
- WSL 1
Kernel Version
Kernel version: 5.4.72
Distro Version
Release: 2021.2
Other Software
No response
Repro Steps
- First i run this command “iwconfig” it will show : └─# iwconfig sit0 no wireless extensions.
bond0 no wireless extensions.
lo no wireless extensions.
eth0 no wireless extensions.
dummy0 no wireless extensions.
- when I run
└─# wifite
. .
.´ · . . ·. wifite2 2.5.8 : : : (¯) : : : a wireless auditor by derv82. ·/¯\ ´ · .´ maintained by kimocoder/¯¯¯\ ´ https://github.com/kimocoder/wifite2
[!] Warning: Recommended app pyrit was not found. install @ https://github.com/JPaulMora/Pyrit/wiki [!] Warning: Recommended app hcxdumptool was not found. install @ apt install hcxdumptool [!] Warning: Recommended app hcxpcapngtool was not found. install @ apt install hcxtools
[+] Checking airmon-ng… [!] airmon-ng did not find any wireless interfaces [!] Make sure your wireless device is connected [!] See http://www.aircrack-ng.org/doku.php?id=airmon-ng for more info
[!] Error: airmon-ng did not find any wireless interfaces
[!] Full stack trace below
[!] Traceback (most recent call last): [!] File “/usr/lib/python3/dist-packages/wifite/main.py”, line 97, in entry_point [!] wifite.start() [!] File “/usr/lib/python3/dist-packages/wifite/main.py”, line 51, in start [!] Configuration.get_monitor_mode_interface() [!] File “/usr/lib/python3/dist-packages/wifite/config.py”, line 167, in get_monitor_mode_interface [!] cls.interface = Airmon.ask() [!] File “/usr/lib/python3/dist-packages/wifite/tools/airmon.py”, line 313, in ask [!] raise Exception(‘airmon-ng did not find any wireless interfaces’) [!] Exception: airmon-ng did not find any wireless interfaces
[!] Exiting
so I cant able to use wifi of my windows in my wsl so that I can practice wifi hacking.
Expected Behavior
evert wsl must and should have a feature of running the wifi of windows. so that security researcher can perform wifi hacking with authorization
Actual Behavior
cant able to use wifi of windows 10
Diagnostic Logs
No response
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 6
- Comments: 27 (2 by maintainers)
i think there is a way. I found this answer on unixstackchange from a guy. He litteraly says "Okay so, I edited the kernel itself to allow you to actually be able to use WiFi adapters as well as loadable modules, etc in WSL2
If anyone’s interested here you go https://github.com/EDLLT/WSL2-Linux-Kernel" here is my source https://unix.stackexchange.com/questions/626328/are-usb-wi-fi-adapters-compatible-with-kali-in-wsl2
Still not working on 2024?
I’m in 2023, still not working 😕
Diff (MSFT 5.10.y <-tiborkiss 5.10-mod) for above: https://github.com/microsoft/WSL2-Linux-Kernel/compare/linux-msft-wsl-5.10.y…tiborkiss:WSL2-Linux-Kernel:linux-msft-wsl-5.10.102.1-rtlwifidongle
Appears to be a copy of changes from https://github.com/EDLLT/WSL2-Linux-Kernel that @ldlb96 highlighted 3 comments up. Notable differences are @EDLLT outlines his custom build instructions (https://github.com/EDLLT/WSL2-Linux-Kernel/blob/linux-msft-wsl-5.10.y/README.md) and shares his build here: https://github.com/EDLLT/WSL2-Linux-Kernel
I also made the kernel configuration. Since I wished to use the latest WSL2 kernel, I did from the scratch. Moreover I have another dongle (Alfa AWUS036ACH) which seems to not compile into the kernel by adding it directly to the source, but it compiles as dkms module. For me it works well, since then I can capture 802.11 packets with the above dongle and I can use WSL2 for hardware debuggers too. Here are my changes over the current officially released WSL2 https://github.com/tiborkiss/WSL2-Linux-Kernel/tree/linux-msft-wsl-5.10.102.1-rtlwifidongle
@ThalusA that’s what I am asking here to do something with this issue so that I can practice wifi pentesting