Overview
Thedump 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 -
trueorfalseindicating whether the gadget is self-contained - operations - The disassembly of the gadget instructions
Self-Contained Indicator
Thetrue/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
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.