mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 18:57:17 -07:00
fix: removed delay in wifi.assoc and wifi.deauth as it only made them slower and not more effective
This commit is contained in:
parent
7e1d8ac68f
commit
4ae1ffd171
2 changed files with 0 additions and 7 deletions
|
@ -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)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue