LinuxCommandLibrary

ropgadget

Find ROP gadgets in binary files.

TLDR

List gadgets in the binary file

$ ROPgadget --binary [path/to/binary]
copy


Filter gadgets in the binary file by a regular expression
$ ROPgadget --binary [path/to/binary] --re [regex]
copy


List gadgets in the binary file, excluding specified type
$ ROPgadget --binary [path/to/binary] --[norop|nojob|nosys]
copy


Exclude bad byte gadgets in the binary file
$ ROPgadget --binary [path/to/binary] --badbytes [byte_string]
copy


List gadgets up to the specified number of bytes in the binary file
$ ROPgadget --binary [path/to/binary] --depth [nbyte]
copy

Copied to clipboard