Skip to content
Skillpedia
Misc42k · #4712

competition-custom-protocol-replay

Lets your agent understand and reproduce unknown communication protocols. It can decode data, reconstruct connection steps, and simulate conversations between systems.

What it does

This tool helps understand and recreate unknown communication protocols, like deciphering a secret conversation between computers. It focuses on ensuring messages are sent in the correct order and with the right information so the other computer understands them.

When to use it

  • ✓When you have a communication log (like a data 'recording') and need to figure out how it works.
  • ✓If you need to send messages to a system in an exact way, as if you were a real program.
  • ✓To recreate a specific sequence of commands that worked before.

Example of what to ask your AI

“Help me understand and reproduce this unknown network communication.”

Want more? Open the sections below.

How to use

The easiest way: copy the message below and paste it into Claude, ChatGPT, Cursor or any AI. It reads the skill and follows the instructions.

Skill link

https://github.com/zhaoxuya520/reverse-skill/blob/main/CTF-Sandbox-Orchestrator/competition-custom-protocol-replay/SKILL.md

Ready-to-paste message

Use this skill to help me: https://github.com/zhaoxuya520/reverse-skill/blob/main/CTF-Sandbox-Orchestrator/competition-custom-protocol-replay/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
How it works

It analyzes the messages exchanged, identifies how they are structured (the 'format'), checks if they are correct (like 'checksums'), and tries to recreate the exact sequence so it works.

Installation

Easiest way: copy the skill link and paste it into Claude, ChatGPT or Cursor asking it to follow the instructions.

In the terminal (Claude Code, Codex, Cursor), in your project folder:

npx skills add zhaoxuya520/reverse-skill --skill competition-custom-protocol-replay

Or download just the file:

curl -L https://raw.githubusercontent.com/zhaoxuya520/reverse-skill/main/CTF-Sandbox-Orchestrator/competition-custom-protocol-replay/SKILL.md -o SKILL.md
Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

Competition Custom Protocol Replay

Use this skill only as a downstream specialization after $ctf-sandbox-orchestrator is already active and has established sandbox assumptions, node ownership, and evidence priorities. If that has not happened yet, return to $ctf-sandbox-orchestrator first.

Use this skill when the hard part is not merely naming the protocol, but reproducing the exact message order and state needed for acceptance.

Reply in Simplified Chinese unless the user explicitly requests English.

Quick Start

  1. Identify client and server roles, session boundaries, and reset conditions before decoding field semantics.
  2. Recover framing, lengths, delimiters, sequence numbers, checksums, nonces, and state transitions before broad replay attempts.
  3. Keep one canonical transcript of a successful exchange.
  4. Change one field or one message at a time while replaying.
  5. Reproduce the smallest accepted conversation that proves the decisive branch.

Workflow

1. Map The Session State Machine

  • Identify handshake, negotiation, authentication, keepalive, command, and teardown phases.
  • Record which fields are static, which are derived, and which depend on prior messages.
  • Keep message order, direction, and timing tied to the same session identity.

2. Recover Framing And Integrity

  • Reconstruct lengths, delimiters, type bytes, checksums, MACs, counters, compression, or encryption boundaries.
  • Distinguish transport framing from application-level framing.
  • Note exactly where server acceptance changes when one field or step is mutated.

3. Build The Minimal Replay Harness

  • Reduce the path to the smallest transcript that reaches the accepted state, parser branch, command effect, or artifact.
  • Preserve both the original captured sequence and the replayed minimal sequence.
  • If the problem is mainly generic PCAP or stream decoding with no stateful replay requirement, switch back to the broader PCAP skill.

Read This Reference

  • Load references/custom-protocol-replay.md for the state-machine checklist, transcript checklist, and evidence packaging.

What To Preserve

  • Canonical transcript, message types, field boundaries, checksums, counters, and session identifiers
  • Original capture slices and the replay harness inputs that produce acceptance
  • The exact mutation that flips the protocol from rejected to accepted, or vice versa
FAQ

What is a 'protocol'?

It's a set of rules that defines how computers or programs communicate, like a language they understand.

What does 'recreate' or 'reproduce' mean?

It means doing exactly the same thing that was done before, sending the same messages in the same order and with the same data.

Why is the order of messages important?

Many communications depend on a specific sequence. If a message arrives out of order, the system might not understand or might reject the communication.

Details

Original description by the author

Internal downstream skill for ctf-sandbox-orchestrator. CTF-sandbox workflow for custom binary or text protocol recovery, handshake reconstruction, framing, sequence control, checksums, stateful replay, and accepted-session reproduction. Use when the user asks to decode an unknown protocol, recover custom framing, build a replay harness, satisfy sequence or checksum rules, replay a captured sessio

repo: zhaoxuya520/reverse-skill

Popularity

GitHub stars
42k
Ranking position
#4712
License
MIT
Updated
9/22/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills