This Python script implements a network sniffer using the Scapy library. It captures and analyzes network traffic, providing detailed information about Ethernet frames, IP packets, TCP segments, and UDP datagrams. The project is useful for understanding network protocols, traffic analysis, and network troubleshooting.
- Clone this repository to your local machine.
- Open the project in PyCharm on Windows 11.
- Ensure Python and the Scapy library are installed. If not, follow the installation instructions below.
- Run the
network_sniffer.pyscript in PyCharm. - The script will start capturing and displaying network traffic information in the console.
To use this script, you need Python and the Scapy library installed on your machine:
- Python: Download and install Python from the official website: https://www.python.org/downloads/
- Scapy: Install Scapy using pip by running the following command:
- Scapy documentation: https://scapy.net/
- Python documentation: https://docs.python.org/3/