diff options
author | dusoleil <howcansocksbereal@gmail.com> | 2022-03-13 00:27:21 -0500 |
---|---|---|
committer | dusoleil <howcansocksbereal@gmail.com> | 2022-03-13 23:27:30 -0400 |
commit | 11b9ed39ac694932461b03b132e1a01e11658322 (patch) | |
tree | f5f934bc8fa2fcdf36396c6bd113aa1d4811ba75 /tools | |
parent | 9ab54facd5005879e68a1ff83166de5dd576a524 (diff) | |
download | lib-des-gnux-11b9ed39ac694932461b03b132e1a01e11658322.tar.gz lib-des-gnux-11b9ed39ac694932461b03b132e1a01e11658322.zip |
sploit: print hex of addresses in rev logs
Signed-off-by: dusoleil <howcansocksbereal@gmail.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/sploit/sploit/rev/r2.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/sploit/sploit/rev/r2.py b/tools/sploit/sploit/rev/r2.py index ffa6dd4..97eeadd 100644 --- a/tools/sploit/sploit/rev/r2.py +++ b/tools/sploit/sploit/rev/r2.py @@ -42,7 +42,7 @@ def get_elf_symbols(elf): return Symtbl(**out) def get_locals(binary,func): - ilog(f'Retrieving local stack frame of {func} in {binary} with r2...') + ilog(f'Retrieving local stack frame of {hex(func)} in {binary} with r2...') addr = hex(func) cmd_locals = f's {func};af;aafr;aaft;afvf' @@ -77,7 +77,7 @@ def rop_gadget_exact(binary,gad): return g def get_call_returns(binary,xref_from,xref_to): - ilog(f'Getting return addresses of calls from {xref_from} to {xref_to} in {binary} with r2...') + ilog(f'Getting return addresses of calls from {hex(xref_from)} to {hex(xref_to)} in {binary} with r2...') cmd_xrefs = f's {hex(xref_from)};af;axq' xrefs = run_cmd(binary,cmd_xrefs) |