Skip to content

The Network Sniffer, a Python-based tool, offers real-time packet capture and analysis, providing insights into various network protocols.

Notifications You must be signed in to change notification settings

Melvin-Shalom/Packet_Sniffer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 

Repository files navigation

Packet Sniffer

Description

The Network Sniffer, a Python-based tool, offers real-time packet capture and analysis, providing insights into various network protocols.

Features

  • Captures and analyzes Ethernet frames to extract MAC addresses and protocol information.
  • Parses IP packets to determine source and destination IP addresses, TTL (Time-To-Live), and transport layer protocol.
  • Supports parsing of ICMP, TCP, and UDP packets to extract specific protocol details.
  • Provides real-time updates on captured packets, displaying packet details and protocol information as they are intercepted.
  • Includes packet statistics functionality to track the count of packets per protocol and display statistics every 10 seconds.

Requirements

  • Python 3.11
  • Terminal or Command Prompt

Steps to Run

  1. Clone the repository

    git clone https://github.com/Melvin-Shalom/Packet_Sniffer.git
  2. Navigate to the project directory

    cd Packet_Sniffer/
  3. Create & activate the virtual environment

    python -m venv venv
    source venv/bin/activate    # For Linux/macOS
    .\venv\Scripts\activate     # For Windows
  4. Install dependencies

    pip install -r requirements.txt
  5. Run the packet sniffer script

    sudo venv/bin/python3 main.py   # For Linux/macOS
    python main.py                  # For Windows

Usage

Run the script to capture and analyze packets. Stats are printed every 10 seconds, providing protocol-wise packet distribution.

Future Scope

  • Add GUI for live traffic visualization
  • Export packet logs in .pcap format
  • Filter packets by IP, port, or protocol
  • Integrate with threat intelligence APIs

Author

Built with ❤️ and ☕ by Melvin Shalom

License

Licensed under the MIT License

About

The Network Sniffer, a Python-based tool, offers real-time packet capture and analysis, providing insights into various network protocols.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages