mirror of
https://github.com/bettercap/bettercap
synced 2025-08-20 21:43:18 -07:00
new: new wifi.clear command to clear access points collected by wifi.recon
This commit is contained in:
parent
223af913b8
commit
dbd4590654
2 changed files with 10 additions and 2 deletions
|
@ -179,9 +179,10 @@ func (w *WiFi) GetClient(mac string) (*Station, bool) {
|
|||
return nil, false
|
||||
}
|
||||
|
||||
func (w *WiFi) Clear() error {
|
||||
func (w *WiFi) Clear() {
|
||||
w.Lock()
|
||||
defer w.Unlock()
|
||||
w.aps = make(map[string]*AccessPoint)
|
||||
return nil
|
||||
}
|
||||
|
||||
func (w *WiFi) NumHandshakes() int {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue