mirror of
https://github.com/bettercap/bettercap
synced 2025-08-20 21:43:18 -07:00
fix: one beacon packet per handshake is saved in order to have both the ESSID and BSSID
This commit is contained in:
parent
a90f63b643
commit
1120f98be1
4 changed files with 28 additions and 4 deletions
|
@ -97,6 +97,15 @@ func (ap *AccessPoint) Clients() (list []*Station) {
|
|||
return
|
||||
}
|
||||
|
||||
func (ap *AccessPoint) EachClient(cb func(mac string, station *Station)) {
|
||||
ap.Lock()
|
||||
defer ap.Unlock()
|
||||
|
||||
for m, station := range ap.clients {
|
||||
cb(m, station)
|
||||
}
|
||||
}
|
||||
|
||||
func (ap *AccessPoint) NumHandshakes() int {
|
||||
ap.Lock()
|
||||
defer ap.Unlock()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue