diff options
author | dusoleil <howcansocksbereal@gmail.com> | 2022-03-13 04:33:58 -0400 |
---|---|---|
committer | dusoleil <howcansocksbereal@gmail.com> | 2022-03-13 23:27:30 -0400 |
commit | 0ddf210c257cd27bb78743b5548d4c26fe1521df (patch) | |
tree | 126abbcbefc0de7d5418fab88f7a5cff56b28b2b | |
parent | 22771b12afcc50e3281e48301cedfd0599624b6e (diff) | |
download | sploit-0ddf210c257cd27bb78743b5548d4c26fe1521df.tar.gz sploit-0ddf210c257cd27bb78743b5548d4c26fe1521df.zip |
sploit: add stack base pointer to locals symtbl
Signed-off-by: dusoleil <howcansocksbereal@gmail.com>
-rw-r--r-- | sploit/rev/r2.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sploit/rev/r2.py b/sploit/rev/r2.py index 97eeadd..bb3edb3 100644 --- a/sploit/rev/r2.py +++ b/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...') |