Mainre Ghar Spy Cam Nikla π± | Python GUI App to Detect Hidden Cameras & Mics (Source Code)
Demo :
Click Video πππ
π§© Features:
-
Python Network Scanner
-
GUI App with Device Table
-
Export Suspicious Devices
-
Works on Wi-Fi or LAN
-
Stylish & Lightweight
Code :
from scapy.all import ARP, Ether, srp
import tkinter as tk
from tkinter import ttk, messagebox
def scan():
target_ip = "192.168.1.1/24"
arp = ARP(pdst=target_ip)
ether = Ether(dst="ff:ff:ff:ff:ff:ff")
packet = ether/arp
result = srp(packet, timeout=3, verbose=0)[0]
devices = []
for sent, received in result:
devices.append({'ip': received.psrc, 'mac': received.hwsrc})
for d in devices:
tree.insert("", "end", values=(d["ip"], d["mac"]))
root = tk.Tk()
root.title("Spy Device Detector")
root.geometry("600x400")
style = ttk.Style()
style.theme_use("clam")
ttk.Label(root, text="Connected Devices", font=("Helvetica", 16)).pack(pady=10)
tree = ttk.Treeview(root, columns=("IP", "MAC"), show="headings")
tree.heading("IP", text="IP Address")
tree.heading("MAC", text="MAC Address")
tree.pack(fill="both", expand=True)
ttk.Button(root, text="Scan Network", command=scan).pack(pady=10)
root.mainloop()
Comments
Post a Comment