1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-15 11:55:49 +02:00
tldr/pages/common/ropgadget.md
Managor ba6daef39d
*: standardize regex usage (#17328)
Co-authored-by: Dylan <145150333+dmmqz@users.noreply.github.com>
2025-07-25 08:50:06 +03:00

24 lines
674 B
Markdown

# ROPgadget
> Find ROP gadgets in binary files.
> More information: <https://github.com/JonathanSalwan/ROPgadget>.
- List gadgets in the binary file:
`ROPgadget --binary {{path/to/binary}}`
- Filter gadgets in the binary file by a `regex`:
`ROPgadget --binary {{path/to/binary}} --re {{regex}}`
- List gadgets in the binary file, excluding specified type:
`ROPgadget --binary {{path/to/binary}} --{{norop|nojob|nosys}}`
- Exclude bad byte gadgets in the binary file:
`ROPgadget --binary {{path/to/binary}} --badbytes {{byte_string}}`
- List gadgets up to the specified number of bytes in the binary file:
`ROPgadget --binary {{path/to/binary}} --depth {{nbyte}}`