A small ARP network scanner that uses Scapy to discover hosts on a local network.
Purpose
- Scans an IP range and prints each discovered host's IP and MAC address.
Requirements
- Python 3
- scapy (install with
pip install scapy) - On Windows: run the script with Administrator privileges and install Npcap/WinPcap for packet sending.
Usage
- Open a terminal in the
Network_scannerfolder. - Run:
python network_scanner.py
- When prompted, enter the IP range to scan (CIDR notation like
192.168.1.0/24is recommended).
Example input
192.168.1.0/24
Notes
- The script uses ARP requests, so it only discovers hosts on the local network segment.
- Increase the
timeoutin the script if you need to wait longer for replies.