-
Notifications
You must be signed in to change notification settings - Fork 403
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
No wifi card found #83
Comments
The included driver doesn't support ioctl() system calls. You can try to stop wpa_supplicant because it interferes with hcxdumptool. But I don't think it will block the ioctl() system calls. You can test if NETLINK is in use, running this command: you're on a NETLINK interface. |
Thanks for your detailed reply, I will perform more tests to determine the problem btw: I used the same wifi card to use hcxdumptool normally on another older (CM13) Android phone. I will see if the driver is different, thank you again |
We can use iconfig to test that ioctl() calls are working. iwconfig doesn't use NETLINK. |
USING NETLINK is no option for hcxdumptool, because: |
Yes, as you would expect, iwconfig reports an error. |
There must be a reason why the developer decided to use NETLINK instead of ioctl() calls. |
@ZerBea We've got it. Thanks a lot, there are some issues as Android 9 & Android 10 is fairly new to the NetHunter project, as it was left behind for some time there's lots to catch up with 🥇 |
Great, please keep me in the loop, because hcxdumptool can't give up ioctl() system calls. NETLINK is not an alternative to perform high speed attack vectors. NETLINK is designed to transport data (a stream, some mails, messenger traffic, nice pictures of lovely kittens, ...) but never to run attacks in a penetration environment. |
By the way: |
Hmm... I haven't really figured all that IOCTL, Netlink functions yet. This is what I see.. "iwconfig" is deprecated And I notice it struggles more and more, but! I also see developers is removing the IOCTL functions from their drivers, similar to our. Think I need to spend some time learning more about those two.. IOCTL is also used for lots of functions. Read, read read |
Yes correct, iwconfig is deprecated and replaced by iw and iw is working fine. I recommend iw and ip, too, to set monitor mode. Unfortunately NETLINK and it's messages isn't able to control a driver in that way, we need to run some attacks. Unfortunately we need "control" to perform attacks. In other words, if that feature is removed, the developer can remove monitor mode, too. |
BTW |
Well this actually happened.. I've added monitor / frame injection to branch v5.2.20(.2) on rtl8812au, on the release after (v5.3.4), Realtek actually added frame injection themselves, BUT.. they have hidden it pretty good, cause I can't really find it. It's become unstable with time, so I have to diff and look around between v5.2.20 and v5.3.4 to find where they hidden it. Totally weird, as I can't maintain it properly.. |
I have a 8188 device (my 8811 isn't working in combination with the 8812au driver) and try to find out, what's going on inside the driver, if hashcat 6.0.0 and hcxtools 6.0.0 released. |
8188 is working fine, they didn't add it there, and that's much more stable, faster/reliable. injection at 88XXau is sluggish, but working atm, even though I only did the v5.3.9 branch, not the two others yet |
BTW: |
8188: now running iw and create a NETLINK interface: $ sudo hcxdumptool -i wlp39s0f3u3u1u2 --check_driver terminating... Once, if we did that we can set monitor mode by ioctl() calls, too: $ sudo hcxdumptool -i wlp39s0f3u3u1u2 --check_driver terminating... In other words: After device is plugged in, we must use NETLINK to set monitor mode - otherwise the driver doesn't initialize the hardware properly. There is something missing if we try to do initialization by ioctl() calls only. |
Take a look at this...
I need to learn about these two, according to the internet the NETLINK should be used over ioctl() calls, like this guys explains at https://www.quora.com/What-are-the-differences-between-netlink-sockets-and-ioctl-calls |
Correct. Unfortunately the ioctl() part is skipped during first init. Running NETLINK first, the driver doing an init as expected. Running ioctl() first, the interface remaining partly uninitialized. In that case we never reach this part: |
let things build with gcc < 4.3
My Phone is OnePlus7+Android 9.5.8+Nethunter
Perhaps this Android version is too new, so I have encountered a lot of strange problems (about aircrack-ng、wifite), but the difficult ones have been solved one by one.
hcxdumptool is the only problem left. I think this problem can only be solved by you. ;-)
airodump-ng works fine, but now hcxdumptool doesn't seem to recognize
The text was updated successfully, but these errors were encountered: