new: handshakes history is now loaded from the configured pcap

This commit is contained in:
evilsocket 2019-03-22 23:31:11 +01:00
commit 9a3c252c4f
No known key found for this signature in database
GPG key ID: 1564D7F30393A456
3 changed files with 74 additions and 24 deletions

View file

@ -70,6 +70,12 @@ func (mod *WiFiModule) discoverAccessPoints(radiotap *layers.RadioTap, dot11 *la
ap.EachClient(func(mac string, station *network.Station) {
station.Handshake.SetBeacon(packet)
})
} else {
// every time we detect a new ap, see if we have
// its handshakes in our pcap already
for _, h := range mod.shakesHistory {
mod.discoverHandshakes(h.Radiotap, h.Dot11, h.Packet, true)
}
}
} else {
mod.Debug("skipping %s with %d dBm", from.String(), radiotap.DBMAntennaSignal)