HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

radare2 — A set of reverse engineering tools. More information: <https://book.rada.re/first_steps/commandline_

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandradare2clireversesetmoreengineeringtools

Problem

How to use the radare2 command: A set of reverse engineering tools. More information: <https://book.rada.re/first_steps/commandline_flags.html>.

Solution

radare2 — A set of reverse engineering tools. More information: <https://book.rada.re/first_steps/commandline_flags.html>.

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}}


[Interactive] Display help text for any command:
{{radare2_command}}?


[Interactive] Run a shell command from the interactive CLI:
!{{shell_command}}


[Interactive] Dump raw bytes of current block to a file:
pr > {{path/to/file.bin}}

Code Snippets

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}}

[Interactive] Display help text for any command

{{radare2_command}}?

[Interactive] Run a shell command from the interactive CLI

!{{shell_command}}

Context

tldr-pages: common/radare2

Revisions (0)

No revisions yet.