mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 02:36:57 -07:00
fix: don't print wifi.client.probe we generate
This commit is contained in:
parent
906969f1b3
commit
662f5fb973
2 changed files with 33 additions and 28 deletions
|
@ -59,6 +59,7 @@ type WiFiModule struct {
|
|||
apRunning bool
|
||||
showManuf bool
|
||||
apConfig packets.Dot11ApConfig
|
||||
probeMac net.HardwareAddr
|
||||
writes *sync.WaitGroup
|
||||
reads *sync.WaitGroup
|
||||
chanLock *sync.Mutex
|
||||
|
@ -203,12 +204,11 @@ func NewWiFiModule(s *session.Session) *WiFiModule {
|
|||
probe := session.NewModuleHandler("wifi.probe BSSID ESSID",
|
||||
`wifi\.probe\s+([a-fA-F0-9:]{11,})\s+([^\s].+)`,
|
||||
"Sends a fake client probe with the given station BSSID, searching for ESSID.",
|
||||
func(args []string) error {
|
||||
bssid, err := net.ParseMAC(args[0])
|
||||
if err != nil {
|
||||
func(args []string) (err error) {
|
||||
if mod.probeMac, err = net.ParseMAC(args[0]); err != nil {
|
||||
return err
|
||||
}
|
||||
return mod.startProbing(bssid, args[1])
|
||||
return mod.startProbing(mod.probeMac, args[1])
|
||||
})
|
||||
|
||||
probe.Complete("wifi.probe", s.WiFiCompleterFull)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue