Skip to content

Latest commit

Β 

History

History
48 lines (34 loc) Β· 1.52 KB

File metadata and controls

48 lines (34 loc) Β· 1.52 KB

πŸ‘» NetSpectre

Python License Platform

Network Packet Sniffer & Analyzer β€” Capture and analyze network traffic using raw sockets. Zero dependencies.

πŸ”₯ Features

  • πŸ“‘ Raw Socket Capture β€” Direct packet capture without libpcap
  • πŸ” Protocol Parsing β€” Ethernet, IPv4, TCP, UDP, ICMP, ARP
  • 🎨 Color-coded Live Output β€” Real-time packet display with protocol highlighting
  • 🎯 Flexible Filtering β€” By protocol, port, or IP address
  • πŸ“Š Statistics Dashboard β€” Protocol distribution, unique IPs, traffic volume
  • 🏴 TCP Flag Analysis β€” SYN, ACK, FIN, RST, PSH, URG detection
  • πŸ’Ύ JSON Export β€” Full packet capture export for analysis
  • 🚫 Zero Dependencies β€” Pure Python using raw sockets

πŸš€ Usage

```bash

Capture all traffic (requires root)

sudo netspectre

Specific interface, 100 packets

sudo netspectre -i eth0 -c 100

Filter by protocol

sudo netspectre -p tcp sudo netspectre -p udp sudo netspectre -p arp

Filter by port or IP

sudo netspectre --port 443 sudo netspectre --ip 192.168.1.1

Export to JSON

sudo netspectre -c 50 -o capture.json ```

⚠️ Disclaimer

For authorized network monitoring only. Unauthorized packet capture may be illegal. The author is not responsible for misuse.

πŸ“„ License

MIT β€” @redX000