summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sploit/rev/r2.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/sploit/rev/r2.py b/sploit/rev/r2.py
index 5f7632a..7fe57d8 100644
--- a/sploit/rev/r2.py
+++ b/sploit/rev/r2.py
@@ -54,9 +54,7 @@ def get_locals(binary,func):
out = run_cmd(binary,cmd_locals)
out = [re.split(r':?\s+',var) for var in out]
out = {var[1]:-(int(var[0],0)-arch.wordsize) for var in out}
- out = Symtbl(**out)
- out.sbp = 0
- return out
+ return Symtbl(sbp=0, **out)
def ret_gadget(binary):
ilog(f'Searching for a ret gadget in {binary} with r2...')