This project is a simple Python network scanner that discovers devices on the local network using ARP.
IP address
MAC address
Vendor (from MAC)
Hostname
Results are printed to the terminal and saved to a text file.
Python 3.9+
Libraries: pip install scapy getmac manuf colorama
On Windows, Npcap must be installed (WinPcap compatible mode).
pip install -r requirements python scan.py
Detects local IP
Generates subnet
Scans the network with ARP
Prints results
Saves output to results.txt
Scan completed: 2 devices found (0.42s)
IP MAC VENDOR HOSTNAME
172.20.10.1 b2:67:b5:c5:ba:64 Unknown - 172.20.10.4 1c:bf:c0:ca:cf:5d Chongqing Fugui ... DESKTOP-0VLK6V5
Run with administrator/root privileges. Use only on networks you own or have permission to scan.