summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/sploit/sploit/rev/r2.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/sploit/sploit/rev/r2.py b/tools/sploit/sploit/rev/r2.py
index cd4684f..c133c33 100644
--- a/tools/sploit/sploit/rev/r2.py
+++ b/tools/sploit/sploit/rev/r2.py
@@ -54,7 +54,7 @@ def get_locals(binary,func):
cmd_locals = f's {func};af;aafr;aaft;afvf'
out = r2.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 = {var[1]:-(int(var[0],0)-arch.wordsize) for var in out}
return Symtbl(**out)
def ret_gadget(binary):