mirror of
https://github.com/bettercap/bettercap
synced 2025-08-21 14:03:17 -07:00
new: implemented wifi.bruteforce for linux (closes #1075)
This commit is contained in:
parent
d8e11287c6
commit
1b91eb348b
3 changed files with 96 additions and 5 deletions
|
@ -60,7 +60,7 @@ func NewBruteForceConfig() *bruteforceConfig {
|
|||
workers: 1,
|
||||
wide: false,
|
||||
stop_at_first: true,
|
||||
timeout: 10,
|
||||
timeout: 15,
|
||||
queue: nil,
|
||||
done: atomic.Uint64{},
|
||||
todo: 0,
|
||||
|
@ -196,7 +196,7 @@ func (mod *WiFiModule) startBruteforce() (err error) {
|
|||
return fmt.Errorf("could not find interface %s", ifName)
|
||||
}
|
||||
|
||||
mod.Info("using interface %s (%s)", ifName, mod.iface.HwAddress)
|
||||
mod.Info("using interface %s", ifName)
|
||||
|
||||
mod.bruteforce.todo = uint64(len(mod.bruteforce.passwords) * len(mod.bruteforce.targets))
|
||||
mod.bruteforce.done.Store(0)
|
||||
|
@ -243,6 +243,8 @@ func (mod *WiFiModule) startBruteforce() (err error) {
|
|||
mod.showBruteforceProgress()
|
||||
}
|
||||
|
||||
mod.bruteforce.running.Store(false)
|
||||
|
||||
if mod.bruteforce.done.Load() == mod.bruteforce.todo {
|
||||
mod.Info("bruteforcing completed")
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue