From 439018ba85c25449e2ab98a9c89301c3622766ec Mon Sep 17 00:00:00 2001 From: Yaro Kasear Date: Tue, 15 Apr 2025 09:18:56 -0500 Subject: [PATCH] Remove debug print statements from get_aps_on_channel for cleaner output --- enrich.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/enrich.py b/enrich.py index f8394e8..12d13fc 100755 --- a/enrich.py +++ b/enrich.py @@ -160,14 +160,12 @@ def get_aps_on_channel(capture, ap_channel): for packet in capture: try: if 'radiotap' not in packet or 'wlan' not in packet: - print(f"[!] Packet missing radiotap or wlan layer: {packet}") continue radio = packet.radiotap wlan = packet.wlan if not hasattr(radio, 'channel') or not hasattr(radio.channel, 'freq'): - print(f"[!] Packet missing channel frequency: {packet}") continue packet_freq = int(radio.channel.freq) @@ -178,13 +176,11 @@ def get_aps_on_channel(capture, ap_channel): # print(f"Packet Channel: {packet_channel}, Frequency: {packet_freq} MHz") if packet_channel != ap_channel: - print(f"[!] Packet not on specified channel {ap_channel}: {packet_channel}") continue # Check for beacon or probe response ts_hex = getattr(wlan, 'type_subtype', None) if ts_hex is None: - print(f"[!] Missing type_subtype in packet: {packet}") continue # For debugging purposes, display the type_subtype value with some sarcasm @@ -192,7 +188,6 @@ def get_aps_on_channel(capture, ap_channel): ts = int(ts_hex, 16) if ts not in (5, 8): # Probe Response or Beacon - print(f"[!] Not a probe response or beacon: {ts}") continue # Grab BSSID