ropgadget
Find ROP gadgets in binary files. tldr-pages
On several platforms
Several platforms
List gadgets in the binary file
ROPgadget --binary path/to/binaryIdentifyFilter gadgets in the binary file by a regex
ROPgadget --binary path/to/binary --re regexIdentifyList gadgets in the binary file, excluding specified type
ROPgadget --binary path/to/binary --noropIdentifyExclude bad byte gadgets in the binary file
ROPgadget --binary path/to/binary --badbytes byte_stringIdentifyList gadgets up to the specified number of bytes in the binary file
ROPgadget --binary path/to/binary --depth nbyteIdentify