From 231ce7e8b08d2def24cbd329b40aea30fd3424fc Mon Sep 17 00:00:00 2001 From: Yaro Kasear Date: Fri, 2 May 2025 11:20:42 -0500 Subject: [PATCH] Association Frame Support (Augments client tracking) --- listener.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/listener.py b/listener.py index 21f6bd3..32bc26a 100755 --- a/listener.py +++ b/listener.py @@ -128,6 +128,17 @@ def handle_packet(pkt): if mac not in aps: unlinked_candidates.add(mac) + if dot11.type == 0 and dot11.subtype in [0, 1]: + sa = dot11.addr2.lower() if dot11.addr2 else None + da = dot11.addr1.lower() if dot11.addr1 else None + for mac in (sa, da): + if is_unicast(mac) and mac != target_ap_bssid: + clients[mac] += 1 + if mac not in aps: + unlinked_candidates.add(mac) + if da in aps and is_unicast(sa): + ap_clients[da][sa] += 5 + # Track clients talking to any known AP if a1 and a2: for bssid in aps: