Radare2

Open binary in debugging mode : r2 -d ./file

Analyze the program : aa

r2 instructions are usually based on a single character, so to get help : ? after the command; i.e. or a?

Find list of functions : afl

print disassembly for main function : pdf @main

aaa = analyse all
afl = analyse fonctions liste
pdf @<address> = print disassemble function
pdg @<address> = print decompile ghidra
ood = open debug
db <address> = debug breakpoint
dc = debug continue
dr = debug register
pxr @rsp = print hexa de la stack
wa <instruction> @<address> = write instruction
dr rax=0x42 = change register value

Last updated

Was this helpful?