From e4793b798fe84c856c76817814b3867d3ce7b85e Mon Sep 17 00:00:00 2001 From: dusoleil Date: Sun, 19 Mar 2023 09:26:08 -0400 Subject: r2: limit gadget search to exec privilege sections 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 7101f07..dd78edb 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','-e','rop.len=10',binary]) + return run_cmd_cached(['r2','-q','-c',cmd,'-e','scr.color=false','-e','rop.len=10','-e','search.in=io.maps.x',binary]) def get_elf_symbols(elf): ilog(f'Retrieving symbols of {elf} with r2...') -- cgit v1.2.3