From 33e6fb35c9a4089e6420c2f8bb05367c32edac58 Mon Sep 17 00:00:00 2001 From: Yaro Kasear Date: Wed, 16 Apr 2025 10:36:31 -0500 Subject: [PATCH] Add debug print statement for management frame fields in analyze_pcap --- enrich.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/enrich.py b/enrich.py index cc97cc3..c34e713 100755 --- a/enrich.py +++ b/enrich.py @@ -331,8 +331,10 @@ def analyze_pcap(pcapng_path, start_ts, end_ts, ap_bssid, ap_channel): if subtype not in (5, 8): # Probe Response or Beacon continue + try: mgt = packet.get_multiple_layers('wlan.mgt')[0] + print(mgt._all_fields) ssid = mgt.get_field('ssid') if ssid is None: print("[DEBUG] SSID is None (explicitly)")