From c0261964ae73b7785b96141ba9e543b88b3f54e6 Mon Sep 17 00:00:00 2001 From: Mert Date: Mon, 18 May 2026 21:12:45 +0200 Subject: [PATCH] Update passive_sniff.py --- passive_sniff.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/passive_sniff.py b/passive_sniff.py index 3f09e17..0064bff 100644 --- a/passive_sniff.py +++ b/passive_sniff.py @@ -95,7 +95,6 @@ def get_mac_vendor(mac, ip): print(f"[+] New Device: {ip} ({mac}) -> Vendor: {vendor}") - # FIX: Guard against race condition — devices[mac] may not exist if called unexpectedly device = devices.get(mac) hostname = device.get('hostname', '') if device else '' log_device(mac, ip, vendor, hostname) @@ -130,7 +129,6 @@ def process_packet(packet): hostname = opt[1].decode('utf-8') if mac in devices: devices[mac]['hostname'] = hostname - # FIX: Use consistent "Unknown" fallback (was "Bilinmiyor" in Turkish) log_device(mac, devices[mac]['ip'], mac_vendors.get(mac[:8].upper(), "Unknown"), hostname) print(f"[*] Device Name: {mac} -> {hostname}")