Loading...
Loading...
Used for authorized reverse engineering of custom binary protocols, Protobuf/gRPC, WebSocket frames, and PCAP-driven protocol recovery.
npx skill4agent add zhaoxuya520/reverse-skill protocol-reverseNOW../field-journal/precedent-reverse.mdNOWjs-reverse/NOW../scripts/case-init.ps1authNEXT../tool-index.mdACT| Scenario | Redirect To |
|---|---|
| Only HTTP parameter signature / JS encryption | |
| Only TLS certificate issues | |
| In-depth firmware protocol stack + emulation | |
□ Obtain samples: PCAP / proxy exports / client logs / binaries
□ Mark direction: C→S / S→C; Check for handshake, heartbeat, reconnection
□ Fixed header? Magic number? Length field? TLV? Fixed-length?
□ Compressed (zlib/gzip/lz4) or encrypted (AES/ChaCha in-frame)?
□ tshark -r cap.pcap -T fields -e frame.number -e ip.src -e tcp.payload□ Align multiple similar messages to find invariant bytes / auto-increment serial numbers
□ Length field: big-endian/little-endian, includes header/excludes header
□ Verification: CRC16/32, checksum, HMAC position
□ Draw state machine: Connect → Auth → Ready → Request/Response → Close
□ Tools: Wireshark custom dissector draft / ImHex / 010 Editor template / Kaitai Struct□ Protobuf: .proto recovery (blackboxprotobuf / pbtk / protoc --decode_raw)
□ gRPC: HTTP/2 headers + protobuf body
□ Encryption: Find key derivation (client so/dll/JS) → Collaborate with ida-reverse / js-reverse / apk-reverse
□ Replay: Only within authorized scope; Test harmless fields first then sensitive operationsMUST produce:
- Message type table (name / opcode / fields)
- At least 1 reproducible decoding command or script
- Evidence: Excerpt of raw hex + decoded results (desensitized)| Tool | Required | Purpose | Bootstrap |
|---|---|---|---|
| tshark / Wireshark | Highly Recommended | PCAP parsing | Manual / winget |
| Python3 | Yes | Decoding scripts | System-provided |
| blackboxprotobuf | Optional | Unknown protobuf analysis | pip |
| ImHex / 010 | Optional | Structure templates | Manual |
| IDA / r2 / Ghidra | As Needed | Client serialization functions | See corresponding skill |
references/protocol-workflow.md../ida-reverse/../js-reverse/../firmware-pentest/../pentest-tools/MASTER-ROUTINGrouting.mdida-reversejs-reversepentest-toolsapi-securitymalware-analysisdigital-forensics