diff options
author | Malfurious <m@lfurio.us> | 2023-03-15 17:12:33 -0400 |
---|---|---|
committer | dusoleil <howcansocksbereal@gmail.com> | 2023-03-15 17:49:23 -0400 |
commit | d2763180e6c92c901448fa85aca01a2780ea5e79 (patch) | |
tree | 6bf471fd9d403e20268f6702578510ac2b764243 | |
parent | 873cf63768302bab81b06987803e9d108e3ceebb (diff) | |
download | sploit-d2763180e6c92c901448fa85aca01a2780ea5e79.tar.gz sploit-d2763180e6c92c901448fa85aca01a2780ea5e79.zip |
r2: Increase maximum rop gadget length
Sets the value of rop.len = 10 in r2, to give the search function more
data to sift through. This is a doubling from the default value (5).
Signed-off-by: Malfurious <m@lfurio.us>
Signed-off-by: dusoleil <howcansocksbereal@gmail.com>
-rw-r--r-- | sploit/rev/r2.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sploit/rev/r2.py b/sploit/rev/r2.py index f2650da..b9df8ad 100644 --- a/sploit/rev/r2.py +++ b/sploit/rev/r2.py @@ -10,7 +10,7 @@ import json import re def run_cmd(binary,cmd): - return run_cmd_cached(['r2','-q','-c',cmd,'-e','scr.color=false',binary]) + return run_cmd_cached(['r2','-q','-c',cmd,'-e','scr.color=false','-e','rop.len=10',binary]) def get_elf_symbols(elf): ilog(f'Retrieving symbols of {elf} with r2...') |