summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordusoleil <howcansocksbereal@gmail.com>2022-03-13 00:27:21 -0500
committerdusoleil <howcansocksbereal@gmail.com>2022-03-13 23:27:30 -0400
commit22771b12afcc50e3281e48301cedfd0599624b6e (patch)
tree9c800dea417250f7439a2c03c8fad4f2f9f5c8ee
parent6bc9c69c534447ecec79ae551d8f6b3e50c71eba (diff)
downloadsploit-22771b12afcc50e3281e48301cedfd0599624b6e.tar.gz
sploit-22771b12afcc50e3281e48301cedfd0599624b6e.zip
sploit: print hex of addresses in rev logs
Signed-off-by: dusoleil <howcansocksbereal@gmail.com>
-rw-r--r--sploit/rev/r2.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sploit/rev/r2.py b/sploit/rev/r2.py
index ffa6dd4..97eeadd 100644
--- a/sploit/rev/r2.py
+++ b/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)