find_rop_gadgets_in_file
Search for ROP gadgets in a binary file's section to identify exploitable code sequences for security analysis.
Instructions
Search for ROP gadgets in a binary file's section.
Args: file_path: Absolute path to the binary file. section_name: Section name. Default: ".text". arch: CPU architecture. Auto-detected if omitted. max_gadget_len: Maximum instructions per gadget. Default: 5. max_results: Maximum results to return. Default: 100.
Returns: List of ROP gadgets found.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| section_name | No | .text | |
| arch | No | ||
| max_gadget_len | No | ||
| max_results | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |