You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
pwndbg/docs/commands/memory/probeleak.md

41 lines
1.6 KiB
Markdown

<!-- THIS PART OF THIS FILE IS AUTOGENERATED. DO NOT MODIFY IT. See scripts/generate_docs.sh -->
# probeleak
```text
usage: probeleak [-h] [--max-distance MAX_DISTANCE] [--point-to POINT_TO]
[--max-ptrs MAX_PTRS] [--flags FLAGS]
[address] [count]
```
Pointer scan for possible offset leaks.
Examples:
probeleak $rsp 0x64 - leaks 0x64 bytes starting at stack pointer and search for valid pointers
probeleak $rsp 0x64 --max-dist 0x10 - as above, but pointers may point 0x10 bytes outside of memory page
probeleak $rsp 0x64 --point-to libc --max-ptrs 1 --flags rwx - leaks 0x64 bytes starting at stack pointer and search for one valid pointer which points to a libc rwx page
### Positional arguments
|Positional Argument|Help|
| :--- | :--- |
|address|Leak memory address (default: $sp)|
|count|Leak size in bytes (default: 64)|
### Optional arguments
|Short|Long|Help|
| :--- | :--- | :--- |
|-h|--help|show this help message and exit|
||--max-distance|Max acceptable distance between memory page boundary and leaked pointer (default: 0)|
||--point-to|Mapping name of the page that you want the pointers point to|
||--max-ptrs|Stop search after find n pointers, default 0 (default: 0)|
||--flags|flags of the page that you want the pointers point to. [e.g. rwx]|
<!-- END OF AUTOGENERATED PART. Do not modify this line or the line below, they mark the end of the auto-generated part of the file. If you want to extend the documentation in a way which cannot easily be done by adding to the command help description, write below the following line. -->
<!-- ------------\>8---- ----\>8---- ----\>8------------ -->