mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 02:36:57 -07:00
new: handshakes history is now loaded from the configured pcap
This commit is contained in:
parent
c7f28855ca
commit
9a3c252c4f
3 changed files with 74 additions and 24 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue