summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authordusoleil <howcansocksbereal@gmail.com>2022-03-13 04:33:58 -0400
committerdusoleil <howcansocksbereal@gmail.com>2022-03-13 23:27:30 -0400
commit4bf40b9d27dbb471b7b18be502deacfb12540120 (patch)
tree5c4a3b595204fb628f60c3c4d5bf7ab7b3ca0512 /tools
parent11b9ed39ac694932461b03b132e1a01e11658322 (diff)
downloadlib-des-gnux-4bf40b9d27dbb471b7b18be502deacfb12540120.tar.gz
lib-des-gnux-4bf40b9d27dbb471b7b18be502deacfb12540120.zip
sploit: add stack base pointer to locals symtbl
Signed-off-by: dusoleil <howcansocksbereal@gmail.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/sploit/sploit/rev/r2.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/sploit/sploit/rev/r2.py b/tools/sploit/sploit/rev/r2.py
index 97eeadd..bb3edb3 100644
--- a/tools/sploit/sploit/rev/r2.py
+++ b/tools/sploit/sploit/rev/r2.py
@@ -49,7 +49,9 @@ 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}
- return Symtbl(**out)
+ out = Symtbl(**out)
+ out.sbp = 0
+ return out
def ret_gadget(binary):
ilog(f'Searching for a ret gadget in {binary} with r2...')