Open azamet90 opened 5 years ago
I also cannot seem to inject packets at the 5GHz 802.11a range, but the driver for pentesting purposes atm works really well for 2.4GHz
TX power control was added yesterday. "iwconfig" is deprecated, so you have to use "iw" Many tools have not migrated from "iwconfig" to "iw" and from "ifconfig" to "ip" yet. That's the issue.
Airgeddon also needs to migrate from "iwconfig" to "iw" and so on..
Scan should be working again after some work the past days.
See picture i added.. it works just fine, with "iw" not "iwconfig" !
As for beacons, I have a patch for bad FCS, but need some more time with it
thank you for your hard work and answer
on airgeddon it is planned to remove ifconfig and iwconfig but didn't start yet to investigate how to do it... I'll need some help to do it... for example:
Instead of iwconfig wlan0
to see the in which mode a card is, which command should be used?
Instead of ifconfig wlan0 down && iwconfig wlan0 mode monitor && ifconfig wlan0 up
to put a card in monitor mode, which commands need to launch? if somebody already know the answers it will save some time to me.
on airgeddon it is planned to remove ifconfig and iwconfig but didn't start yet to investigate how to do it... I'll need some help to do it... for example:
Instead of
iwconfig wlan0
to see the in which mode a card is, which command should be used? Instead ofifconfig wlan0 down && iwconfig wlan0 mode monitor && ifconfig wlan0 up
to put a card in monitor mode, which commands need to launch? if somebody already know the answers it will save some time to me.
I've doing some tests and I see instead of simple iwconfig and parse the output to check the mode of a card, iw wlan0 info
can be launched, so this part is ok.
Regarding the mode change, thanks but it seems using this method I can set monitor mode but to set managed again is not working. I mean iw wlan0 set managed control
command is failing. Ok to use these commands to set monitor mode... but, what about to set managed?
Ok I've found the solution... for managed mode, Instead of iw wlan0 set monitor control
it should be iw wlan0 set type managed
. I think I have all I need... next airgeddon version v10.01 will have removed iwconfig and ifconfig commands. Thanks.
Unfortunately iw uses libnl (NETLINK) to set monitor mode which isn't a good choice (and produces much overhead - yet another header to handle: NETLINK HEADER, yet another lib to include: libnl): "Netlink supports multicast communications between the kernel and multiple user-space processes, while ioctl s are strictly one-to-one. Netlink messages can be lost for various reasons (e.g. out of memory), while ioctl s are generally more reliable due to their immediate-processing nature." read more here: https://www.quora.com/What-are-the-differences-between-netlink-sockets-and-ioctl-calls and here: http://moi.vonos.net/linux/wireless-stack/
In other words: NETLINK is fine for inter-process communication (asynchronous) "NetworkManager -> wpa_supplicant -> device" but we're running time critical high speed attacks (synchronous) e.g. "receive association request frame -> transmit association response frame".
just add debug option to verify this: sudo ip link set wlan0 down sudo iw --debug dev wlan0 set type monitor
you'll see BEGIN NETLINK MESSAGE and END NETLINK MESSAGE "welcome to the world of NETLINK - yet another dependency (libnl)"
read more about NETLINK debugging, here: http://beautifulwork.org/debug-using-iw-command-netlink-debugging/
pls consider closing the issue, when it's solved by now :)
first of all sorry for my bad english let me list you all the problems:
the biggest good thing is: the signal range is so much better then before
sudo iwconfig wlan0 txpower 30 Error for wireless request "Set Tx Power" (8B26) : SET failed on device wlan0 ; Operation not permitted.