From 13749d3d1cac242310c544230afb5bc4a0e72652 Mon Sep 17 00:00:00 2001 From: Yaro Kasear Date: Fri, 11 Apr 2025 08:21:56 -0500 Subject: [PATCH] Removing all the debug stuff since we found the bug. --- kismet_enrich_from_pcap.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/kismet_enrich_from_pcap.py b/kismet_enrich_from_pcap.py index 7f1dfdf..3a7df4e 100755 --- a/kismet_enrich_from_pcap.py +++ b/kismet_enrich_from_pcap.py @@ -25,28 +25,22 @@ def get_clients_on_ap(capture, ap_bssid): for packet in capture: try: if not hasattr(packet, 'wlan'): - print("No WLAN layer found in packet") continue sa = getattr(packet.wlan, 'sa', '').lower() da = getattr(packet.wlan, 'da', '').lower() bssid = getattr(packet.wlan, 'bssid', '').lower() - print(f"Processing packet: SA={sa}, DA={da}, BSSID={bssid}") # Count any frame *to or from* a client, if AP is involved if bssid == ap_bssid or sa == ap_bssid or da == ap_bssid: - print("Found packet related to AP") # If it's the AP sending, add the destination (client) if sa == ap_bssid and da and da != ap_bssid: - print(f"Adding client: {da}") clients.add(da) # If it's the client sending, add the source elif sa and sa != ap_bssid: - print(f"Adding client: {sa}") clients.add(sa) except AttributeError: - print("Attribute error in packet processing") continue return len(clients) @@ -61,9 +55,6 @@ def analyze_pcap(pcapng_path, start_ts, end_ts, ap_bssid, ap_channel): include_raw=False ) - # Show for debug purposes the packets in the filtered capture as well as the filter applied - print(f"[+] Filter applied: time >= {start_ts} && time <= {end_ts}") - clients_on_ap = get_clients_on_ap(cap, ap_bssid.lower()) # Placeholder: Logic will be added for: @@ -86,7 +77,6 @@ def main(): include_raw=False, keep_packets=False ) - cap.set_debug(True) # Checking if the pcapng file is valid count = 0