Skip to main content

Image Alt text

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 .pcap files 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.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pufferrelay 1.1.2
File Size Uploaded Provenance Actions
pufferrelay-1.1.2.tar.gz 167.9 kB Without provenance Details for pufferrelay-1.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pufferrelay 1.1.2
File Interpreter ABI Platform Actions
pufferrelay-1.1.2-py3-none-any.whl Python 3 none any Details for pufferrelay-1.1.2-py3-none-any.whl

Total release size: 380.0 kB

Release files / pufferrelay-1.1.2.tar.gz

Download URL pufferrelay-1.1.2.tar.gz
Size 167.9 kB
Tags Source
SHA-256 checksum
How to use checksums
2d194e854dec531669fc35cf5f1cd1b20b9052a2f5f57181cb1d7ad505061e27
BLAKE2b-256 checksum
How to use checksums
48426a4904b60dda7b7d55c3a0c9ee3a628062e3b26fcc6ccaacc5b3462db427
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.2-py3-none-any.whl

Download URL pufferrelay-1.1.2-py3-none-any.whl
Size 212.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dce3e2c4675ba43aab027f21dfe1bd625a8e0a8de432303833eda94cfc6d89b5
BLAKE2b-256 checksum
How to use checksums
c94864f066629709300b926e41af6cc5032fd56868bc538d810e142f4c803e6c
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.2

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page