skills/ctf/ctf-misc/SKILL.md
CTF 杂项挑战技术。当遇到编码谜题、Python/Bash 沙箱逃逸、RF/SDR 信号、游戏/VM 逆向、K8s RBAC、浮点数技巧、Z3 约束求解、博弈论等不属于 pwn/crypto/web/reverse/forensics/osint 的 CTF 挑战时使用。先排除其他分类后再使用本技能
npx skillsauth add wgpsec/AboutSecurity ctf-miscInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
以下参考资料按需加载,根据识别出的具体方向选择对应文件:
Misc 题目?
├─ 编码/解码谜题
│ ├─ Base64/Hex/ROT13 → CyberChef 自动检测
│ ├─ QR 码 → zbarimg / 碎片重组
│ ├─ 二进制/莫尔斯/BCD → [references/encodings.md](references/encodings.md)
│ └─ 多层嵌套 → 循环解码直到明文
├─ 沙箱逃逸
│ ├─ Python jail → [references/pyjails.md](references/pyjails.md)
│ │ ├─ 受限字符 → repunit分解 / chr()构造
│ │ ├─ 禁import → __builtins__.__import__
│ │ └─ 受限exec → func_globals链 / MRO遍历
│ └─ Bash jail → [references/bashjails.md](references/bashjails.md)
├─ 游戏/交互
│ ├─ WASM → 内存patch / wasm2wat 修改
│ ├─ WebSocket → 拦截修改消息
│ ├─ 博弈论 → Nim/承诺方案 → [references/games-and-vms-3.md](references/games-and-vms-3.md)
│ └─ ML/AI → 权重扰动 / 碰撞 → [references/games-and-vms-2.md](references/games-and-vms-2.md)
├─ DNS → [references/dns.md](references/dns.md)
├─ RF/SDR → [references/rf-sdr.md](references/rf-sdr.md)
└─ Linux 提权 → [references/linux-privesc.md](references/linux-privesc.md)
# 文件识别
file mystery && xxd mystery | head
binwalk -e mystery
# 编码检测
echo "data" | base64 -d
python3 -c "import base64; print(base64.b85decode(b'...'))"
# Z3 约束求解
python3 -c "
from z3 import *
x = BitVec('x', 32)
s = Solver()
s.add(x * 0x1337 == 0xdeadbeef)
s.check(); print(s.model())
"
| 技术 | 场景 |
|------|------|
| __builtins__.__import__ | import 被禁 |
| ().__class__.__bases__[0].__subclasses__() | 获取所有子类 |
| chr() + eval() 构造 | 字符被限制 |
| breakpoint() → os.system() | Python 3.7+ |
| 编码 | 特征 |
|------|------|
| Base64 | A-Za-z0-9+/= 结尾 |
| Base32 | A-Z2-7= 大写 |
| Hex | 0-9a-f 偶数长度 |
| URL编码 | %XX 形式 |
| Unicode隐写 | 零宽字符 U+200B/U+200C |
testing
Azure 云环境渗透测试总体方法论。当目标使用 Azure/Microsoft 365/Entra ID、发现 Azure 相关资产(Blob Storage/App Service/Azure VM/Azure Functions)、获取 Azure 凭据(Service Principal/Managed Identity/Access Token)、或需要对 Azure 环境进行安全评估时使用。提供从未授权枚举到 Entra ID 攻击、服务提权、Cloud-to-OnPrem 横向移动的全流程决策树。覆盖 35+ Azure 服务攻击面
tools
Mythic C2 操作方法论。当需要部署 Mythic、选择 Mythic Agent、安装 C2 Profile、配置 HTTP/DNS/WebSocket/SMB/TCP 通信、生成 payload、管理回连任务,或把 Mythic 作为跨平台 C2 框架用于授权红队演练时使用。覆盖 mythic-cli 安装、Agent/Profile 选择、SSL 证书配置、payload 构建和基础 OPSEC 判断
development
Docker 安全测试与容器渗透方法论。当需要评估 Docker 容器、Docker Daemon、Docker Registry、镜像层、构建产物或容器逃逸风险时使用。覆盖容器环境识别、特权容器逃逸、docker.sock/Remote API 利用、procfs/cgroup/capabilities 滥用、Docker 用户组提权、运行时/内核 CVE、Registry 枚举、镜像层 Secret 分析和构建上下文泄露。发现 Docker 容器环境、Registry 暴露、镜像凭据或容器配置错误时应使用此技能
development
使用 PadBuster 进行 Padding Oracle 攻击。当发现 Web 应用使用 CBC 模式加密且存在 Padding Oracle 漏洞时使用。PadBuster 可自动解密密文和伪造任意明文对应的合法密文,适用于加密 Cookie/Token/URL 参数。任何涉及 Padding Oracle 攻击、CBC 密文解密、Cookie 伪造的场景都应使用此技能