mirror of
https://github.com/bettercap/bettercap
synced 2025-08-19 13:09:49 -07:00
fix: do not allow wifi.recon if wifi.bruteforce is running
This commit is contained in:
parent
ef9a3ef85b
commit
0202028524
1 changed files with 4 additions and 1 deletions
|
@ -2,6 +2,7 @@ package wifi
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"net"
|
"net"
|
||||||
"regexp"
|
"regexp"
|
||||||
|
@ -716,7 +717,9 @@ func (mod *WiFiModule) updateStats(dot11 *layers.Dot11, packet gopacket.Packet)
|
||||||
const wifiPrompt = "{by}{fb}{env.iface.name} {reset} {bold}» {reset}"
|
const wifiPrompt = "{by}{fb}{env.iface.name} {reset} {bold}» {reset}"
|
||||||
|
|
||||||
func (mod *WiFiModule) Start() error {
|
func (mod *WiFiModule) Start() error {
|
||||||
if err := mod.Configure(); err != nil {
|
if mod.bruteforce.running.Load() {
|
||||||
|
return errors.New("stop wifi.bruteforce first")
|
||||||
|
} else if err := mod.Configure(); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue