|
|
|
@ -77,9 +77,6 @@ def hexdump(address, count=pwndbg.config.hexdump_bytes) -> None:
|
|
|
|
hexdump.offset = 0
|
|
|
|
hexdump.offset = 0
|
|
|
|
|
|
|
|
|
|
|
|
address = int(address)
|
|
|
|
address = int(address)
|
|
|
|
if not pwndbg.aglib.memory.peek(address):
|
|
|
|
|
|
|
|
print("Could not read memory at specified address")
|
|
|
|
|
|
|
|
return
|
|
|
|
|
|
|
|
if address > pwndbg.aglib.arch.ptrmask:
|
|
|
|
if address > pwndbg.aglib.arch.ptrmask:
|
|
|
|
new_address = address & pwndbg.aglib.arch.ptrmask
|
|
|
|
new_address = address & pwndbg.aglib.arch.ptrmask
|
|
|
|
print(
|
|
|
|
print(
|
|
|
|
@ -89,6 +86,10 @@ def hexdump(address, count=pwndbg.config.hexdump_bytes) -> None:
|
|
|
|
)
|
|
|
|
)
|
|
|
|
address = new_address
|
|
|
|
address = new_address
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if not pwndbg.aglib.memory.peek(address):
|
|
|
|
|
|
|
|
print("Could not read memory at specified address")
|
|
|
|
|
|
|
|
return
|
|
|
|
|
|
|
|
|
|
|
|
count = max(int(count), 0)
|
|
|
|
count = max(int(count), 0)
|
|
|
|
|
|
|
|
|
|
|
|
# Get the configured limit in MB
|
|
|
|
# Get the configured limit in MB
|
|
|
|
|