You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
pwndbg/docs/commands/integrations/rop.md

1.3 KiB

rop

usage: rop [-h] [--grep GREP] [--memlimit MEMLIMIT] [argument ...]

Dump ROP gadgets with Jon Salwan's ROPgadget tool.

Alias: ropgadget

Positional arguments

Positional Argument Help
argument Arguments to pass to ROPgadget

Optional arguments

Short Long Help
-h --help show this help message and exit
--grep String to grep the output for
--memlimit String to grep the output for (default: '50MB')

Examples

pwndbg> rop --grep 'pop rdi' -- --nojop
Gadgets information
============================================================
[...]
0x0007dce8 : pop rdi ; or dword ptr [rax], eax ; add rsp, 0x28 ; ret
0x0007d838 : pop rdi ; or dword ptr [rax], eax ; je 0x7d840 ; ret
0x0005b13d : pop rdi ; pop rbp ; ret
0x0001ee23 : pop rdi ; ret

Unique gadgets found: 8514