Skip to content

Commit

Permalink
fix: run eapol recording only when listen 1 channel (prevent non-seq …
Browse files Browse the repository at this point in the history
…of M (m1,m2,m3,m4))
  • Loading branch information
ANDRVV committed Jul 26, 2024
1 parent 2b95c56 commit a3244bf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gapcast.go
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,9 @@ func handlePacket(handle *pcap.Handle, chans []int, prefix string, filter bool,
}
}
if pkt.ErrorLayer() == nil && pkt != nil && pkt.Layer(layers.LayerTypeDot11) != nil {
go recEapol(pkt)
if singleChannel {
go recEapol(pkt)
}
go func(packet gopacket.Packet) {
if PWR, err := libs.GetDBM(packet); !err {
if libs.IsBeacon(packet) {
Expand Down

0 comments on commit a3244bf

Please sign in to comment.