fragattack: ignore key request as event

This commit is contained in:
Mathy Vanhoef 2020-08-03 07:30:14 +04:00
parent 4514ec79fa
commit 4350e3d24a

View File

@ -480,11 +480,12 @@ class Station():
key_ack = eapol.key_info & 0x0080
key_mic = eapol.key_info & 0x0100
key_secure = eapol.key_info & 0x0200
key_request = eapol.key_info & 0x0800
# Detect Msg3/4 assumig WPA2 is used --- XXX support WPA1 as well
is_msg3_or_4 = key_secure != 0
# Ignore group key handshake
if key_type == 0:
# Ignore group key handshake and key requests
if key_type == 0 or key_request != 0:
return None
# Inject any fragments before authenticating