Skip to content

ipi_helpers ¤

IPython interactive helpers for pwndbg.

Provides convenient shortcuts for common debugging operations.

Functions:

  • hd

    HexDump - Hexdump memory at address

  • ms

    Search Memory for byte pattern

  • vm

    Virtual memory Map - Show memory mappings.

  • aliases

    Print help for all available shortcuts.

  • get_ipi_namespace

    Get dictionary of all helpers to inject into IPython namespace.

  • get_banner

    Get banner text to display when entering ipi.

Attributes:

mr module-attribute ¤

mr = read

mw module-attribute ¤

mw = write

regs module-attribute ¤

regs = regs

rr module-attribute ¤

rr = read_reg

rw module-attribute ¤

rw = write_reg

hd ¤

hd(addr: int, count: int = 64) -> None

HexDump - Hexdump memory at address

Parameters:

  • addr (int) –

    Address to dump

  • count (int, default: 64 ) –

    Number of bytes (default: 0x40)

Example

hd(0x400000) hd(0x400000, 0x100)

ms ¤

ms(
    pattern: bytes,
    start: int | None = None,
    end: int | None = None,
    limit: int = 100,
    show: bool = True,
) -> list[int]

Search Memory for byte pattern

Parameters:

  • pattern (bytes) –

    Bytes to search for

  • start (int | None, default: None ) –

    Start address (optional)

  • end (int | None, default: None ) –

    End address (optional)

  • limit (int, default: 100 ) –

    Max results (default: 100)

  • show (bool, default: True ) –

    Print results

Returns:

  • list[int]

    List of addresses where pattern found

Example

ms(b"ELF") ms(b"\x90\x90", limit=10)

vm ¤

vm(show: bool = True) -> tuple[Any, ...]

Virtual memory Map - Show memory mappings.

Parameters:

  • show (bool, default: True ) –

    Print formatted output

Returns:

  • tuple[Any, ...]

    Tuple of memory pages

Example

vm() # Print vmmap pages = vm(show=False) # Get raw data

aliases ¤

aliases() -> None

Print help for all available shortcuts.

get_ipi_namespace ¤

get_ipi_namespace() -> dict[str, Any]

Get dictionary of all helpers to inject into IPython namespace.

Returns:

  • dict[str, Any]

    Dictionary mapping names to helper functions

get_banner ¤

get_banner() -> str

Get banner text to display when entering ipi.

Returns:

  • str

    Banner string