re-exploit

Develops ROP chains and heap exploitation primitives from triaged vulnerability crashes.

64|9|Updated Aug 17, 2026
One-click install
npx skills add https://github.com/dslsdzc/rev-skills --skill re-exploit-dslsdzc
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: re-exploit
Source: https://github.com/dslsdzc/rev-skills/tree/main/.claude/skills/re-exploit
Command: npx skills add https://github.com/dslsdzc/rev-skills --skill re-exploit-dslsdzc

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pwntools, ropper, ROPgadget, angr, seccomp-tools.

What problem does it solve? Turning a located vulnerability (crash, out-of-bounds write, controllable input) into a working proof-of-concept exploit requires deep knowledge of ROP gadget search, stack layout, glibc heap internals, and mitigation bypasses, which is error-prone without a structured methodology. ## Core Features & Use Cases - ROP Chain Construction: Searches gadgets with ROPgadget/ropper, plans stack layouts with SysV ABI argument order, 16-byte stack alignment, ret2csu, SROP, and ret2dlresolve techniques. - Heap Exploitation: Covers tcache poisoning, fastbin dup, unsorted bin leaks, double free, UAF, and off-by-one patterns with glibc version-specific guidance (safe-linking, key checks, hook removal in 2.34+). - Mitigation Bypass & PoC Validation: Handles NX, PIE, Canary, RELRO, and seccomp (ORW chains), with staged leak-then-overwrite verification using pwntools and pwndbg inside a sandbox. - Use Case: Given a minimal crashing PoC from crash triage, determine controllable offsets with cyclic patterns, leak libc base, build a two-stage ROP chain, and produce a verified pwntools exploit script. ## Quick Start Use the re-exploit skill to develop a ROP chain exploit from the crash PoC for the target binary, verifying each stage in a sandbox with pwndbg.

Frequently Asked Questions about re-exploit

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build a ROP chain for a 64-bit binary?▼

Search gadgets with ROPgadget or ropper for pop rdi, pop rsi, and pop rdx instructions matching the SysV ABI argument order. Build the chain as padding plus gadget addresses plus arguments, and insert a ret gadget before libc calls to maintain 16-byte stack alignment for movaps.

How does tcache poisoning work on modern glibc?▼

On glibc 2.32 and later, tcache fd pointers are protected by safe-linking, so you must leak a heap address and encode the new fd as new_fd XOR (fd_field_address >> 12). Double free is also blocked by key checks since 2.29, requiring a UAF write to the key field or a size change to a different bin.

What tools are needed for heap exploitation debugging?▼

Use gdb with pwndbg, whose heap and bins commands display chunk layouts and tcache, fastbin, and unsorted bin linked lists directly. pwntools provides the exploit scripting framework, and checksec reports the binary's protection matrix.

Why does my ROP chain crash at system or printf?▼

The crash usually occurs at a movaps instruction because the x86-64 ABI requires 16-byte stack alignment at call time. Insert a single ret gadget before the target function call to adjust rsp by 8 bytes and restore alignment.

How do I bypass seccomp when execve is blocked?▼

Build an ORW chain that calls open, read, and write sequentially via ROP to exfiltrate the flag file instead of spawning a shell. If no syscall gadget exists in the binary, leak libc base first and use libc gadgets or SROP via rt_sigreturn.

When should I use re-exploit instead of basic pwn techniques?▼

Use it when a vulnerability is already located and triaged and you need complex ROP chains, heap attacks, or multi-mitigation bypasses. Entry-level tasks like ret2win, simple ret2libc, or format string basics belong to introductory pwn workflows, and unlocated crashes belong to crash triage.