From ae87b1fff3e809d4a1fa3d26f6a5b639316d8a69 Mon Sep 17 00:00:00 2001 From: Zach Riggle Date: Sun, 13 Dec 2015 16:24:22 -0500 Subject: [PATCH] Don't attempt to explore address space if we know all of it --- pwndbg/vmmap.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pwndbg/vmmap.py b/pwndbg/vmmap.py index 4d14dc803..f482a9fe5 100644 --- a/pwndbg/vmmap.py +++ b/pwndbg/vmmap.py @@ -69,6 +69,9 @@ def explore(address_maybe): Also assumes the entire contiguous section has the same permission. """ + if proc_pid_maps(): + return None + address_maybe = pwndbg.memory.page_align(address_maybe) flags = 4 if pwndbg.memory.peek(address_maybe) else 0