NetEar is a simple Python script that monitors devices on your local network and plays different sounds when a device gets connected or disconnected. It uses ARP (Address Resolution Protocol) to detect devices and alerts the user in real-time.
- Scans the local network for connected devices using ARP.
- Plays a sound when a new device is detected.
- Plays a different sound when a device is disconnected.
- Customizable scan interval.
- Python 3.x
- macOS
- Required Python packages (install using
pip install -r requirements.txt
): - scapy
-
Clone this repository:
git clone https://github.com/mo-shakib/NetEar.git
-
Navigate to the project directory:
cd NetEar
-
Install the required packages:
pip install -r requirements.txt
-
Run the script:
python netear.py Press Ctrl + C to stop the script.
-
Configuration
You can adjust the scan interval in the script (time.sleep()). You can change the sound files for connected and disconnected devices by replacing "connected_sound.mp3" and "disconnected_sound.mp3" respectively.
Contributions are welcome! If you have suggestions, feature requests, or found a bug, please open an issue or submit a pull request.