Skip to content

Adeeba-Shahzadi/NetworkPacketSniffer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

4 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ Network Packet Sniffer (Python + Scapy)

Network Packet Sniffer is a simple and interactive tool written in Python, inspired by real-world network monitoring tools. You can capture live network packets and analyze them in real time. The tool features a Tkinter-based GUI, protocol-wise traffic summary, and detailed packet inspection.


๐Ÿ“Œ Overview

This project is developed using Python with Scapy and Tkinter. It provides a visual interface to capture and analyze network packets, allowing users to see TCP, UDP, and ICMP traffic in real time. Key functionalities include:

  • Live packet capture
  • Protocol-wise summary (TCP, UDP, ICMP)
  • Color-coded packet rows
  • Detailed packet analysis in a popup window
  • Start/Stop capture buttons
  • Protocol filtering options

This project is ideal for beginners learning about:

  • Network traffic monitoring and analysis
  • Packet sniffing with Scapy
  • Building GUI applications with Tkinter

It also demonstrates how Python can be used to create practical cybersecurity tools with interactive interfaces.


๐ŸŽฎ How to Use

  1. Run the script using Python:
    python packet_sniffer.py

Click โ–ถ Start Capture to begin sniffing packets.

  1. Packets will appear in the Packet Details table in real time.

  2. Click on any packet to view full details in a popup window.

  3. Use โน Stop Capture to stop sniffing.

  4. Filter packets by protocol (All, TCP, UDP, ICMP) using the dropdown menu.


๐Ÿง  Features

  • Live capture of network packets
  • Protocol filtering (TCP, UDP, ICMP)
  • Color-coded rows based on packet type
  • Timestamped packet details
  • Popup window for full packet inspection
  • User-friendly GUI with Tkinter

๐Ÿ›  Requirements

  • Python 3.8+
  • Scapy (for packet sniffing and analysis)
  • Tkinter (for GUI interface, usually pre-installed with Python)
  • Threading & Collections (standard Python libraries)
  • Works on Windows, Linux, or macOS (requires network access permissions)

About

A Python-based Network Packet Sniffer built with Scapy and Tkinter. It captures live packets (TCP, UDP, ICMP), analyzes them, and displays protocol summaries with detailed insights in a user-friendly GUI.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages