How can I make it work in 5GHz?
as you can see, it only works at 2.4Ghz, but my wireless adapter support 2.4G/5GHz,
please help me, thanks!
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> channelas is - output of
sudo iwlist <interface_name> channelafter 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?
Sorry to keep you waiting.
Here are my results.
1.
if the problem is caused by the inappropriate network adapter, please recommend some network adapter, thanks
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
--channelstry 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 usingsudo iw reg set 00
Sorry to keep you waiting. Here are my all results.
- No channels above 14 appear.
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.
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
Hello, sorry for disturbing you again after such a long time. I just wanted to say that there was no issue with your code. As shown in the picture, I was previously using campus network, but now that I'm back home, it can display the 5Ghz band WiFi normally.