mirror of
https://github.com/bettercap/bettercap
synced 2025-07-05 20:42:09 -07:00
fix: WPA3 is now correcly identified and reported (fixes #1098)
This commit is contained in:
parent
6282fe3451
commit
0ceb938f10
1 changed files with 7 additions and 1 deletions
|
@ -253,7 +253,13 @@ func Dot11ParseEncryption(packet gopacket.Packet, dot11 *layers.Dot11) (bool, st
|
|||
cipher = rsn.Pairwise.Suites[i].Type.String()
|
||||
}
|
||||
for i = 0; i < rsn.AuthKey.Count; i++ {
|
||||
auth = rsn.AuthKey.Suites[i].Type.String()
|
||||
// https://balramdot11b.com/2020/11/08/wpa3-deep-dive/
|
||||
if rsn.AuthKey.Suites[i].Type == 8 {
|
||||
auth = "SAE"
|
||||
enc = "WPA3"
|
||||
} else {
|
||||
auth = rsn.AuthKey.Suites[i].Type.String()
|
||||
}
|
||||
}
|
||||
}
|
||||
} else if enc == "" && info.ID == layers.Dot11InformationElementIDVendor && info.Length >= 8 && bytes.Equal(info.OUI, wpaSignatureBytes) && bytes.HasPrefix(info.Info, []byte{1, 0}) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue