yaklang avatar

Stack Overflow And Rop

This is a comprehensive playbook for exploiting stack-based buffer overflows on Linux binaries when you need to hijack control flow. It covers the progression from basic return address overwrites through ret2libc, full ROP chain construction, and advanced techniques like ret2csu for setting up three-argument function calls, ret2dlresolve for resolving arbitrary symbols without leaks, and SROP for control of all registers at once. The gadget selection guidance is solid, especially the often-missed x86-64 stack alignment requirement for movaps instructions. It includes concrete payloads for both 32-bit and 64-bit targets and practical tooling comparisons between ROPgadget, ropper, and pwntools. If you're working CTF challenges or analyzing real vulnerabilities where you've got a stack overflow primitive and need to navigate NX, ASLR, and other modern protections, this gives you the patterns.

skills.sh installs
3.7K
GitHub stars
2.6K
last updated
Aug 21, 2026

Install

$ npx -y skills add yaklang/hack-skills --skill stack-overflow-and-rop --agent claude-code

Installs into .claude/skills of the current project.

Files

SKILL: Stack Overflow & ROP — Expert Attack Playbook

AI LOAD INSTRUCTION: Expert stack-based exploitation techniques. Covers classic buffer overflow, return-to-libc, ROP chain construction, ret2csu, ret2dlresolve, SROP, stack pivoting, and canary bypass. Distilled from ctf-wiki advanced-rop, real-world CVEs, and CTF competition patterns. Base models often miss the nuance of gadget selection under constrained conditions.

0. RELATED ROUTING

Advanced Reference

Sponsors

Details

Repository
github.com/yaklang/hack-skills
First seen
Jun 3, 2026

More from yaklang/hack-skills

All 102

Recommended

1juliusbrussee avatarcavemanjuliusbrussee/cavemanUltra-compressed communication mode. Cuts output tokens 65% (measured) by speaking like caveman while keeping full technical accuracy. Supports intensity levels618.3Kskills.sh installs
2mattpocock avatargrill-memattpocock/skillsA relentless interview to sharpen a plan or design.1.5Mskills.sh installs
3shadcn avatarimproveshadcn/improveSurvey any codebase as a senior advisor and produce prioritized, self-contained implementation plans for OTHER models/agents to execute. Strictly read-only on s40Kskills.sh installs
4obra avatarsystematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes326.7Kskills.sh installs
5forrestchang avatarkarpathy-guidelinesforrestchang/andrej-karpathy-skillsBehavioral guidelines to reduce common LLM coding mistakes through explicit assumptions, simplicity, and verifiable success criteria.17.9Kskills.sh installs
6vercel-labs avatarfind-skillsvercel-labs/skillsHelps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express int4.3Mskills.sh installs