Skip to content
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

How can I make it work in 5GHz? #22

Open
lissongod opened this issue Oct 19, 2024 · 5 comments
Open

How can I make it work in 5GHz? #22

lissongod opened this issue Oct 19, 2024 · 5 comments

Comments

@lissongod
Copy link

image
as you can see, it only works at 2.4Ghz, but my wireless adapter support 2.4G/5GHz,
image
please help me, thanks!

@flashnuke
Copy link
Owner

Please share the following:

  • wifi_deauth output, here's an example of scanning 5ghz bands (make sure you are passing the correct interface name under -i <iface>:
================================================================================
[*] Setting up monitor mode...
[>] Running command -> 'sudo ip link set wlan0 down'
[>] Running command -> 'sudo iw wlan0 set monitor control'
[>] Running command -> 'sudo ip link set wlan0 up'
[*] Monitor mode was set up successfully
[*] No custom clients selected, enabling broadcast deauth and attacking all connected clients
[*] Starting AP scan, please wait... (32 channels total)
[*] Scanning channel 140 (left -> 0))
  • output of sudo iwlist <interface_name> channel as is
  • output of sudo iwlist <interface_name> channel after enabling monitor mode
    you can enable monitor mode using these cmds:
sudo ip link set <interface_name> down
sudo iw <interface_name> set monitor control
sudo ip link set <interface_name> up

after enabling monitor mode provide the output of sudo iwlist <interface_name> channel

  • What's the model of the network adapter you're using?

@lissongod
Copy link
Author

Sorry to keep you waiting.
Here are my results.
1.
屏幕截图 2024-10-19 180857

屏幕截图 2024-10-19 170256

屏幕截图 2024-10-19 171729

image

if the problem is caused by the inappropriate network adapter, please recommend some network adapter, thanks

@flashnuke
Copy link
Owner

flashnuke commented Oct 19, 2024

your network adapter should be supported, and it seems that it has no problem enabling monitor mode
Also, it seems the wifi-deauth can detect that it has 5ghz support, as it's scanning 5ghz channels as well...

however what I do find weird is that channel 136 is the last one that was scanned in your screenshot, yet it doesn't show up in the iwlist wlan0 channel command output to begin with...

the channels to scan are generated based on the iwlist command to begin with, I'd try to separate the cause of the issue by first finding out whether this reproduces in other tools

  • if you are passing a custom channel list via --channels try without it
  • if you are not passing a custom channel list, then give it a try and let me know:
    --channels 1,2,3,4,5,6,7,8,9,10,11,12,13,36,40,44,48,52,56,60,64,100,104,108,112,116,120,124,128,132,136,140,149,153,157,161,165
  • in the wifi-deauth scan result, are there any access points on channels bigger than 14? (to find out whether the entire band is missing or just a few channels)
  • if you run airodump-ng --band abg wlan0, do you see the 5ghz access points that are missing on wifi-deauth?

edit:

  • also, what's the output of sudo iw reg get? I'd try setting the region to global using sudo iw reg set 00

@lissongod
Copy link
Author

Sorry to keep you waiting. Here are my all results.

屏幕截图 2024-10-19 195041
屏幕截图 2024-10-19 213546

  1. No channels above 14 appear.

屏幕截图 2024-10-19 214042
It seems to jump directly from 60 to 149 here, without any results in between.
The maximum channel that wifi-deauth can reach is only 136.
5.
屏幕截图 2024-10-19 214612

@flashnuke
Copy link
Owner

flashnuke commented Oct 19, 2024

this is very odd.. I can't think of a possible reason
wifi-deauth derives the channel list from the iwlist command, therefore the channel list should be the same as the one you see when running the iwlist command manually...

can you try setting the region to US: sudo iw reg set US, beware of regional restrictions tho... you can then revert it back afterwards by using sudo iw reg set 00

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants