provocativo_
back to the arsenal
// arsenal·Linux & ShellAdvancedFOSS

ROPgadget

Find ROP gadgets in ELF/PE/Mach-O binaries.

Linux & Shell

$ ropgadget --help

ROPgadget

// what it is

Description

Jonathan Salwan's gadget search tool. Scans a binary and lists all usable ROP gadgets — sequences ending in `ret` (or similar) that can be chained into shellcode-equivalent behavior.

// use cases

What people use it for

  • ROP chain construction
  • Binary exploitation

// commands

The commands you'll type

List gadgets

$ ROPgadget --binary ./vuln

ROP chain to /bin/sh

$ ROPgadget --binary ./vuln --ropchain

// facts

category
Linux & Shell
platforms
LIN · WIN · MAC
license
FOSS
difficulty
Advanced

// related in Linux & Shell