This repository contains a Python-based network packet analyzer tool developed using Scapy. The tool captures and analyzes network packets, providing detailed information about IP addresses, protocols, and payload data. The application includes a Jupyter Notebook explaining the code and its functionality. This tool is useful for learning about network traffic analysis and packet inspection.
- Capture Packets: Capture network packets from all interfaces.
- IP Analysis: Display source and destination IP addresses and the protocol used.
- Payload Inspection: View payload data of TCP/UDP packets if available.
- Customizable Packet Count: Configure the number of packets to capture.
- Educational Resource: Includes a Jupyter Notebook explaining the code and its components.
- Python 3.x
- Scapy
-
Clone the Repository:
git clone https://github.com/MHS-4ever/Network-Packet-Sniffer-Tool.git
-
Install Npcap: Download and install Npcap from Npcap Official Site. Follow the installation instructions to ensure proper packet capturing.
https://npcap.com/
-
Install Scapy:
pip install scapy
-
Open Visual Studio Code, Command Prompt, or any terminal as Administrator.
-
Navigate to the directory containing the tool:
cd path/to/network-packet-analyzer
-
Run the packet analyzer script:
python Name_of_Your_File.py
Note: Make sure to run the script with administrative privileges to capture network packets.
Run the Script:
- Execute the script using the command provided above. The tool will start capturing packets and displaying information about them in the terminal.
Review the Jupyter Notebook:
- You can open the Jupyter Notebook provided in the repository for an in-depth explanation of the code and its functional.
This tool is intended for educational purposes only. Use it responsibly and ensure you have the necessary permissions to capture network traffic. Unauthorized packet capturing may violate laws or policies and can have legal consequences.