README - LAN-Scanner
Mini Sniffer — Lightweight Network Scanner & Packet Sniffer (Bash)
A simple, portable, and dependency-light local network scanner and packet sniffer written entirely in Bash. Shows connected devices and live transported packets without needing Wireshark.
Using curl: curl -s https://raw.githubusercontent.com/LackOfHP/LAN-Scanner/refs/heads/main/LAN-scanner.sh | bash
Using wget: wget -qO- https://raw.githubusercontent.com/LackOfHP/LAN-Scanner/refs/heads/main/LAN-scanner.sh | bash
Install required tools: sudo apt install tcpdump arp-scan iputils-ping
git clone https://github.com/LackOfHP/LAN-scanner.git
cd LAN-scanner
chmod +x LAN-scanner.sh
sudo ./LAN-scanner.sh
- Scans your local network
- Lists connected devices (IP, MAC, hostname)
- Displays live packet flow (source, destination, protocol, bytes)
- Saves captured packets into a .pcap file for Wireshark
sudo cp LAN-scanner.sh /usr/local/bin/LAN-scanner
sudo chmod +x /usr/local/bin/LAN-scanner
sudo LAN-scanner
MIT License — free to modify and use.
Your Name GitHub: https://github.com/LackofHP