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