Association Frame Support (Augments client tracking)
This commit is contained in:
parent
5c55276ef3
commit
231ce7e8b0
1 changed files with 11 additions and 0 deletions
11
listener.py
11
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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue