mirror of
https://github.com/bettercap/bettercap
synced 2025-07-11 23:57:01 -07:00
Fix #57: the check of the binary array was wrong
This commit is contained in:
parent
09b43d4616
commit
e8e8e09793
1 changed files with 1 additions and 1 deletions
|
@ -80,7 +80,7 @@ func Dot11ParseEncryption(packet gopacket.Packet, dot11 *layers.Dot11) (bool, st
|
||||||
found = true
|
found = true
|
||||||
if info.ID == layers.Dot11InformationElementIDRSNInfo {
|
if info.ID == layers.Dot11InformationElementIDRSNInfo {
|
||||||
enc = "WPA2"
|
enc = "WPA2"
|
||||||
} else if info.ID == layers.Dot11InformationElementIDVendor && bytes.Index(info.OUI, []byte{0, 0x50, 0xf2, 1, 1, 0}) == 0 {
|
} else if info.ID == layers.Dot11InformationElementIDVendor && info.Length >= 8 && bytes.Compare(info.OUI, []byte{0, 0x50, 0xf2, 1}) == 0 && bytes.HasPrefix(info.Info, []byte{1, 0}) {
|
||||||
enc = "WPA"
|
enc = "WPA"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue