1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/ropgadget.md
Johan Degn e567936209
ROPgadget: add page (#10640)
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2023-09-01 17:06:13 +05:30

24 lines
685 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 regular expression:
`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}}`