mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-25 00:38:24 -05:00
fragattacks: fix preauth client injection test
This commit is contained in:
parent
f88fd2476b
commit
4e29602da0
@ -1134,14 +1134,14 @@ class Supplicant(Daemon):
|
||||
# When using a separate interface to inject, switch to correct channel
|
||||
self.follow_channel()
|
||||
|
||||
# With the ath9k_htc, injection in mixed managed/monitor only works after
|
||||
# sending the association request. So only perform injection test now.
|
||||
self.injection_test(self.station.bss, self.station.mac, False)
|
||||
|
||||
p = re.compile("Associated with (.*) successfully")
|
||||
bss = p.search(msg).group(1)
|
||||
self.station.handle_connecting(bss)
|
||||
|
||||
# With the ath9k_htc, injection in mixed managed/monitor only works after
|
||||
# sending the association request. So only perform injection test now.
|
||||
self.injection_test(self.station.bss, self.station.mac, False)
|
||||
|
||||
elif "EAPOL-TX" in msg:
|
||||
cmd, srcaddr, payload = msg.split()
|
||||
self.station.handle_eapol_tx(bytes.fromhex(payload))
|
||||
|
Loading…
Reference in New Issue
Block a user