Home
Softono
Network-Packet-Sniffer-Traffic-Analyse-GUI

Network-Packet-Sniffer-Traffic-Analyse-GUI

Open source MIT Python
12
Stars
0
Forks
0
Issues
2
Watchers
3 months
Last Commit

About Network-Packet-Sniffer-Traffic-Analyse-GUI

Captures & Analyses live network traffic in real time to detect suspicious activities using rule-based, MITRE-mapped, and machine-learning techniques.

Platforms

Web Self-hosted

Languages

Python

Links

πŸ•΅οΈβ€β™‚οΈ Network Packet Sniffer Traffic Analyzer

Captures & Analyses live network traffic in real time to detect suspicious activities using rule-based, MITRE-mapped, and machine-learning techniques.

πŸ“Έ Screenshots

screenshot 1

screenshot 2

screenshot 3

πŸ›‘οΈ Enterprise Network Sniffer IDS (Intrusion Detection System)

Developed by: Β© 2026 Syed Shaheer Hussain

πŸ“Œ Project Introduction

The Enterprise Network Sniffer IDS is a Python‑based enterprise‑grade network traffic monitoring and intrusion detection system. It captures live network packets, analyzes them in real time, detects suspicious or malicious behavior (such as port scanning, flooding, abnormal traffic patterns), and generates forensic‑ready PDF reports.

[!caution] This project is designed for learning, research, academic (FYP), and defensive security simulation purposes.

🎯 Mission & Vision

🎯 Mission

To provide a practical, understandable, and extensible IDS solution that helps students and security enthusiasts understand how real‑world network monitoring and intrusion detection systems work.

🌍 Vision

To evolve this system into a full enterprise SOC‑ready IDS/IPS platform with dashboards, ML‑based detection, and SIEM integration.

❓ What is a Network?

A network is a collection of devices (computers, servers, routers, switches, IoT devices) connected together to share data and resources.

Examples:

  • 🌐 Internet
  • 🏒 Office LAN
  • ☁️ Cloud infrastructure

πŸ” What is Network Sniffing?

Network sniffing is the process of:

  • Capturing network packets
  • Inspecting headers & payloads
  • Analyzing traffic behavior

Why Sniffing is Important?

  • Detect attacks
  • Troubleshoot networks
  • Monitor bandwidth
  • Forensic investigation

[!important] ⚠️ Sniffing without permission is illegal.

πŸ›‘οΈ What is an IDS?

An Intrusion Detection System (IDS) monitors network traffic and:

  • Detects malicious patterns
  • Generates alerts
  • Logs incidents
  • Produces reports

IDS Types

  1. NIDS – Network‑based IDS βœ… (This project)
  2. HIDS – Host‑based IDS

πŸ’‘ Why This Project Was Made?

βœ”οΈ To learn real‑world cybersecurity βœ”οΈ To simulate enterprise IDS behavior βœ”οΈ To understand packet‑level attacks βœ”οΈ To build a portfolio‑grade security project βœ”οΈ To prepare for SOC / Blue Team roles

πŸ—οΈ Project Architecture

[ Network Interface ]
        ↓
[ Packet Capture Engine ] (Scapy / PyShark)
        ↓
[ Detection Engine ]
        ↓
[ Event Logger ]
        ↓
[ GUI Dashboard ]
        ↓
[ PDF Report Generator ]

πŸ“‚ Folder Structure

└── network-sniffer/
    β”œβ”€β”€ IDS_Report.pdf
    β”œβ”€β”€ main.py
    β”œβ”€β”€ requirements.txt
    β”œβ”€β”€ utils/
    β”‚   β”œβ”€β”€ logger.py
    β”‚   β”œβ”€β”€ permissions.py
    β”‚   β”œβ”€β”€ theme.py
    β”‚   └── __pycache__/
    β”‚       β”œβ”€β”€ logger.cpython-314.pyc
    β”‚       └── theme.cpython-314.pyc
    β”œβ”€β”€ screenshots/
    β”‚   β”œβ”€β”€ Screenshot (57).png
    β”‚   β”œβ”€β”€ Screenshot (58).png
    β”‚   └── Screenshot (59).png
    β”œβ”€β”€ gui/
    β”‚   β”œβ”€β”€ app.py
    β”‚   β”œβ”€β”€ charts.py
    β”‚   └── __pycache__/
    β”‚       β”œβ”€β”€ app.cpython-314.pyc
    β”‚       └── charts.cpython-314.pyc
    └── core/
        β”œβ”€β”€ ids_engine.py
        β”œβ”€β”€ mitre.py
        β”œβ”€β”€ ml_detector.py
        β”œβ”€β”€ pcap_manager.py
        β”œβ”€β”€ pyshark_sniffer.py
        β”œβ”€β”€ report.py
        β”œβ”€β”€ scapy_sniffer.py
        └── __pycache__/
            β”œβ”€β”€ ids_engine.cpython-314.pyc
            β”œβ”€β”€ mitre.cpython-314.pyc
            β”œβ”€β”€ ml_detector.cpython-314.pyc
            β”œβ”€β”€ pcap_manager.cpython-314.pyc
            β”œβ”€β”€ pyshark_sniffer.cpython-314.pyc
            β”œβ”€β”€ report.cpython-314.pyc
            └── scapy_sniffer.cpython-314.pyc

🧠 Core Concepts Used

  • Packet sniffing
  • TCP/IP analysis
  • Port scan detection
  • Behavioral analysis
  • Log correlation
  • Defensive cybersecurity

βš™οΈ Technologies Used

πŸ§‘β€πŸ’» Programming Languages

  • Python 3.10+

πŸ“¦ Libraries & Tools

  • Scapy
  • PyShark (Wireshark TShark)
  • FPDF (PDF reports)
  • PyQt5 / Tkinter (GUI)
  • Logging module

πŸ–₯️ OS Support

  • Windows βœ…
  • Linux βœ…

πŸ–ΌοΈ GUI Features

βœ”οΈ Start / Stop Sniffing βœ”οΈ Live event log window βœ”οΈ IDS alerts display βœ”οΈ Generate PDF report βœ”οΈ Clean enterprise layout

⚑ Features

  1. Real‑time packet capture
  2. Port scan detection (T1046)
  3. Event logging
  4. GUI‑based control
  5. Auto PDF reporting
  6. Old reports preserved
  7. Unicode‑safe PDF generation

πŸ”§ Functions Overview

  • start_sniffing() – Begin packet capture
  • stop_sniffing() – Stop capture
  • analyze_packet() – Detect suspicious behavior
  • log_event() – Save IDS alerts
  • generate_pdf() – Create forensic report

πŸ“„ PDF Reporting System

βœ”οΈ Each report saved with timestamp βœ”οΈ No old report replaced βœ”οΈ Long lines auto wrapped βœ”οΈ Hex & raw data safe

Example Output:

IDS_Report_20260202_154001.pdf

πŸš€ Installation Guide (Step‑by‑Step)

1️⃣ Install Python

Download from: πŸ‘‰ https://www.python.org

βœ”οΈ Tick Add Python to PATH

2️⃣ Install Wireshark (Required)

Download: πŸ‘‰ https://www.wireshark.org

βœ”οΈ Ensure TShark is installed βœ”οΈ Default path:

C:\Program Files\Wireshark\tshark.exe

Or Open Command Prompt

where tshark
  • This cmd tells you the location/path of tshark
  • Make sure the wireshark folder assigned in Envoirnment Variable Path

3️⃣ Install Project Dependencies

Open CMD in project folder:

pip install -r requirements.txt

▢️ How to Run the Project

Step 1

cd network-sniffer

Step 2

python main.py

πŸ–₯️ How to Use (GUI)

1️⃣ Click Start Sniffing 2️⃣ Generate traffic (browser, ping, scan) 3️⃣ Watch alerts in GUI 4️⃣ Click Generate Report 5️⃣ PDF saved in IDS_Reports/

🌐 Chrome / Browser Usage

βœ”οΈ Open Chrome βœ”οΈ Browse any website βœ”οΈ IDS captures packets automatically

❌ No username/password required ❌ Runs locally on your machine

πŸ“Š Flow Chart

Start
 ↓
Select Interface
 ↓
Capture Packets
 ↓
Analyze Traffic
 ↓
Threat Detected?
 ↓      ↓
Yes     No
 ↓       ↓
Log Event
 ↓
Generate Report
 ↓
End

⚠️ Cautions

[!caution]

  • ❌ Do NOT use on public networks
  • ❌ Do NOT sniff without permission
  • ❌ Educational use only

πŸ“Œ Important Notes

[!important]

  • Requires admin privileges
  • Antivirus may flag sniffing
  • Heavy traffic may slow system

πŸ“š What You Will Learn

βœ”οΈ Network protocols βœ”οΈ IDS working βœ”οΈ Packet analysis βœ”οΈ Cyber defense mindset βœ”οΈ Python system design

πŸ“ˆ Market Value

This project is valuable for:

  • SOC Analyst roles
  • Blue Team jobs
  • Cybersecurity portfolios
  • FYP / Thesis

πŸš€ Future Enhancements

  • ML‑based anomaly detection
  • Web dashboard
  • SIEM integration
  • Email alerts
  • Cloud monitoring
  • IPS (auto blocking)

πŸ“œ Disclaimer

[!important] This software is provided for educational and research purposes only. The developer is not responsible for misuse.

πŸ“ Copyright

Β© 2026 Syed Shaheer Hussain All rights reserved.

⭐ Support & Engagement

If you find this repository useful or insightful, please consider:

  • ⭐ Starring the repository
  • πŸ” Sharing it within your network
  • πŸ‘€ Following my GitHub profile for future projects and updates

Your support helps drive continued innovation and open-source contributions.

β€” Syed Shaheer Hussain

GitHub followers

Followers

Stars

⭐ Final Note

[!note] This project demonstrates real enterprise cybersecurity concepts in a simple, understandable, and extensible way. It is ideal for students, researchers, and security enthusiasts.

πŸ›‘οΈ Learn. Detect. Defend.