From 5af62780efb86b6609541a2b11e48ea7b98b9b74 Mon Sep 17 00:00:00 2001 From: Yaro Kasear Date: Wed, 16 Apr 2025 09:55:07 -0500 Subject: [PATCH] Fix analyze_pcap to handle SSID extraction without stripping whitespace --- enrich.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/enrich.py b/enrich.py index eb8ca3e..e8078ce 100755 --- a/enrich.py +++ b/enrich.py @@ -331,7 +331,7 @@ def analyze_pcap(pcapng_path, start_ts, end_ts, ap_bssid, ap_channel): if subtype not in (5, 8): # Probe Response or Beacon continue - ssid = getattr(packet.wlan.mgt, 'ssid', None).strip() + ssid = getattr(packet.wlan.mgt, 'ssid', None) bssid = getattr(wlan, 'bssid', '').lower() # For debugging purposes, print the SSID and BSSID