Add debug print statement to display packet layers in analyze_pcap
This commit is contained in:
parent
d16d4bc171
commit
63a5bbba09
1 changed files with 2 additions and 1 deletions
|
@ -315,8 +315,9 @@ def analyze_pcap(pcapng_path, start_ts, end_ts, ap_bssid, ap_channel):
|
|||
|
||||
for packet in filtered_packets:
|
||||
try:
|
||||
print(f"[DEBUG] Layers: {[layer.layer_name for layer in packet.layers]}")
|
||||
|
||||
if 'radiotap' not in packet or 'wlan' not in packet or 'wlan.mgt' not in packet:
|
||||
print(f"[!] Packet does not contain required layers: {packet}")
|
||||
continue
|
||||
|
||||
radio = packet.radiotap
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue