Skip to content
yaklang avatar

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
View on GitHub

Own this skill? Claim it

What it does

  • Covers stack leaks via %p and %N$s, arbitrary writes via %n, %hn, and %hhn, and pointer-chain two-stage writes
  • Includes GOT overwrite targets (printf@GOT to system, __stack_chk_fail@GOT) and glibc hook overwrites for pre-2.34 __malloc_hook and __free_hook
  • Automates offset discovery and payload construction with pwntools' fmtstr_payload() and FmtStr class, 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 -y

Installs 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


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

Similar to Format String Exploitation

More Security