Fix telescope for negative values; add debug message

pull/17/head
Zach Riggle 11 years ago
parent 2bf4946667
commit 743f892b3e

@ -6,6 +6,7 @@ Prints out pointer chains starting at some address in memory.
Generally used to print out the stack or register values.
"""
import collections
import pwndbg.arch
import pwndbg.chain
import pwndbg.commands
import pwndbg.memory
@ -30,7 +31,7 @@ def telescope(address=None, count=8, to_string=False):
count = address
address = pwndbg.regs.sp
address = int(address)
address = int(address) & pwndbg.arch.ptrmask
count = int(count)
reg_values = collections.defaultdict(lambda: [])

@ -331,7 +331,7 @@ def check_aslr():
try:
data = pwndbg.file.get('/proc/sys/kernel/randomize_va_space')
except Exception as e:
print(e)
print("Could not check ASLR: Couldn't get randomize_va_space")
pass
# Systemwide ASLR is disabled

Loading…
Cancel
Save