Skip to content

vmmap_custom ¤

Functions:

Attributes:

explored_pages module-attribute ¤

explored_pages: list[Page] = []

custom_pages module-attribute ¤

custom_pages: list[Page] = []

auto_explore module-attribute ¤

auto_explore = add_param(
    "auto-explore-pages",
    "warn",
    "whether to try to infer page permissions when memory maps are missing",
    param_class=PARAM_ENUM,
    enum_sequence=["yes", "warn", "no"],
    help_docstring="\nThis command can cause errors.\n",
)

clear_warn_cache ¤

clear_warn_cache()

get_custom_pages ¤

get_custom_pages() -> tuple[Page, ...]

Returns a tuple of Page objects representing the memory mappings of the target, sorted by virtual address ascending.

add_custom_page ¤

add_custom_page(page: Page) -> None

clear_custom_page ¤

clear_custom_page() -> None

explore ¤

explore(address_maybe: int) -> Page | None

Given a potential address, check to see what permissions it has.

Returns:

  • Page | None

    Page object

Note

Adds the Page object to a persistent list of pages which are only reset when the process dies. This means pages which are added this way will not be removed when unmapped.

Also assumes the entire contiguous section has the same permission.

get_memory_flags ¤

get_memory_flags(address_maybe: int) -> int | None

find_boundaries ¤

find_boundaries(addr: int, name: str = '', min: int = 0) -> Page

Given a single address, find all contiguous pages which are mapped.