A basic network sniffer that captures and analyzes network packets.
- Capture network packets on a specified interface.
- Analyze packets and display protocol, source IP, and destination IP.
- Web interface to start packet capture and view results.
- Python 3
- Pip
- Virtual Environment (optional but recommended)
- tshark
- Clone the repository:
git clone <repository-url> cd network_sniffer
- Create and activate a virtual environment (optional but recommended):
virtualenv venv source venv/bin/activate - Install the dependencies:
pip install -r requirements.txt
-
Start the Flask app:
python run.py
-
Open your web browser and navigate to http://127.0.0.1:5000/.
-
Enter the network interface and number of packets to capture, then start sniffing.
Contributions are welcome! Please create an issue before making changes and open a pull request for your changes.