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:
hd ¤
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 ¤
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
get_ipi_namespace ¤
Get dictionary of all helpers to inject into IPython namespace.
Returns:
-
dict[str, Any]–Dictionary mapping names to helper functions
get_banner ¤
Get banner text to display when entering ipi.
Returns:
-
str–Banner string