CTF Pwn Binary Exploitation Quick Reference
Paste the following prompt into your AI chat to install this skill:
Install @user_257ad2a8/ctf-pwn into your AI assistant according to https://skillhub.cn/install/skillhub.md.
About this skill
Problem
CTF pwn challenges are often not about finding one textbook bug, but about choosing the right exploit path given binary behavior, runtime state, protections, and input filters. ctf-pwn organizes stack overflow, ROP, heap, format-string, kernel, and sandbox-escape techniques as a quick reference for engineers who have already identified the vulnerable primitive.
How It Works
- Protection triage: uses PIE, RELRO, NX, and canary status to decide whether direct GOT overwrites are possible, ROP is required, canary leak is needed, or heap-based routes are safer.
- Stack exploitation: covers offset discovery,
ret2win,ret2libc,ret2csu, stack pivots,rdxcontrol, bad-character bypasses, and obscure x86 gadgets. - ROP and shellcode: includes
puts@PLT/puts@GOTlibc leaks, stagedsystem/execve, raw syscalls, small-buffer stubs, XOR-based filtering bypasses, and nonstandard write gadgets. - Heap and advanced primitives: covers fastbin, tcache, UAF, unlink, custom allocators, House of Einherjar/Orange, seccomp bypasses, SROP,
.fini_arrayhijack, and ret2dlresolve. - Format string, sandbox, and kernel: includes format-string leaks, GOT overwrites, hook-based writes, encoding bypasses, restricted-shell escapes, VM/FUSE/CUSE tricks, and kernel paths such as
modprobe_path,core_pattern, kROP, and KASLR/KPTI/SMEP/SMAP bypasses.
Boundaries
It assumes the binary behavior, vulnerability site, and service type are already understood. If the target is mainly a restricted shell, encoding puzzle, web endpoint, crypto primitive, or requires deep reverse engineering first, use the corresponding CTF track instead. Many techniques depend on libc/glibc version, architecture, kernel version, seccomp policy, or challenge-specific constraints, and race/UAF/kernel exploits may be environment-sensitive.
Use Cases
- Choose GOT or ROP after reading protections.
- Build ret2libc, ret2csu, pivot, bad-char chains.
- Pick heap menu, UAF, tcache, House of Einherjar.
- Assess format-string, shell, VM, FUSE escape.
Best For
- CTF pwn players: choose exploit chain after confirming a bug.
- Security interns: learn stack, heap, ROP, kernel basics.
- Red-team engineers: reproduce binary flaws in authorized labs.
- Reversers: identify exploit primitives after analysis.
Related Skills
Analyzes network captures from Wireshark, tcpdump, Fiddler, and Charles, then pinpoints TCP, HTTP, DNS, and TLS issues with filter expressions and remediation steps.
Detects AI-generated images from Stable Diffusion, Midjourney, and GPT-4o via Tencent Cloud image moderation and returns risk scores.
A log analysis tool combining deterministic rules and AI reasoning, with error severity levels, keyword filtering, real-time monitoring, webhook alerts, batch directory analysis, and path, SSRF, and XSS protections.
A WCAG 2.2 accessibility audit and remediation guide covering scans, manual checks, issue mapping, and retesting records.