mirror of
https://github.com/bettercap/bettercap
synced 2025-08-21 05:53:20 -07:00
wifi module: fixes and multiple channel selection
This commit is contained in:
commit
654633c419
6 changed files with 105 additions and 22 deletions
|
@ -33,10 +33,11 @@ func (w *WiFiModule) channelHopper() {
|
|||
// more channels, therefore we need to increase the time
|
||||
// we hop on each one otherwise me lose information
|
||||
if len(w.frequencies) > 14 {
|
||||
delay = 500 * time.Millisecond
|
||||
delay = delay * 2
|
||||
}
|
||||
|
||||
for _, frequency := range w.frequencies {
|
||||
frequencies := w.frequencies
|
||||
for _, frequency := range frequencies {
|
||||
channel := network.Dot11Freq2Chan(frequency)
|
||||
// stick to the access point channel as long as it's selected
|
||||
// or as long as we're deauthing on it
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue