Skip to content

Stack

Helpers for finding address mappings which are used as a stack.

Generally not needed, except under qemu-user and for when binaries do things to remap the stack (e.g. pwnies' postit).

callstack()

Return the address of the return address for the current frame.

current()

Returns the bounds for the stack for the current thread.

find(address)

Returns a pwndbg.lib.memory.Page object which corresponds to given address stack or None if it does not exist

find_upper_stack_boundary(stack_ptr, max_pages=1024)

get()

For each running thread, return the known address range for its stack Returns a dict which should never be modified (since its cached)

is_executable()