> For the complete documentation index, see [llms.txt](https://blog.conspirator.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://blog.conspirator.io/tools/gdb-personal-cheatsheet.md).

# gdb personal cheatsheet

with

## Using gdb-peda

* **aslr on/off** - turn ASLR on/off
* **find 0xdeadbeef** - Find a value(here 0xdeadbeef) in the process memory
* **condition 3 $eax==0** - only break at breakpoint 3 when eax is 0

**On the fly-patching**

```
b *0xdeadbeef
commands
j *0xdeadbff
end
```

* **commands**  - commands to be executed at last set breakpoint. end with **end**
*
