traffic-analysis-pcap

Analyzes network packet captures using Wireshark filters, tshark commands, and protocol forensics techniques.

Updated Jun 5, 2026
One-click install
npx skills add https://github.com/lNwNl/Praxis --skill traffic-analysis-pcap-lnwnl
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: traffic-analysis-pcap
Source: https://github.com/lNwNl/Praxis/tree/main/skills/_disabled/traffic-analysis-pcap
Command: npx skills add https://github.com/lNwNl/Praxis --skill traffic-analysis-pcap-lnwnl

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Analyzing PCAP files for CTF challenges or security investigations requires knowing dozens of Wireshark display filters, tshark commands, and protocol-specific extraction techniques that are easy to forget or miss entirely. ## Core Features & Use Cases - Protocol-Specific Analysis: Covers HTTP, HTTPS/TLS decryption, DNS tunneling detection, FTP credential extraction, SMTP email parsing, USB HID keyboard decoding, WiFi WPA handshake capture, and ICMP exfiltration detection. - Data Extraction Workflows: File carving from TCP streams, credential harvesting from plaintext protocols, covert channel detection, and NetworkMiner automated analysis. - PCAP Repair & CLI Analysis: Repair corrupted captures with pcapfix, convert pcapng formats, and run tshark one-liners for statistics, conversations, and object export. - Use Case: Given a CTF challenge PCAP containing USB keyboard traffic, use the HID decode workflow to extract keystrokes with tshark and convert keycodes into the typed flag. ## Quick Start Analyze the attached capture.pcap file and extract any credentials, transferred files, and hidden data from the network traffic.

Frequently Asked Questions about traffic-analysis-pcap

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I extract files from a PCAP capture?▼

Use Wireshark's File → Export Objects feature for HTTP, SMB, TFTP, or email attachments, or run tshark with --export-objects http,/tmp/exported/. For raw streams, follow the TCP stream, save as raw, then carve files with binwalk or foremost.

How to detect DNS tunneling in Wireshark?▼

Look for unusually long subdomain names over 50 characters, high volumes of TXT record queries, and base32/base64-like strings in query names. Use filters like dns.qry.name.len > 50 and dns.qry.type == 16 to isolate suspicious traffic.

Can Wireshark decrypt HTTPS traffic in a PCAP?▼

Yes, using the SSLKEYLOGFILE method with pre-master secrets captured from the browser, or the server's RSA private key for RSA key exchange sessions. Configure the key log file under Preferences → Protocols → TLS.

How do I decode USB keyboard captures from PCAP?▼

Filter USB interrupt transfers with usb.transfer_type == 0x01, then extract 8-byte HID data using tshark -Y "usb.capdata && usb.data_len == 8" -T fields -e usb.capdata. Map byte 2 keycodes (0x04=a through 0x1d=z) to characters with a HID decoder.

Why won't my PCAP file open in Wireshark?▼

The capture may be corrupted or in pcapng format. Check magic bytes with xxd (d4c3b2a1 for pcap LE, 0a0d0d0a for pcapng), repair with pcapfix, or convert pcapng to pcap using editcap -F pcap.

What are the limitations of tshark for PCAP analysis?▼

tshark excels at scripted field extraction and statistics but lacks interactive stream following and visual protocol trees. Complex TLS decryption and USB HID decoding still require external tools like hashcat or custom keycode mapping scripts.