fix: fixed a bug which prevented EAPOL frames with only a PMKID to be correctly saved.

This commit is contained in:
evilsocket 2019-02-14 13:03:28 +01:00
commit 440e1b6f72
No known key found for this signature in database
GPG key ID: 1564D7F30393A456

View file

@ -222,7 +222,7 @@ func (w *WiFi) SaveHandshakesTo(fileName string, linkType layers.LinkType) error
for _, ap := range w.aps {
for _, station := range ap.Clients() {
if station.Handshake.Complete() {
if station.Handshake.Complete() || station.Handshake.HasPMKID() {
err = nil
station.Handshake.EachUnsavedPacket(func(pkt gopacket.Packet) {
if err == nil {