-
Notifications
You must be signed in to change notification settings - Fork 826
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
External Wifi Adapter Support #8240
Comments
https://github.com/dorssel/usbipd-win for attaching external USB devices. You should’ve come across if you checked every single piece of the i-net. |
Well I have tried it and this also has a lot of issues like I could not understand how should I update my kernel and secondly the build libraries for the adapter also won't install as the general libraries for the specific kernel is not present in the repository and in short I wanted to say that:
The above won't allow me to link the usb adapter and them install the drivers for the adapters. Thank you and hope you understand |
Hey bro, I am facing the exact same problem Currently, I am messing around with the WSL kernel build trying to get my driver load in but with no avail |
No bro |
I MADE IT! IT WORKED!!! THIS WAS ONE OF THE MOST COMPLICATED THINGS IN MY LIFE PROBABLY LOL Okay so, holy crap that wasn't easy I had to stay up late till night for about 4 days trying to figure out how to do this as I had never compiled a kernel before. it was a very very steep learning curve for me Now, everything works wlan0 is appearing as an external wifi adapter, injections work etc etc I am gonna create a fork of that original project put everything there along with how to do it ngl, I thought that it was impossible and was just playing around, and suddenly everything clicked and it worked |
bro can you make a detailed a youtube vid on the installation and everything this will be a life save for hackers man |
just clone https://github.com/microsoft/WSL2-Linux-Kernel.git and apply this patch :) |
Gonna try it and will update of it worked |
I am a complete noob when it comes to working with makefiles and their patches 😢 help please |
@morpheuslord: Hmm, a "hacker" should be aware of such basics. The link in #8240 (comment) should bring you further without building by yourself. |
@akuropka it's not like I don't understand the process or how it's done but when it comes to C programming and concepts like bug fixing in C is really not the strong suite I tried compiling and made sure it works for my WLS once but I could not successfully imply these patches I always ran into some weird errors which had no certain answer. |
hey, could you get it to work? |
nope not working. |
It works ! for anybody wondering. Tried it with rtl8821au. You are a legend @EDLLT |
|
hey so I tried it but was not able to find the drivers for Qualcomm Atheros AR9271 to run it according to the video 🥹. I am facing a compilation issue. |
https://cateee.net/lkddb/web-lkddb/ATH9K_HTC.html - i think its in there by default, https://github.com/EDLLT/WSL2-Linux-Kernel/tree/linux-msft-wsl-5.10.y/drivers/net/wireless/ath/ath9k can you try enabling this ? |
I had to elaborate, i did this but this is the issue during compilation " " I am using kali-linux for this process. |
@morpheuslord ignoring the compiler's warning flags, this is the main error : |
on a VM and I have 16Gb of RAM on it. |
can you try changing |
Yes I have 16GB on a VM, its currently late in the night so I will test it and update it tomorrow. |
sure ! im building it myself, will share it if it works |
@TheAjaykrishnanR yup it's built with no errors, but wsl won't boot. It has now been 30min and there has been no reaction from wsl. |
can you run |
@
It worked, thanks man. I dont know what was wrong with my current build but yours did work. now its booting.
I lost hope at this point 🥹 . dmesg | grep ath
I installed the firmware |
bro did you follow the entire tutorial ? Did you install the built modules ? copy the wsl2-modules into /lib. You have to use modprobe to load the .ko file each time you log onto wsl. Also use USB IPD to share the adapter with wsl. Follow the steps exactly. Also where does it say to install the firmware-atheros ? All you have to do is :
|
@TheAjaykrishnanR yes its loaded. |
@morpheuslord do you have the Anyways, I added the firmware directly to the kernel using Use this kernel and it should hopefully work : https://www.dropbox.com/scl/fi/ik09bxk2uga3w3pniw6oe/kernel-plus-modules-ath9k-htc9271-fw.tar.gz?rlkey=uulfkbsonwe9hlwero73kv6ca&st=u1eltkxr&dl=0 |
Yes I tried both types of the .fx files but now worked I managed to get it to load but the dmesg says another story. |
you dont need the .fw files anymore, its embedded in the kernel image |
your new kernel worked, as I was talking about before. Thanks for that man, really appreciate it 👍. |
Hey man I have been trying to compile for this chipset but I keep running into memory bottleneck since you have already compiled for this can you share me the final tarball with the 8821au module, I tried by disabling the debug btf flag but it won't boot in that case |
yeah here you go : https://www.dropbox.com/scl/fi/ex9q3ba9rqz3tt3w37k0l/wsl2-kernel-plus-modules-rtl8821au.tar.gz?rlkey=yhbjc00cls7iecu2u2b97h8ak&st=672dtq1d&dl=0 |
Thanks it worked!! |
I was able to sucessfully compile the latest WSL kernel relatively easily given all the information here. However, I experienced issue where flipping into monitor mode would crash WSL. Turns out the driver I had used wasn't good for whatever reason. Here is the driver that worked for me: The driver I initially chose: |
can you please help me with the TL-WN722N V1? |
Isn't the chipset atheros 9271 ? or is it realtek ? |
It atheros 9271 |
@mieucun123 have you tried this ? |
Hello, I have just intalled Kali Linux WSL2 a week ago and now I want to use wireless USB adapter on it. ( Yes I already consulted here https://github.com/EDLLT/WSL2-Linux-Kernel/tree/linux-msft-wsl-5.10.y/drivers/net/wireless/ralink/rt2x00 but I am just kindly asking for a confirmation from you guys as noob as I am ) |
hello,
I am a tester and I find using WSL over any other virtualization easy and when I am doing WIFI pentesting I need to use a external adapter which can support monitor mode but I looked up every single blog on the internet and none have pleasing results please help.
The text was updated successfully, but these errors were encountered: