Chapter 6: Reverse .pcap -> Scrub Secrets -> Rebuild .pcap
Reverse binary captures into .frasm text, redact private subnets & internal hostnames, and rebuild valid .pcap files for vendor support.
Vendor TAC asks for your failing login .pcap, except it exposes 10.99.4.x and "payroll.secret-corp.internal" inside DNS and TLS SNI — scrub both before uploading.
What You'll Pull Off Here
- Reverse
.pcap/.pcapngbytes into readable.frasm(host1,host2, ...) locally in the browser or viaframeassembly reverse. - Replace private IPs once in
hostso every packet header and transport checksum updates automatically. - Redact Layer 7 strings (
qname,sni,hosthdr) without corrupting IP total lengths or TCPseqcounters.
Lab 6: Scrub 10.99.4.x & "payroll.secret-corp.internal"
Replace every 10.99.4.x host IP (198.51.100.21, 198.51.100.53, and 198.51.100.80) and replace "payroll.secret-corp.internal" with "app.example.test".
- 1.Change
host1,host2, andhost3from10.99.4.xto198.51.100.21,198.51.100.53, and198.51.100.80. - 2.Replace
"payroll.secret-corp.internal"on both DNS lines and the TLSsniline with"app.example.test". - 3.Click Check Exercise to verify your TAC-safe
.pcap.
1. Why .pcap -> .frasm -> .pcap Beats tcprewrite
Hex-editing a .pcap breaks IP lengths and TCP checksums the instant "payroll.secret-corp.internal" shortens to "app.example.test". Meanwhile tcprewrite swaps outer Layer 3 IPs while leaving internal domain names sitting in plaintext inside DNS queries and TLS SNI.
Running frameassembly reverse incident.pcap clean.frasm (or clicking "Reverse Sample .pcap" in the sandbox) converts the capture into readable host1, host2, ... lines. Find-and-replace sensitive values, rebuild, and attach a clean .pcap to your ticket.
- Zero cloud uploads: reversing and rebuilding run locally inside WebAssembly in your browser tab.
- Custom binary payloads survive round-trips intact via
hexpayload "...".
Word-by-Word Syntax BreakdownThe 3-step .pcap -> .frasm -> .pcap scrubbing workflow:
.pcap -> .frasm -> .pcap scrubbing workflow:frameassembly reverse customer_trace.pcap sanitized.frasmreverse customer_trace.pcap1. ReverseReads .pcap / .pcapng bytes and emits host1, host2, ...sanitized.frasm2. Find & ReplaceSwap private IPs, MACs, VLANs, and internal hostnames in any editorframeassembly sanitized.frasm3. RebuildBuilds sanitized.pcap with fresh lengths, seq offsets, and checksumsreverse right in your browser:dns || tls