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. Generally used to print out the stack or register values.
""" """
import collections import collections
import pwndbg.arch
import pwndbg.chain import pwndbg.chain
import pwndbg.commands import pwndbg.commands
import pwndbg.memory import pwndbg.memory
@ -30,7 +31,7 @@ def telescope(address=None, count=8, to_string=False):
count = address count = address
address = pwndbg.regs.sp address = pwndbg.regs.sp
address = int(address) address = int(address) & pwndbg.arch.ptrmask
count = int(count) count = int(count)
reg_values = collections.defaultdict(lambda: []) reg_values = collections.defaultdict(lambda: [])

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

Loading…
Cancel
Save