PufferRelay
PufferRelay is a pentesting tool designed to extract valuable information from .pcap (Wireshark) files.
It focuses on parsing and analyzing network traffic to surface sensitive or actionable data that may aid in offensive security operations.
🔍 Features
- Extracts protocol-specific data
- LDAP, HTTP, FTP, TELNET, SMTP, IMAP, POP3, NETBIOS, NTLM, SNMP
- Parses
.pcapfiles and stores data in a queryable SQL format - Designed for use in red teaming and network traffic analysis
- Modular structure for easy extension
🚀 Getting Started
🛠️ Install
⚗️PIPX
sudo apt install tshark
pipx install pufferrelay
👨🏿🔧PIP
python3 -m venv venv
source venv/bin/activate.fish
pip3 install -r requirements.txt
▶️ Usage
⚗️PIPX
pufferrelay {flag} {filename}
👨🏿🔧PIP
python3 -m PufferRelay {flag} {filename}
Parse pcap file into sqlite3 database and display all pertinent information
pufferrelay -f {filename}
Read 'DB_NAME' database and extract all pertinent information
pufferrelay -r
🐛 DEBUG
pufferrelay -f {filename} --log-level DEBUG
⚡ QUICKWIN
pufferrelay -q {filename}
Parse only what you need (faster on big captures)
pufferrelay -f {filename} --only ftp,http,ntlm
pufferrelay -f {filename} --credentials-only
Write the export pack + the AI-agent lead briefing
pufferrelay -f {filename} --dump out
pufferrelay -q {filename} --dump out
pufferrelay -r --dump out
The pack contains ips.txt, subnets.txt, users.txt, hosts.tsv,
nmap-targets.txt, nmap-command.txt, credentials.csv, ntlm-hashes.txt,
kerberoast-hashes.txt, dns.txt, asrepcatcher.txt, tokens.tsv,
coercions.tsv, adcs.tsv, ipv6.tsv, db-creds.tsv, sccm.tsv, llm.tsv,
kerberos-signals.tsv, ldap-spns.tsv, ldap-signing.tsv, ldap-adcs.tsv,
voip.tsv, media.tsv, rdp.tsv, cloud-apis.tsv, fingerprints.tsv,
credential-matrix.tsv, identity-graph.json, summary.json, and the agent feed: leads.json + leads.md (every lead with
its evidence, suggested next actions, and explicit warnings for anything that
sends traffic). See docs/OUTPUTS.md and
docs/PLAN.md.
Config file (optional)
pufferrelay --config config.json -f {filename}
config.json: db_path, output_dir, default_pcap, log_level
--dump without a directory uses output_dir; default_pcap is used when
-f/-q is omitted.
Auto profile, scale, report and diff
pufferrelay -f capture.pcapng --auto --dump out # only relevant handlers
pufferrelay -f capture.pcapng --auto --jobs 4 # parallel passes
pufferrelay -f big.pcapng --chunk-packets 200000 # chunked, resumable
pufferrelay -f capture.pcapng --report out/report.html # Markdown or HTML
pufferrelay -r --diff old.db # new hosts/users/leads
pufferrelay -f capture.pcapng --report out/report.md # confidential deliverable
pufferrelay -r --triage --triage-model llama3 # loopback Ollama only
pufferrelay --detections # detection catalog
--triage refuses non-loopback URLs and sends only lead metadata, never
credentials, hashes, commands or packet data.
Query the database
pufferrelay -r --json
pufferrelay -r --creds
pufferrelay -r --inventory
pufferrelay -r --protocol ftp,ntlm
pufferrelay -r --ip 10.0.0.5
pufferrelay -r --user alice --has-creds
pufferrelay -r --table dns_events --limit 100
Active modes (opt-in — these send packets)
Every active mode prints a red warning and requires you to type authorized
(or pass --confirm-authorized when you already have written scope).
# Live capture, analysed like a pcap, temp file deleted afterwards
pufferrelay --live eth0 --bpf "port 445" --duration 120
# Local TCP relay to one target, both directions recorded as JSONL
pufferrelay --proxy --proxy-target 10.0.0.10:445 --duration 60
# Text-only generators (nothing is executed)
pufferrelay -f capture.pcap --commands --serveme --dump out
--commands writes active-commands.md (ARP spoof / relay commands with
cleanup); --serveme writes serveme.md (next-step command per host and
finding). --keep-live-capture keeps the temporary live capture.
Documentation
Documentation lives in wiki/ (source for the GitBook: install, features, protocols, outputs, performance, privacy, FAQ).
🤝 Contributing
We welcome contributions from the community! See CONTRIBUTING.md for guidelines.
📄 License
Licensed under the GPL-3.0 License.
See the NOTICE file for attribution details.
Metadata
Release files for pufferrelay 1.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pufferrelay-1.1.1.tar.gz | 159.6 kB | Without provenance | Details for pufferrelay-1.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pufferrelay-1.1.1-py3-none-any.whl | Python 3 | none | any | Details for pufferrelay-1.1.1-py3-none-any.whl |
Total release size: 363.1 kB
Release files / pufferrelay-1.1.1.tar.gz
| Download URL | pufferrelay-1.1.1.tar.gz |
|---|---|
| Size | 159.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7dddcef4695db758fcbc25d12cd984e6d959979033edeace5b4936faaac04010
|
|
BLAKE2b-256 checksum How to use checksums |
ff5c66df75ca8ec1f77902092c840d5da81a7db46727e8206794fd36c65fef44
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.1
|
Release files / pufferrelay-1.1.1-py3-none-any.whl
| Download URL | pufferrelay-1.1.1-py3-none-any.whl |
|---|---|
| Size | 203.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a7104dbc421361b81c6d23fb91c7718850d2766f05ed10edda7e609f057179f8
|
|
BLAKE2b-256 checksum How to use checksums |
9da56c609d7ff215cedd19c7346af666975058f6e42db485664038d005e8a78f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.1
|
Security for pufferrelay 1.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.