fix: saving half handshakes

This commit is contained in:
evilsocket 2019-08-19 15:59:43 -04:00
commit 672a9f2706
No known key found for this signature in database
GPG key ID: 82E42E7F3B34C97E

View file

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