misc: wifi.deauth has been optimized by sorting frames to send by channel in order to minimize the amount of channel hops

This commit is contained in:
evilsocket 2018-08-17 14:57:44 +02:00
commit 49beed239f
No known key found for this signature in database
GPG key ID: 1564D7F30393A456
4 changed files with 39 additions and 14 deletions

View file

@ -73,7 +73,7 @@ func NewWiFiModule(s *session.Session) *WiFiModule {
return err
} else if ap, found := w.Session.WiFi.Get(bssid.String()); found {
w.ap = ap
w.stickChan = network.Dot11Freq2Chan(ap.Frequency)
w.stickChan = ap.Channel()
return nil
}
return fmt.Errorf("Could not find station with BSSID %s", args[0])