mirror of
https://github.com/bettercap/bettercap
synced 2025-08-20 21:43:18 -07:00
fix: saving half handshakes
This commit is contained in:
parent
3d31bf3712
commit
672a9f2706
1 changed files with 2 additions and 1 deletions
|
@ -232,7 +232,8 @@ func (w *WiFi) SaveHandshakesTo(fileName string, linkType layers.LinkType) error
|
|||
|
||||
for _, ap := range w.aps {
|
||||
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
|
||||
station.Handshake.EachUnsavedPacket(func(pkt gopacket.Packet) {
|
||||
if err == nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue