-
Notifications
You must be signed in to change notification settings - Fork 179
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
Discussion on support for active monitor mode #73
Comments
Hey it is me again ! So now after buying 6 of theses TP-Link devices, reading kernel code for days and digging through internet, I want to buy a device that will work out of the box very quickly. For this I have to know if it support this « active monitor mode » thing, but the only way I found was to read the « iw list » command and search for the line mentioning it. Sorry for this long text, I am very invested in this after a week of intense research now, so your GitHub is a biiiiig relief, I hope it will be indexed on Google search for the poor souls like me that want opendrop. So anyway, I saw your usb device list and pci list, and I wanted to know if it is possible to add the output of « iw list » so I can find a device that will work for me. You have already put it in some devices, but I want cheaper one for my limited use. thank you so much for your work, I appreciate it a lot !! |
Hi @SoniaMalki Whew. A lot to unpack here, This repo gets an average of over 3,000 views per week and other use monitor mode as well so over time maybe we can help. Let me ask some questions: You seem to think "active monitor mode" is a special capability. I think it simply when you change one of your wifi interfaces into monitor mode. Please point me to something that counters this idea. Please tell me what distro and kernel you are using. For each of the 6 USB WiFi adapters you have: Plug the adapter in and run `lsusb" Can you provide the link to
Really. Go back out to the README.md and scroll down to the following section: chipset - Atheros ar9271 [2] - N150 - USB 2
Did you look in the folder called Regards |
Hi @morrownr ! "active monitor mode" is a functionnaly that is not just monitor mode. For OWL, it is mentionned in git that the adaptater must have this functionnality. (see there: seemoo-lab/owl#9). To see if it supports it, when we do "iw list", there will be a listing, and a line mentionning it.
Ubuntu 20.04 with kernel 5.13.0-40-generic
https://github.com/seemoo-lab/opendrop
I didn't know it is equivalent to ath9k, I was searching in this page : https://wireless.wiki.kernel.org/en/users/drivers/ath9k/products/external but couldn't find a product available in my country.
Sorry I missed it ! Yep I am interested to have a more complete list if possible Thank you ! |
More info on "active monitor mode", I saw that in monitor mode we can put flag with the command
Devices that don't support "active monitor" have an error when trying to put the active flag "iw command failed operation not supported (-95)". So that's why I am searching for the support for this active monitor mode, hope it is more clear! |
Now things are clearing up. Can't say that I have used that. You might want to go to the following repo: https://github.com/morrownr/Monitor_Mode The You did not pass on the Regards |
I have to get the usb device, I have 2 pic device and 4 usb one. Are you interested for the pci too ? |
And also those are all TP-Link devices with Realtek chipsets |
No I have modified the start-mon.sh script: This modified version attempts to set I can also test the mt7610u chipset. Look around and tell me what chipsets you want tested. |
Yes, with TP-Link I expect Realtek chipsets. If I know what chipsets they have, I can them. I have an extensive collection of adapters. Testing so far: Good tests for Bad tests for |
Additional tests: rtl8812bu and rtl8811cu tested bad. I suspect all Realtek drivers will test bad if those two did. I'm not sure if you are aware but I have repos for Realtek drivers here on this site. These are about as good as it gets but they are not standards compliant and as a result there is a lot of stuff that does not work or does not work right. Linux users are almost always better off getting usb wifi adapters that use in-kernel drivers. If you start at the top of README.md and read all the way to the end, you will learn a lot. Status: Good tests for active: mt7612u, mt7610u and mt7601u Bad tests for active: rt5370, ar9271, rtl8812bu and rtl8811cu Regards |
Thank you ! Yeah I read your github and it was very informative on the matter, I will not buy any Realtek chip from now, you framed all the things that annoyed me from my one week experience. I suspect that the drivers have been written not respecting the standars as you say, and that they ignore some functions like the active monitor for example. This is just a guess on my part, but for the same device in V1 version that has an Atheros chipset, and the device in V2 version with the Realtek chipset, the active monitor disappears. To me this seems strange, I don't think it's the hardware that is limited, but simply the implementation of the drivers that don't include this support. I could be totally wrong, I don't know. So I searched in the backport site (source: https://backports.wiki.kernel.org/index.php/Main_Page), to read the implementation of the drivers with the backport project which is very interesting, and I started to read the code of the drivers to find where it was wrong. Unfortunately after hours of research, I had trouble finding what test was performed to see if the function was supported or not. But here is my guess, and what I could find. Unfortunately I have a lot of work to do at the moment so I can't dig any further into this, but I would really like to do it in the future so it can be activated for more drivers. Hopefully I understand where the limitation comes from, is it the driver that doesn't respect the standards or is it a hardware limitation? What is your opinion? Regards |
Here is the lsusb for the device TL-WN725N (EU) V3 for the device Archer T2U PLUS (EU) V1 for the device TL-WN722N (EU) V3 for the device TL-WN821HN (EU) V6.0 |
I have also another question, how can I find a device based on the chipset |
That adapter has the rtl8811au chipset. Good chipset. Below is the driver I maintain for this chipset: https://github.com/morrownr/8821au-20210708 I can check if Based on my testing, it appears
If you are talking about trying to activate the Regards |
The same way I maintain the list of adapters and what chipsets they use in the README.md. You have to search. It takes time and you get better with practice. |
Thank you I bought an adapter from your list yesterday and it will arrive tomorrow, I will test it and keep you updated |
I will link our conversation in the opendrop GitHub, it will help many people with it hopefully |
Hopefully I was able to help.
Please do let us know how it goes and I am always looking for user reviews that can be included with the information about specific adapters. Do you mind telling me which one you ordered? Regards |
I bought the DM-Digital T7601 (Mediatek) |
That is a cool little low cost adapter. I knew the 7601u chipset and driver was limited function when I bought the DM-Digital as Mediatek makes it clear that it is a limited function chipset. It handles managed (client) mode very well and it handles many monitor mode functions fine. I have not been able to get it to do packet injection but capture and scanning seem to work fine and it did go in monitor active without any error being thrown. When you are able to give us a report, please do so. Update: Good tests for active: mt7921 (WiFi 6), mt7612u (WiFi 5), mt7610u (WiFi 5), mt7601u (WiFi 4) Notice that I added the mt7921 as I was able to test that chipset last night. My laptop has a little internal card based on the mt7921. I couldn't say mt7921u as no usb wifi adapters for that chipset are available for sale yet... but they re coming. Keep in mind that I am only testing if the adapter is going into monitor mode (active) with or without an error code being thrown and I'm not really testing the app you mentioned so we would be interested in your results. |
Purchased an Alfa AC1200 of amazon which was indicated to have a mt7612u by the reviews. When I receive it I can share my findings here with the test script (to confirm @morrownr 's findings) and OWL/OpenDrop app. |
Please do share. Regards |
Got the adapter and tried it out with opendrop/owl. |
It appears that you are running Kali. Is that correct? Is Kali running on bare metal or in a VM? I have an ALFA ACM. It has been a solid, very compatible adapter. With that said, you are doing some things I am not familiar with yet. |
I am on Kali linux but i just checked and its kali-linux-2022.2-live-amd64.iso, which i believe is the live boot version for running on a usb (which i am doing). I am very much a linux newbie but do you think the live version could be causing that error and bare metal would be better suited? On second thought I should probably try it with the mentioned distributions on the page, will try either fedora or debian linux. |
The best advice for a Linux newbie that I can give is that you find someone that has experience to talk you through some of the things you are trying to do. My recommendation right now is for you to start a new issue and describe what you are trying to do.
I, and others, can make suggestions but it would help if we better understood what computer you are using and what you are trying to do. Kali is a fine Linux distro but it is probably not the greatest as a starter distro. Something like Linux Mint would probably work better as a starter distro and then, over time, you can try other distros to see which best meets your need: |
Sadly all adapters listed in the repo are external ones. |
I have new laptop I bought about 6 months ago. The little internal wifi card is based on the mt7921 chipset. It works well with Ubuntu 22.04. The driver has been in the Linux kernel since kernel 5.12. I'm no expert on the various types of little internal cards that are available so maybe you can find the one that works for you. Regards |
I can't walk around with a usb pluged to my phone.. |
Hi @SoniaMalki I thought of this thread when doing some testing on the new mt7921u driver today. From the
|
Hello, I have a problem. İ have usb wifi model rtl8811cu. How can I add it to kali linux installed on ssd without internet? please help me . Thank you |
You did not read the README in the https://github.com/morrownr/8821cu-20210118 repo. It is much easier to get internet access to your computer than you might think. Do you have a smartphone and a usb cable? https://www.makeuseof.com/tag/tethering-use-mobile-internet-pc/ |
opps... the above link was for Windows... here is a better link... https://www.makeuseof.com/tag/how-to-tether-your-smartphone-in-linux/ |
@SoniaMalki Did it support active monitor mode? |
Hello, thanks for the tip. Could you give us more information? Did your test work and was it successful with the file transfer? I didn't find your feedback on github. Thanks! |
ZerBea, the author of hcxdumptool, knows ALL about active monitor mode. |
FYI, RTL8821CE works with active monitor mode if you use either the |
@c0des1ayr looks like that isn't actually the case: lwfinger/rtw88#236 (comment) |
I am so happy I found your GitHub today ! And I am so happy and thrilled because you just updated it two hours ago !
I am intensively searching for an wifi card that supports active monitor mode, but I have the entire internet and no response at all ! I have thought this feature don’t exist because I couldn’t find it anywhere. And then you updated your GitHub and you gave me hope.
I was modifying kernel code just in a hope to understand of this sorcery works, it was my first time going this deep into Linux.
Can we chat via discord ? An issue is not the best thing to do for this.
I will read your GitHub carefully and I hope I will find an adapter that finally works. Greats hope there !
The text was updated successfully, but these errors were encountered: