tests: EAP-pwd protocol tests - unexpected more-fragment frame
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This commit is contained in:
parent
d2d1a324ce
commit
778ce8ae0b
1 changed files with 11 additions and 0 deletions
|
@ -6806,6 +6806,17 @@ def start_pwd_exchange(dev, ap):
|
|||
proxy_msg(dev, hapd) # EAP-pwd-ID/Response
|
||||
return hapd
|
||||
|
||||
def test_eap_proto_pwd_unexpected_fragment(dev, apdev):
|
||||
"""EAP-pwd protocol tests - unexpected more-fragment frame"""
|
||||
hapd = start_pwd_exchange(dev[0], apdev[0])
|
||||
|
||||
# EAP-pwd-Commit/Request
|
||||
req = rx_msg(hapd)
|
||||
if req[18:20] != "02":
|
||||
raise Exception("Unexpected EAP-pwd-Commit/Request flag")
|
||||
msg = req[0:18] + "42" + req[20:]
|
||||
tx_msg(hapd, dev[0], msg)
|
||||
|
||||
def test_eap_proto_pwd_reflection_attack(dev, apdev):
|
||||
"""EAP-pwd protocol tests - reflection attack on the server"""
|
||||
hapd = start_pwd_exchange(dev[0], apdev[0])
|
||||
|
|
Loading…
Reference in a new issue