r2 <binary>Opens a binary read-only.
Example
r2 ./crackmeA complete command-line reverse-engineering framework: disassemble, debug, patch and analyse binaries for many architectures.
sudo apt install radare2r2 <binary>Opens a binary read-only.
Example
r2 ./crackmer2 -A <binary>Opens and runs full analysis (same as aaa) — slower but finds functions and references.
Example
r2 -A ./crackmer2 -d <binary>Opens in debug mode.
Example
r2 -d ./crackmer2 -w <binary>Opens writable so you can patch bytes.
Example
r2 -w ./crackmerabin2 -I <binary>Binary info without the shell: architecture, protections, language.
Example
rabin2 -I ./crackmerabin2 -z <binary>Strings from the data sections.
Example
rabin2 -z ./crackmerabin2 -i <binary>Imported functions.
Example
rabin2 -i ./crackmeaaaAnalyses everything: functions, references and names.
aflLists functions with addresses and sizes.
s <addr|symbol>Seeks to an address or symbol.
Example
s mainpdfPrints the disassembly of the current function.
pdf @ <symbol>Disassembles a function without seeking.
Example
pdf @ sym.check_passwordaxt <addr>Cross-references to an address — who uses this string or calls this function.
Example
axt @ str.Correct_passwordizStrings in data sections; izz searches the whole binary.
pdcA pseudo-C view of the current function.
/ <string>Searches for a string; /x searches hex bytes.
Example
/ flag{db <addr>Sets a breakpoint.
Example
db maindcContinues execution.
dsSteps one instruction; dso steps over.
drShows registers; dr rax=0 sets one.
px <n> @ <addr>Hex dump of memory.
Example
px 64 @ rspwa <asm> @ <addr>Writes assembled instructions (in -w mode).
Example
wa nop @ 0x08048456wx <hex> @ <addr>Writes raw bytes.
Example
wx 9090 @ 0x08048456The NSA’s open-source reverse-engineering suite with a powerful decompiler; scriptable headless analysis from the command line.
The GNU Debugger: set breakpoints, step through code, inspect memory and registers. Pair with GEF or pwndbg for exploit development.
Displays information about object files: headers, sections, symbols and disassembly. Part of GNU binutils.