competition-custom-protocol-replay — скилл для Claude Code
Скилл competition-custom-protocol-replay для Claude Code восстанавливает бинарные и текстовые протоколы и воспроизводит состояние сессии в CTF. Запускается при разборе кастомных кадров, контрольных сумм и порядка пакетов.
MIT 109 установок ★ 45 047 обновлён 2026-09-22
npx skills add zhaoxuya520/reverse-skill --skill competition-custom-protocol-replay -a claude-codeЧто делает competition-custom-protocol-replay
Скилл восстанавливает структуру нестандартных сетевых протоколов и воспроизводит сессию до ветки, принимаемой сервером. Внутри заложен алгоритм анализа: сопоставление ролей участников, выделение фаз рукопожатия и команд, вычисление контрольных сумм, счётчиков и границ полей, а затем сборка короткого набора пакетов для проверки.
Инструмент работает как дочерний модуль после $ctf-sandbox-orchestrator и требует предварительно заданных предположений песочницы. Базовые ответы формируются на упрощённом китайском языке, если отдельно не запрошен английский. Для сверки этапов скилл обращается к чек-листу references/custom-protocol-replay.md.
Какие задачи решает
- разобрать структуру кадров и разделители кастомного протокола
- рассчитать контрольные суммы и счётчики сообщений
- воспроизвести минимальную цепочку пакетов для успешной сессии
- зафиксировать переходы конечного автомата сетевого обмена
Примеры запросов агенту
- Помоги разобрать структуру кадров и контрольную сумму из дампа сессии
- Собери минимальную цепочку пакетов для успешного ответа сервера
- Восстанови фазы рукопожатия кастомного бинарного протокола
Как установить competition-custom-protocol-replay
1Через Skills CLI (Vercel)
npx skills add zhaoxuya520/reverse-skill --skill competition-custom-protocol-replay -a claude-code2Вручную: положить файлы
~/.claude/skills/competition-custom-protocol-replay/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/competition-custom-protocol-replay/
1Через Skills CLI (Vercel)
npx skills add zhaoxuya520/reverse-skill --skill competition-custom-protocol-replay -a codex2Вручную: положить файлы
.agents/skills/competition-custom-protocol-replay/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add zhaoxuya520/reverse-skill --skill competition-custom-protocol-replay -a cursor2Вручную: положить файлы
.cursor/skills/competition-custom-protocol-replay/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install zhaoxuya520/reverse-skill CTF-Sandbox-Orchestrator/competition-custom-protocol-replay/SKILL.md2Вручную: положить файлы
.github/skills/competition-custom-protocol-replay/SKILL.md1Через Skills CLI (Vercel)
npx skills add zhaoxuya520/reverse-skill --skill competition-custom-protocol-replay -a gemini-cli2Командой платформы
gemini skills install https://github.com/zhaoxuya520/reverse-skill --path CTF-Sandbox-Orchestrator/competition-custom-protocol-replayВручную: положить файлы
.devin/skills/competition-custom-protocol-replay/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add zhaoxuya520/reverse-skill --skill competition-custom-protocol-replay -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о competition-custom-protocol-replay
Как установить competition-custom-protocol-replay в Claude Code?
Выполните команду npx skills add zhaoxuya520/reverse-skill --skill competition-custom-protocol-replay -a claude-code.
Что делает competition-custom-protocol-replay?
Скилл восстанавливает закрытые бинарные или текстовые протоколы, определяет фазы обмена данными и формирует минимальный набор запросов для ветки подтверждения.
Что нужно для работы competition-custom-protocol-replay?
Нужен предварительный запуск $ctf-sandbox-orchestrator, который фиксирует окружение песочницы и передаёт управление скиллу.
Исходный текст
SKILL.md · MIT
--- name: competition-custom-protocol-replay description: 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 session, or prove the smallest message order that reaches an accepted branch. Use only after `$ctf-sandbox-orchestrator` has already established sandbox assumptions and routed here. --- # 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
© zhaoxuya520 · MIT · zhaoxuya520/reverse-skill