ToolsFebruary 9, 20261 min readby 0xt0pus

ROPgadget

Searches binary files for ROP gadgets to build Return-Oriented Programming chains


ROPgadget

Description

Finds ROP (Return Oriented Programming) gadgets in binary files for exploitation. Used to locate useful instruction sequences (gadgets) that end with a return instruction, which can be chained together to build exploits.

Usage 1: Search for gadgets containing a specific register

Find ROP gadgets that reference a particular register (e.g., rsi) in a binary.

Command:

ROPgadget --binary oneparam | grep rsi