| 1 |
.TH ROPGADGET 1 "" "" |
| 2 |
.SH NAME |
| 3 |
ROPgadget \- search executables for exploitable ROP gadgets |
| 4 |
.SH SYNOPSIS |
| 5 |
.SY ROPgadget |
| 6 |
.RB [ \-\-binary " " \fIFILE\fR ] |
| 7 |
.RI [ options ] |
| 8 |
.YS |
| 9 |
.SH DESCRIPTION |
| 10 |
.B ROPGadget |
| 11 |
is a tool for security research and vulnerability exploitation. It lets you |
| 12 |
search binaries for sequences of useful machine code instructions followed by a |
| 13 |
return statement ("gadgets"). If an exploit can manipulate the callstack to |
| 14 |
point to a sequence of gadgets, the return statements will redirect the program |
| 15 |
flow to execute the sequence ("return oriented programming"). By reusing |
| 16 |
existing code out of context, an attacker can potentially circumvent security |
| 17 |
measures which prevent the execution of injected code. |
| 18 |
.B ROPgadget |
| 19 |
supports ELF/PE/Mach-O format on x86, x64, ARM, PowerPC, SPARC and MIPS |
| 20 |
architectures. |
| 21 |
.PP |
| 22 |
The following options are available: |
| 23 |
.TP |
| 24 |
.BR \-\-binary " " \fIFILE\fR |
| 25 |
specify the executable to be analyzed |
| 26 |
.TP |
| 27 |
.BR \-\-opcode " " \fIOPCODES\fR |
| 28 |
Search for particular opcodes in executable sections |
| 29 |
.TP |
| 30 |
.BR \-\-string " " \fISTRING\fR |
| 31 |
Search for a particular string in readable sections |
| 32 |
.TP |
| 33 |
.BR \-\-memstr " " \fISTRING\fR |
| 34 |
Search for each byte in readable sections |
| 35 |
.TP |
| 36 |
.BR \-\-depth " " \fIDEPTH\fR |
| 37 |
Limit search depth for internal engine (default: 10) |
| 38 |
.TP |
| 39 |
.BR \-\-only " " \fIKEY\fR |
| 40 |
Only show specific instructions |
| 41 |
.TP |
| 42 |
.BR \-\-filter " " \fIKEY\fR |
| 43 |
Suppress specific instructions |
| 44 |
.TP |
| 45 |
.BR \-\-range " " \fISTART\fR - \fIEND\fR |
| 46 |
Limit search to address range between |
| 47 |
.I START |
| 48 |
and |
| 49 |
.IR END . |
| 50 |
.TP |
| 51 |
.BR \-\-badbytes " " \fIBYTES\fR |
| 52 |
Reject specific bytes in the address of a gadget |
| 53 |
.TP |
| 54 |
.BR \-\-rawArch " " \fIARCH\fR |
| 55 |
Specify architecture for raw binaries |
| 56 |
.TP |
| 57 |
.BR \-\-rawMode " " \fIMODE\fR |
| 58 |
Specify mode for raw binaries |
| 59 |
.TP |
| 60 |
.BR \-\-re " " \fIEXPR\fR |
| 61 |
Search for gadgets using the regular expression |
| 62 |
.IR EXPR . |
| 63 |
.TP |
| 64 |
.BR \-\-offset \fIOFFSET\fR |
| 65 |
Add an offset to all gadget addresses |
| 66 |
.TP |
| 67 |
.B \-\-ropchain |
| 68 |
Enable ROP chain generation |
| 69 |
.TP |
| 70 |
.B \-\-thumb |
| 71 |
Use thumb mode for ARM architecture binaries |
| 72 |
.TP |
| 73 |
.B \-\-console |
| 74 |
Enable the interactive console for the search engine |
| 75 |
.TP |
| 76 |
.B \-\-norop |
| 77 |
Disable ROP search engine |
| 78 |
.TP |
| 79 |
.B \-\-nojop |
| 80 |
Disable JOP search engine |
| 81 |
.TP |
| 82 |
.B \-\-nosys |
| 83 |
Disable SYS search engine |
| 84 |
.TP |
| 85 |
.B \-\-multibr |
| 86 |
Enable multiple branch gadgets |
| 87 |
.TP |
| 88 |
.B \-\-all |
| 89 |
Show all gadgets, even duplicates |
| 90 |
.TP |
| 91 |
.B \-\-dump |
| 92 |
Output the gadget bytes |
| 93 |
.SH AUTHOR |
| 94 |
This manual page was written for Debian by Timo R\[u00F6]hling and |
| 95 |
may be used without restriction. |
| 96 |
|