From b4f3c7fdad1d0f281b89b698307dffdc0c70c6e5 Mon Sep 17 00:00:00 2001 From: Yaro Kasear Date: Fri, 11 Apr 2025 12:55:38 -0500 Subject: [PATCH] Let's also exclude the AP BSSID. --- kismet_enrich_from_pcap.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kismet_enrich_from_pcap.py b/kismet_enrich_from_pcap.py index 760d407..0f62049 100755 --- a/kismet_enrich_from_pcap.py +++ b/kismet_enrich_from_pcap.py @@ -94,7 +94,7 @@ def get_clients_on_ap(capture, ap_bssid): return len(clients) -def get_clients_on_channel(capture, ap_channel): +def get_clients_on_channel(capture, ap_channel, ap_bssid): from_channel_freq = CHANNEL_LOOKUP_TABLE.get(ap_channel, {}).get('freq', None) if not from_channel_freq: print(f"[!] Invalid channel: {ap_channel}") @@ -121,7 +121,7 @@ def get_clients_on_channel(capture, ap_channel): da = getattr(wlan, 'da', '').lower() for mac in (sa, da): - if mac and mac != 'ff:ff:ff:ff:ff:ff': + if mac and mac != 'ff:ff:ff:ff:ff:ff' and mac != ap_bssid: clients.add(mac.lower()) except AttributeError: