Top 10 radare2 (r2) commands

#1 — Webserver (-c=H)

#=h: Start the server
#=H: Start server and browser
r2 -c=H <input_binary>
#Starting http server...
#open https://localhost:9090/
#r2 -C https://localhost:9090/cmd/

#2 — Visual Mode (V)

View ascii-art basic block graph of current function

#3 — Search assembly (/a)

Looking for that perfect instruction to finish your exploit? Speed up the process by searching instructions.

/a <instruction>

#4 — Gadget Library (pda)

#5-Python Output (pcp)

pcp n @ offset: Print n bytes in python string output.

#6 — List All Functions (afl)

#7- File Info (iI)

#8- All Strings in Binary (izz)

#9 — JSON Output (j)

When used with info or print commands, for example iS, we can output to JSON…

iSj

#10 — Imports (ii)