Fix analyze_pcap to handle SSID extraction without stripping whitespace

This commit is contained in:
Yaro Kasear 2025-04-16 09:55:07 -05:00
parent 412d8762a5
commit 5af62780ef

View file

@ -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