Radare 2
"R2" is a rewrite from scratch of radare in order to provide a set of libraries and tools to work with binary files.
Basics and Running
In order to run Radare
Start radare with -d flag to debug like gdb.
Like in vim, you can enter command mode with :
Commands
? Get information about characters you can use (also works like a?)
aaa Automatically analyse and autoname functions.
afl Print every function radare found.
s
newLocation
Change current location to newLocation (example sym.main).pdf Print the disassembly of current function.
VV Enter visual mode, showing control graph
Control Flow
When running the control flow you will notice that rip (instruction pointer register is at the execution)
Command | Action | Example |
| Sets breakpoint at address |
|
| Runs the program | - |
| Step to next instruction | - |
| Step to next non-library function | - |
| Show what is in registers | - |
| Reload file in debug mode | - |
| Sets reg to value |
|
| Renames variable |
|
| Change to complete info grid | - |
Visual Mode
Command | Action |
| select blocks |
| move the block |
| Cycle within different representations (with or without address in beginning for example) |
| Show Help |
| change colors |
Last updated