Skip to content

πŸ‘» Ghost Sniffer β€” a lightweight Python network sniffer + IDS using Scapy. Live traffic capture, PCAP analysis, anomaly detection, and host profiling in one tool.

Notifications You must be signed in to change notification settings

reztdev/ghost-sniffer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

8 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ‘» Ghost Sniffer

Ghost Sniffer is a lightweight network sniffer + IDS tool built with Scapy. It can monitor live network traffic, detect simple anomalies, and perform host profiling.


✨ Features

  • πŸ”Ž Live Sniffing: capture packets in real time from a network interface.

  • πŸ“‚ Offline Analysis: read and analyze PCAP files.

  • πŸ›‘οΈ IDS-style Detection:

    • ARP spoofing
    • Port scans
    • SYN floods
    • DNS NXDOMAIN floods
    • High packet rate
  • πŸ“Š Statistics:

    • Per-protocol packet counts
    • Top talkers (most active IPs)
    • Periodic summaries (--summary-interval)
  • 🧩 Host Profiling:

    • MAC addresses & vendors
    • DNS queries
    • TLS SNI
    • HTTP Host & User-Agent
  • πŸ’Ύ Output Options:

    • Save packets to PCAP
    • Save summaries to CSV
    • Save detailed info to JSON
  • 🎨 Output Modes:

    • --verbose β†’ detailed packet view with colored output (Scapy-like)
    • --quiet β†’ only start message + final summary
    • --stats-only β†’ only statistics
    • --no-color β†’ disable colored output (for logs)
    • --follow <IP> β†’ filter traffic for a specific IP

πŸš€ Installation

Clone the repository and install dependencies:

git clone https://github.com/username/ghost-sniffer.git
cd ghost-sniffer
pip install -r requirements.txt

Dependencies:

  • Python 3.8+
  • Scapy
  • Rich (optional, for colored output)

πŸ› οΈ Usage

Live capture

sudo python3 sniffer.py -i wlan0 -d 120 --pcap out.pcap --csv out.csv --verbose

Offline analysis

python3 sniffer.py --read capture.pcap --verbose

Quiet mode

sudo python3 sniffer.py -i eth0 -d 300 --quiet

Save JSON

sudo python3 sniffer.py -i wlan0 -d 60 --json output.json

⚠️ Disclaimer

Use Ghost Sniffer only on networks or devices that you own or have explicit permission to test. Unauthorized use may violate the law.


πŸ“œ License

MIT License Β© 2025

About

πŸ‘» Ghost Sniffer β€” a lightweight Python network sniffer + IDS using Scapy. Live traffic capture, PCAP analysis, anomaly detection, and host profiling in one tool.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages