ctf-misc

A practical knowledge base for miscellaneous Capture the Flag (CTF) challenges, which may involve escaping restricted environments, decoding layered data, hiding information in files, or reversing custom games and virtual machines.

In plain words
What is it for?
It is for Python and Bash jail challenges, layered encoding, QR codes, audio and image files, game or WebAssembly analysis, CTF platform APIs, and Linux privilege escalation.
Why use it?
It helps identify the likely puzzle type and choose a relevant solving approach when the challenge does not fit a standard category.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/fb0sh/pentester/ctf-misc
Any agent
npx skills add fb0sh/pentester --skill ctf-misc
Clone the repo
git clone --depth 1 https://github.com/fb0sh/pentester

Made for: Claude Code, Codex.

Per session 54 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 479 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 100% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00054 $0.00479
Opus 5 $0.00027 $0.00239
Sonnet 5 $0.00011 $0.00096
Haiku 4.5 $0.00005 $0.00048

Measured 2d ago against content hash 3b31afeb9e5b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

ctf-misc scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

100% identical to ctf-misc — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.agents/skills/third-party/ctf-misc/SKILL.md · 32 lines

What it actually says

CTF 杂项知识库

针对 CTF Misc 题目的实战知识库,覆盖沙箱逃逸、编码链识别、隐写术、游戏逆向等杂项题型。

场景路由

场景 参考文档 核心内容
Python 沙箱逃逸 python-jail-escape.md __import__/func_globals/eval链
Bash 沙箱逃逸 bash-jail-escape.md HISTFILE/ctypes.sh/vi编辑器逃逸
编码链识别与解码 encoding-chain-reference.md Base64→Hex→ROT13 多层嵌套
游戏/自定义 VM 逆向 game-and-vm-reverse.md WASM/Brainfuck/Z3 约束求解
CTFd 平台操作 ctfd-platform-guide.md API 下载附件/提交 flag
Linux 提权 linux-privesc-quick.md SUID/sudo/cron/内核漏洞

快速判题

题目特征 可能考点 推荐参考
Python exec/eval 输入框 PyJail 逃逸 python-jail-escape.md
命令行 restricted bash BashJail 逃逸 bash-jail-escape.md
奇怪编码字符串 编码链解码 encoding-chain-reference.md
二维码/音频文件 隐写术 encoding-chain-reference.md
游戏二进制/WASM 自定义 VM 逆向 game-and-vm-reverse.md
CTFtime / CTFd 平台 平台 API ctfd-platform-guide.md
给了一个 shell Linux 提权 linux-privesc-quick.md
Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 32 lines · 54 tokens per session scan A 3b31afeb9e5b

Subscribe to this mod's changes

ctf-misc is a skill published in the GitHub repository fb0sh/pentester (23 stars, last pushed 1mo ago), licensed MIT. It adds 54 tokens to every session and 479 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to ctf-misc, differing in 0 lines, and is treated as a copy.

Related

Other skills, from other repositories

transilience-report-style

Threat Intelligence Report Design System — ReportLab-based PDF generation for A4 reports with Transilience branding, typography, and layout standards.

transilienceai/communitytools · 31 tokens

firewall-review

Evidence-safe firewall ruleset audit reference specification — 22 documented detector patterns (17 vendor-agnostic plus 5 FortiGate-specific), a 15-check semantic catalogue, CIS Fortinet FortiGate Benchmark guidance, a custom customer-policy benchmark, and consolidated network-team Excel profiles including grouped…

transilienceai/communitytools · 100 tokens

pentest-engagement

Run a professional penetration engagement OR a network vulnerability scan from a scope. WEB mode (apex domains / app URLs) — mandatory surface expansion, systematic OWASP attack-class coverage, reversible active exploitation, authoritative validation, Transilience PDF. NETWORK mode (a list of IPs/CIDRs, e.g. 1500…

transilienceai/communitytools · 140 tokens

attack-path-stitcher

Stitches confirmed single-asset findings into multi-hop attack paths across the organization. Builds a graph where nodes are assets and edges are confirmed exploit hops citing the findings that enable them.

transilienceai/communitytools · 42 tokens

coordination

Pentest coordination — orchestrates executor and validator agents with context-controlled spawning. Entry point for all engagements.

transilienceai/communitytools · 24 tokens

hackerone

HackerOne bug bounty automation - parses scope CSVs, deploys parallel pentesting agents per asset, validates PoCs, and generates platform-ready submission reports.

transilienceai/communitytools · 36 tokens