fix: one beacon packet per handshake is saved in order to have both the ESSID and BSSID

This commit is contained in:
evilsocket 2019-02-06 07:08:01 +01:00
commit 1120f98be1
No known key found for this signature in database
GPG key ID: 1564D7F30393A456
4 changed files with 28 additions and 4 deletions

View file

@ -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()