fix: removed delay in wifi.assoc and wifi.deauth as it only made them slower and not more effective

This commit is contained in:
evilsocket 2019-02-24 19:19:51 +01:00
commit 4ae1ffd171
No known key found for this signature in database
GPG key ID: 1564D7F30393A456
2 changed files with 0 additions and 7 deletions

View file

@ -5,7 +5,6 @@ import (
"fmt"
"net"
"sort"
"time"
"github.com/bettercap/bettercap/network"
"github.com/bettercap/bettercap/packets"
@ -116,9 +115,6 @@ func (mod *WiFiModule) startAssoc(to net.HardwareAddr) error {
mod.onChannel(ap.Channel(), func() {
mod.sendAssocPacket(ap)
// let's stick to this channel for a while in order
// to capture key material from the AP
time.Sleep(mod.hopPeriod * 2)
})
}
}

View file

@ -141,9 +141,6 @@ func (mod *WiFiModule) startDeauth(to net.HardwareAddr) error {
mod.onChannel(ap.Channel(), func() {
mod.sendDeauthPacket(ap.HW, client.HW)
// let's stick to this channel for a while in order
// to capture key material from the AP
time.Sleep(mod.hopPeriod * 2)
})
}
}