Format String Exploitation
Expert format string exploitation playbook covering stack reads, %n writes, GOT and hook overwrites, and blind exploitation.
- CCM score
- 64 of 100
- skills.sh installs
- 4K
- GitHub stars
- 2.7K
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers stack leaks via
%pand%N$s, arbitrary writes via%n,%hn, and%hhn, and pointer-chain two-stage writes - Includes GOT overwrite targets (
printf@GOTtosystem,__stack_chk_fail@GOT) and glibc hook overwrites for pre-2.34__malloc_hookand__free_hook - Automates offset discovery and payload construction with pwntools'
fmtstr_payload()andFmtStrclass, including 64-bit null-byte placement - Designed for CTF and exploit-development work where a printf-family call receives user-controlled format strings
Install
$ npx -y skills add yaklang/hack-skills --skill format-string-exploitation -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
SKILL: Format String Exploitation — Expert Attack Playbook
AI LOAD INSTRUCTION: Expert format string techniques. Covers stack reading, arbitrary write via %n, GOT overwrite, __malloc_hook overwrite, pointer chain exploitation, blind format string, FORTIFY_SOURCE bypass, 64-bit null byte handling, and pwntools automation. Distilled from ctf-wiki fmtstr, CTF patterns, and real-world scenarios. Base models often miscalculate positional parameter offsets or forget 64-bit address placement after format string.
0. RELATED ROUTING
- stack-overflow-and-rop — combine format string leak with stack overflow for full exploit
- binary-protection-bypass — format string is the primary canary/PIE/ASLR leak method
- arbitrary-write-to-rce — convert format string write primitive to code execution targets
- heap-exploitation — heap address leak via format string for heap exploitation
1. VULNERABILITY IDENTIFICATION
Vulnerable Pattern
Details
- Repository
- github.com/yaklang/hack-skills
- Category
- Security
- First seen
- Jun 3, 2026
More from yaklang/hack-skills
All 102- File Access Vuln4K
- Http Parameter Pollution4K
- Csp Bypass Advanced4K
- Browser Exploitation V84K
- Open Redirect4K
- Symbolic Execution Tools4K
- Crlf Injection4K
- Mobile Ssl Pinning Bypass4K
- Insecure Source Code Management4K
- Subdomain Takeover4K
- Http Host Header Attacks4K
- Web Cache Deception4K
- Dependency Confusion4K
- Expression Language Injection4K
- Csv Formula Injection4K
- Linux Privilege Escalation4K
- Active Directory Acl Abuse4K
- Clickjacking4K
- Active Directory Kerberos Attacks4K
- Jndi Injection4K
- Http2 Specific Attacks4K
- Saml Sso Assertion Attacks4K
- Active Directory Certificate Services4K
- Arbitrary Write To Rce4K
Similar to Format String Exploitation
More Securityctf-pwncyberkaida/reverse-engineering-assistant348 installsStructured exploitation framework for CTF pwn challenges, covering memory corruption discovery and flag retrieval through systematic analysis.
heap-exploitationyaklang/hack-skills4.1K installsExpert glibc heap exploitation playbook covering ptmalloc2 bins, leak methods, and version-specific attacks.
binary-protection-bypassyaklang/hack-skills4.1K installsCatalog of binary exploitation techniques for defeating ELF mitigations such as ASLR, PIE, NX, RELRO, and canaries.
fuzzing-dictionarytrailofbits/skills6.1K installsDictionary-driven fuzzing guidance that supplies magic bytes, keywords, and protocol tokens to reach parser code paths.
exploit-developmenthypnguyen1209/offensive-claude430 starsTurns a memory-corruption bug into a working, version-pinned PoC across stack, heap, format string, browser, and kernel targets against modern mitigations.
ctf-forensicsljagiello/ctf-skills10K installsDigital forensics and signal analysis playbook for CTF challenges, spanning disk, memory, network, and hardware evidence.