wifi-deauth icon indicating copy to clipboard operation
wifi-deauth copied to clipboard

How can I make it work in 5GHz?

Open lissongod opened this issue 1 year ago • 6 comments

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

lissongod avatar Oct 19 '24 07:10 lissongod

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?

flashnuke avatar Oct 19 '24 08:10 flashnuke

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

lissongod avatar Oct 19 '24 10:10 lissongod

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

flashnuke avatar Oct 19 '24 10:10 flashnuke

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

lissongod avatar Oct 19 '24 13:10 lissongod

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

flashnuke avatar Oct 19 '24 14:10 flashnuke

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.屏幕截图 2025-01-10 171453

lissongod avatar Jan 10 '25 09:01 lissongod