fix: collect additional frames for stations with key material (ref #810)

This commit is contained in:
Simone Margaritelli 2021-03-30 23:19:06 +02:00
commit cea53b969e
3 changed files with 73 additions and 1 deletions

View file

@ -245,7 +245,7 @@ func (w *WiFi) SaveHandshakesTo(fileName string, linkType layers.LinkType) error
for _, ap := range w.aps {
for _, station := range ap.Clients() {
// if half (which includes also complete) or has pmkid
if station.Handshake.Half() || station.Handshake.HasPMKID() {
if station.Handshake.Any() {
err = nil
station.Handshake.EachUnsavedPacket(func(pkt gopacket.Packet) {
if err == nil {