edb_find_rop_gadgets
Search memory for ROP gadgets to construct ROP chains. Specify address, depth, and count to find usable instruction sequences ending with 'ret'.
Instructions
Search for ROP gadgets (instructions ending with 'ret') in memory. Equivalent to EDB's ROPTool plugin. Finds usable instruction sequences for ROP chain construction.
Args: params (RopSearchInput): Search parameters - address (str): Start address (default: $pc) - depth (int): Max instructions before ret, 1-10 (default: 2) - count (int): Max results, 1-1000 (default: 100)
Returns: str: ROP gadget addresses and bytes
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |