This Python-based network scanner identifies active devices on a local network, displaying their IP addresses, MAC addresses, and vendor details. The scanner supports two modes:
- Fast Scan - Uses a local dataset to determine vendor details.
- Advanced Scan - Uses an API to fetch vendor details online.
- Detects devices connected to the same network.
- Retrieves IP and MAC addresses.
- Finds vendor information using a local dataset or an online API.
- Displays results in an easy-to-read format.
Before running the script, ensure you have the following dependencies installed:
pip install psutil socket ipaddress pyfiglet requests time csv scapy
- Clone or download the repository.
- Ensure the
mac-vendors-export.csv
file is in the same directory as the script. - Install the required Python libraries using the command above.
Run the script using:
python net_scn.py
Follow the on-screen prompts:
- Enter
1
for a Fast Scan (local lookup). - Enter
2
for an Advanced Scan (API lookup, may take longer). - Enter
3
to exit.
- The script determines the local network IP and subnet mask.
- It sends ARP requests to detect active devices.
- For vendor lookup:
- Fast Scan: Checks the local dataset (
mac-vendors-export.csv
). - Advanced Scan: Queries an online MAC address lookup API.
- Fast Scan: Checks the local dataset (
- Results are displayed in a table format.
- The API allows one request per second in the free tier.
- Ensure
mac-vendors-export.csv
is in the same directory for fast scanning.
MIT License
Janidu Dilshan