2019-10-23 01:20:35 +01:00
|
|
|
# radare2
|
|
|
|
|
|
|
|
> A set of reverse engineering tools.
|
2023-11-19 21:07:13 +00:00
|
|
|
> More information: <https://www.radare.org/r/docs.html>.
|
2019-10-23 01:20:35 +01:00
|
|
|
|
|
|
|
- Open a file in write mode without parsing the file format headers:
|
|
|
|
|
|
|
|
`radare2 -nw {{path/to/binary}}`
|
|
|
|
|
|
|
|
- Debug a program:
|
|
|
|
|
|
|
|
`radare2 -d {{path/to/binary}}`
|
|
|
|
|
|
|
|
- Run a script before entering the interactive CLI:
|
|
|
|
|
|
|
|
`radare2 -i {{path/to/script.r2}} {{path/to/binary}}`
|
|
|
|
|
2023-12-27 06:41:30 +00:00
|
|
|
- Display help text for any command in the interactive CLI:
|
2019-10-23 01:20:35 +01:00
|
|
|
|
|
|
|
`> {{radare2_command}}?`
|
|
|
|
|
|
|
|
- Run a shell command from the interactive CLI:
|
|
|
|
|
|
|
|
`> !{{shell_command}}`
|
|
|
|
|
|
|
|
- Dump raw bytes of current block to a file:
|
|
|
|
|
|
|
|
`> pr > {{path/to/file.bin}}`
|