search ¤
Search the address space for byte patterns.
Functions:
-
search–Search inferior memory for a byte sequence.
search ¤
search(
searchfor: bytes,
mappings: Collection[Page] | None = None,
start: int | None = None,
end: int | None = None,
step: int | None = None,
aligned: int | None = None,
limit: int | None = None,
executable: bool = False,
writable: bool = False,
) -> Generator[int, None, None]
Search inferior memory for a byte sequence.
Parameters:
-
searchfor(bytes) –Byte sequence to find
-
mappings(Collection[Page] | None, default:None) –List of pwndbg.lib.memory.Page objects to search By default, uses all available mappings.
-
start(int | None, default:None) –First address to search, inclusive.
-
end(int | None, default:None) –Last address to search, exclusive.
-
step(int | None, default:None) –Size of memory region to skip each result
-
aligned(int | None, default:None) –Strict byte alignment for search result
-
limit(int | None, default:None) –Maximum number of results to return
-
executable(bool, default:False) –Restrict search to executable pages
-
writable(bool, default:False) –Restrict search to writable pages
Yields:
-
int–An iterator on the address matches