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).

auto_explore = pwndbg.config.add_param('auto-explore-stack', 'warn', 'Enable or disable stack exploration; it may be really slow.', param_class=pwndbg.lib.config.PARAM_ENUM, enum_sequence=['warn', 'yes', 'no']) module-attribute

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()