Skip to content

This repository contains a Python-based network packet analyzer tool developed using Scapy. The tool captures and analyzes network packets, displaying information such as source and destination IP addresses, protocols, and payload data (if available). Ideal for learning about network traffic analysis and packet inspection using Scapy.

Notifications You must be signed in to change notification settings

MHS-4ever/Network-Packet-Sniffer-Tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

Network Packet Sniffer

Overview

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.

Features

  • 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.

Requirements

  • Python 3.x
  • Scapy

Installation

  1. Clone the Repository:

    git clone https://github.com/MHS-4ever/Network-Packet-Sniffer-Tool.git
    

Install Dependencies

  • 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
    

Run the Tool

  • 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.

Usage

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.

Disclaimer

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.

About

This repository contains a Python-based network packet analyzer tool developed using Scapy. The tool captures and analyzes network packets, displaying information such as source and destination IP addresses, protocols, and payload data (if available). Ideal for learning about network traffic analysis and packet inspection using Scapy.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published