Skip to content

hnpf/sniffcli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🐾 SniffCLI the Sniffer Sentry

"If it works on my machine, it's production ready."

An extremely minimal, high-performance packet sniffer built with Go and Bubble Tea. Designed to monitor local network traffic across home lab hardware, from main rigs to aging e-waste.


Usage

sudo ./sniffcli [flags]

Flags:

  • -i <interface>: Network interface to sniff on (e.g., eth0).
  • -l: Enable logging. Saves all sniffer output to sniff_YYYY-MM-DD.log.
  • -c: Clean mode. Filters out noisy discovery and multicast traffic (ARP, MDNS, SSDP, DHCP, ff02::).
  • -f: Follow mode. Enables logging and ensures the file is flushed immediately so you can tail -f the log in another terminal.
  • -w <macs>: Watchlist. A comma-separated list of MAC addresses to watch. Traffic from these devices is highlighted in orange, and insecure traffic (HTTP/FTP/Telnet/SMTP) triggers a bright red CRITICAL alert.

Notable Features

  • Realtime monitoring / Captures IPv4, IPv6, ARP, and Ethernet layers.
  • Security alerts / Built-in detection for potential SSH brute force and unusual outbound ports.
  • Device aliasing / Map local IPs to friendly names (e.g. "Main Rig", "My iPhone").
  • Aesthetic UI / A terminal-based interface using lipgloss, with a focus on scannability and cleanliness.

Quick Start

Simply just make sure you have libpcap installed.

# Install dependencies
go mod download

# Clone the repo and cd into it
git clone https://github.com/hnpf/sniffcli && cd sniffcli

# Build the sentry
go build -o sniffcli

# Give it permissions to sniff without sudo (optional but recommended for multiple uses)
sudo setcap cap_net_raw,cap_net_admin=eip ./sniffcli

# Run it!
./sniffcli

Technical Bits

  • Concurrency / Uses a non-blocking packet source to keep the UI responsive even during traffic spikes.
  • Filtering / Ignores standard traffic (DNS, HTTPS) to surface generally unusual network behavior.

📦 Built With

LICENSE

MIT License - This software is provided "as is," without any warranty.

About

A lightweight TUI packet sniffer and network sentry built in Go. Features live protocol visualization, SSH brute-force detection, and outbound device monitoring for aesthetic security researchers.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages