From 4e29602da00c5e684afe99ca2ef831ce92f16ff2 Mon Sep 17 00:00:00 2001 From: Mathy Vanhoef Date: Mon, 13 Jul 2020 05:24:41 +0400 Subject: [PATCH] fragattacks: fix preauth client injection test --- research/fraginternals.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/research/fraginternals.py b/research/fraginternals.py index fcc9dfb72..0b6c135fa 100644 --- a/research/fraginternals.py +++ b/research/fraginternals.py @@ -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))