🐀 A clean, human-readable CLI packet analyzer for .pcap files
Project description
packrat 🐀
Packrat is an open source command-line packet analyzer that takes the pain out of reading raw .pcap files. Packrat gives you a clean, colorized summary of IP conversations, protocol breakdowns, and traffic detection.
After using tshark I just wanted something simpler. Something I could run and immediately understand what's happening in a capture without digging through documentation for flags.
If you are using this tool and have any suggestions, feel free to open an issue or reach out!
install
pip install packrat-cli
usage
# basic analysis
packrat capture.pcap
# filter by IP or protocol
packrat capture.pcap --filter 192.168.1.5
packrat capture.pcap --filter DNS
# export results
packrat capture.pcap --export json
packrat capture.pcap --export html
packrat capture.pcap --export txt
# skip DNS resolution (faster)
packrat capture.pcap --nd
# check version
packrat --version
Screenshot
features
- Protocol breakdown — TCP, UDP, DNS, HTTP, HTTPS, SSH, FTP, SMTP, IMAP, ARP
- Top IP addresses with hostname resolution and color coding
- DNS query analysis with top domains
- TLS/HTTPS handshake detection
- Anomaly detection — port scans, ARP floods, DNS tunneling, FTP plaintext
- Export to JSON, HTML, or TXT
changelog
v1.1.0 (most recent)
- Added threat detection engine with rules for SYN flood, ICMP flood, UDP flood, port scan, and ARP scan
- Refactored codebase into layered architecture (core API, CLI, detection)
v1.0.2
- Initial release
NOTE
Packrat reports HTTP at the packet level, not the transaction level. What this means is that since there is no TCP reassembly, A single HTTP request/response may span multiple packets. This can lead to a higher number of packets according to Wireshark or other Networking tools.
That being said, use Packrat for convenience not pin point accuracy.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file packrat_cli-1.1.3.tar.gz.
File metadata
- Download URL: packrat_cli-1.1.3.tar.gz
- Upload date:
- Size: 10.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d3bcc5a9b6c41c587eae1ababa875ee463636911db47d99f48dd39240c554968
|
|
| MD5 |
3a75b77cea5329eebabfa644a1da10e2
|
|
| BLAKE2b-256 |
78632ad88304d4c401f770bf48aea2dc7a8d45c9a0c6f1a751f50dff6828c785
|
File details
Details for the file packrat_cli-1.1.3-py3-none-any.whl.
File metadata
- Download URL: packrat_cli-1.1.3-py3-none-any.whl
- Upload date:
- Size: 11.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a97c67cd8cb9cc44d95fbb0fcfa76e8b0e1a88cb5e96d83c3b0109eb5f3a99c2
|
|
| MD5 |
f7387337526c96cd80f69be70dbef1b2
|
|
| BLAKE2b-256 |
18ccd748d74e67ecc2304c4883d1eb563fe48f2fd0f1aca45fbc03ad790c0b54
|