main
PCAP Decode
A comprehensive network packet analysis tool that reassembles TCP streams, extracts credentials, and decodes traffic from pcap captures in a single command.
Features
- TCP Stream Reassembly - Reconstructs complete conversations from fragmented packets
- Credential Extraction - Automatically finds plaintext passwords and auth tokens in HTTP Basic Auth headers, login forms, FTP, and Telnet sessions
- DNS Lookup Decoding - Shows all domain name resolutions
- TLS SNI Detection - Identifies destination hostnames from HTTPS handshakes (even though the session itself is encrypted)
- File Extraction - Pulls images to
extracted_files/images/and other transferred files toextracted_files/files/ - Conversation Summary - Provides a high-level flow summary of network activity
Limitations
TLS encrypts payload data, so only the SNI hostname is recoverable from HTTPS sessions — never request/response contents, credentials, or files within encrypted traffic.
Installation
python -m pip install scapy
Usage
Run everything in one command:
python pcap_decode.py capture.pcap
Customize the output directory:
python pcap_decode.py capture.pcap --extract-dir out
Get a raw per-packet dump instead of the full analysis:
python pcap_decode.py capture.pcap --raw
Filter and limit raw output:
python pcap_decode.py capture.pcap --raw --filter http --limit 50
Example Output
The tool produces a structured report with sections for:
- Credentials found (prioritized at the top)
- DNS lookups
- TLS SNI hostnames
- TCP stream conversations
- Extracted files listing
Description
PCAP packet analysis tool with credential extraction and stream reassembly
37 KiB
0 Stars
1 Watchers
0 Forks
Languages
Python
100%