new: implemented wifi.bruteforce for darwin (ref #1075)

This commit is contained in:
Simone Margaritelli 2024-08-18 13:44:12 +02:00
commit 08da91ed5c
7 changed files with 382 additions and 7 deletions

View file

@ -181,7 +181,7 @@ func (mod *WiFiModule) doSelection() (err error, stations []*network.Station) {
if ap, found := mod.Session.WiFi.Get(mod.ap.HwAddress); found {
stations = ap.Clients()
} else {
err = fmt.Errorf("Could not find station %s", mod.ap.HwAddress)
err = fmt.Errorf("could not find station %s", mod.ap.HwAddress)
return
}
} else {
@ -315,10 +315,6 @@ func (mod *WiFiModule) showStatusBar() {
}
func (mod *WiFiModule) Show() (err error) {
if mod.Running() == false {
return session.ErrAlreadyStopped(mod.Name())
}
var stations []*network.Station
if err, stations = mod.doSelection(); err != nil {
return