Skip to content

hgxszhj/https-github.com-zhaoxuya520-reverse-skill / skills/protocol-reverse

protocol-reverse

Unverified

Use for authorized reverse engineering of custom binary protocols, Protobuf/gRPC, WebSocket frames, and PCAP-driven protocol recovery.

FileKindSize
SKILL.mdskill md3.5 KB
references/protocol-workflow.mdmarkdown807 B

references/protocol-workflow.md

View on GitHub
# Protocol reverse 速查

> 适用:`protocol-reverse` skill · 2026-07-18

## 常见布局模式

| 模式 | 特征 | 提示 |
|------|------|------|
| 定长头+体 | 前 2/4 字节长度 | 注意是否包含头长 |
| 魔数 | 固定 `0xDEAD` 等 | 便于流再同步 |
| TLV | type-length-value 重复 | type 枚举即消息字典 |
| Protobuf | 字段号 varint | `protoc --decode_raw` |
| 加密帧 | 熵高、无明文 URL | 先找 nonce/IV 邻域 |

## 最小 Python 骨架

```python
import struct
def parse_frame(buf: bytes):
    magic, length, msg_type = struct.unpack_from(">IHI", buf, 0)
    body = buf[10:10+length]
    return {"magic": magic, "type": msg_type, "body": body}
```

## PCAP 提取 TCP payload

```bash
tshark -r cap.pcap -Y "tcp.port==4433" -T fields -e tcp.payload | head
```
slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack."Stars: 196kUpdated Claude CodeCodexVerifiedInstall
ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read.Stars: 192kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 192kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt.Stars: 192kUpdated Claude CodeCodexVerifiedInstall