mirror of
https://github.com/bettercap/bettercap
synced 2025-08-20 21:43:18 -07:00
fix: fixed a bug which prevented EAPOL frames with only a PMKID to be correctly saved.
This commit is contained in:
parent
d51e61f6d0
commit
440e1b6f72
1 changed files with 1 additions and 1 deletions
|
@ -222,7 +222,7 @@ 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() {
|
if station.Handshake.Complete() || 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 {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue