Skip to main content

Overview

The dump command finds all ROP gadgets in the target binary and displays them with their addresses and operations.

Usage

Arguments

  • path - Path to the binary to analyze

Output Format

Each gadget is displayed in the following format:
  • address - The address of the gadget (right-justified with zeros)
  • self-contained - true or false indicating whether the gadget is self-contained
  • operations - The disassembly of the gadget instructions

Self-Contained Indicator

The true/false indicator marks whether a gadget is self-contained. A self-contained gadget does not have unwanted side effects and can be used reliably in ROP chains without affecting other registers or memory unexpectedly.

Example Output

Gadgets are sorted alphabetically by their disassembly and displayed with addresses aligned for easy reading.

Performance

The dump command caches discovered gadgets in /tmp based on an MD5 hash of the binary contents. Subsequent runs on the same binary will load gadgets from cache for faster execution.