From 3f274733575c47d76b52d2b7216365d0f652f458 Mon Sep 17 00:00:00 2001 From: Yaro Kasear Date: Tue, 22 Apr 2025 08:12:07 -0500 Subject: [PATCH] Initialize ssid_encryption_status dictionary in analyze_pcap function for tracking SSID encryption status --- enrich.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/enrich.py b/enrich.py index 343b883..c1c6674 100755 --- a/enrich.py +++ b/enrich.py @@ -306,6 +306,7 @@ def analyze_pcap(pcapng_path, start_ts, end_ts, ap_bssid, ap_channel): bssid_to_ssid = {} cisco_reported_clients = [] ssid_packet_counts = defaultdict(int) + ssid_encryption_status = {} try: # Filter packets manually by timestamp @@ -318,8 +319,6 @@ def analyze_pcap(pcapng_path, start_ts, end_ts, ap_bssid, ap_channel): except Exception: continue - ssid_encryption_status = {} - for packet in filtered_packets: try: if 'radiotap' not in packet or 'wlan' not in packet: