From d2763180e6c92c901448fa85aca01a2780ea5e79 Mon Sep 17 00:00:00 2001 From: Malfurious Date: Wed, 15 Mar 2023 17:12:33 -0400 Subject: 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 Signed-off-by: dusoleil --- sploit/rev/r2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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...') -- cgit v1.2.3