Forked from williballenthin/yet another radare2 cheatsheet.md
Created
March 3, 2021 08:10
-
-
Save sfrhaxor/de4629afcb90a5c19c4fb4adb34d2d9f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # radare2 | |
| load without any analysis (file header at offset 0x0): r2 -n /path/to/file | |
| analyze all: aa | |
| list functions: afl | |
| seek to function: s sym.main | |
| open project: Po <name> | |
| save project: Ps <name> | |
| edit project notes: Pn - | |
| show basic block disassembly: pdb | |
| show function disassembly: pdf | |
| show function arguments: afa | |
| show function variables: afv | |
| rename function variable: afvn | |
| set function variable type: afvt | |
| add/analyze function: af | |
| comments: | |
| add comment (using editor): CC! | |
| note: multiline comments are not formatted nicely | |
| append comment: CC the comment text | |
| overwrite comment: CCu the comment text | |
| show comment: CC. | |
| show comment in this function: CCf | |
| ## visual mode | |
| enter visual mode: V | |
| quick command/seek: _ <search string> | |
| show cursor: c | |
| add comment: ; | |
| add multiline comment: ;! | |
| remove comment: ;- | |
| set function name: dr | |
| ## graph mode | |
| enter graph modes: VV | |
| cycle types of graphs: | |
| forward: p | |
| backwards: P | |
| types: | |
| graph view | |
| graph view + opcode bytes | |
| esil | |
| esil + comments | |
| overview | |
| graph: | |
| seek to function: g<identifier> | |
| undo seek: u | |
| show comments: ' | |
| add comment: / | |
| select bb: ??? | |
| overview graph: | |
| seek to next bb: tab | |
| seek to previous bb: TAB | |
| if bb has conditional branch: | |
| seek to True target: t | |
| seek to False target: f |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment