-
Notifications
You must be signed in to change notification settings - Fork 32
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
Grep for frequencies does not accomodate my adapter's output #12
Comments
I don't have much time to debug it, but
Here's the output of the modes
|
Thanks so much for debugging, I think Ill keep this open incase others have similar issues. Ill investigate when I have some time in the future. |
┌──(root㉿kali)-[/home/kali/Desktop] Config dir: /tmp/create_ap.wlan0mon.conf.slKGUVpV ERROR: Your adapter can not transmit to channel 1, frequency band 2.4GHz. Doing cleanup.. done ┌──(root㉿kali)-[/home/kali/Desktop] ┌──(root㉿kali)-[/home/kali/Desktop] Config dir: /tmp/create_ap.wlan0mon.conf.r1XqRsYZ ERROR: Your adapter can not transmit to channel 1, frequency band 2.4GHz. Doing cleanup.. done ┌──(root㉿kali)-[/home/kali/Desktop] |
Same. Had to edit the file at line 1855 and comment it out/remove it.
Offensive line 1855 Update: Found the issue and created a PR #14 |
fix for "ERROR: Your adapter can not transmit to channel 1, frequency band 2.4GHz." - see sensepost#12 iw list now seems to add ".0" to the frequency, which causes parsing to fail. may be similar for 5ghz, not tested due to lack of hardware. ``` 10:44 root@kali /alex $ iw list | egrep " MHz " * 2412.0 MHz [1] (20.0 dBm) * 2417.0 MHz [2] (20.0 dBm) * 2422.0 MHz [3] (20.0 dBm) * 2427.0 MHz [4] (20.0 dBm) * 2432.0 MHz [5] (20.0 dBm) * 2437.0 MHz [6] (20.0 dBm) * 2442.0 MHz [7] (20.0 dBm) * 2447.0 MHz [8] (20.0 dBm) * 2452.0 MHz [9] (20.0 dBm) * 2457.0 MHz [10] (20.0 dBm) * 2462.0 MHz [11] (20.0 dBm) * 2467.0 MHz [12] (20.0 dBm) * 2472.0 MHz [13] (20.0 dBm) * 2484.0 MHz [14] (disabled) ```
Hello,
I'm using an RT5572 adapter, and when I run the command
iw phy phy0 info
I get the following frequencies
The grep part of the can_transmit_to_channel() function currently tries to find the string with:
CHANNEL_INFO=$(get_adapter_info ${IFACE} | grep " 24[0-9][0-9] MHz \[${CHANNEL_NUM}\]")
This pattern does not match frequencies listed in a float format (e.g., 2412.0 MHz).
I am not aware if this is a general change in
iw
behavior or just an issue with my card.I've changed the code of the script to accommodate for my version like follows, but I do not know if this is something worth incorporating into the codebase.
CHANNEL_INFO=$(get_adapter_info ${IFACE} | grep "24[0-9][0-9]\(\.[0-9]\)\? MHz 8" \[${CHANNEL_NUM}\]")
The text was updated successfully, but these errors were encountered: