Skip to content

Instantly share code, notes, and snippets.

@ahhh
Created April 11, 2015 02:07
Show Gist options
  • Save ahhh/cb8187b23648fc6584f0 to your computer and use it in GitHub Desktop.
Save ahhh/cb8187b23648fc6584f0 to your computer and use it in GitHub Desktop.
radare2 cheatsheet
Radare2 CheatSheet:
===================
? General Help for All Commands
pd [N] Print Disassembly of N Opcodes
pa jmp 0x01 Assemble Opcodes
pcp Dump Python Byte Code / C Byte Code with [pc]
iz List Strings
is List Symbols
iI List Binary Info
s [addr] Seek to Address
/c jmp Search for all /c [asm] instructions
V Visual Mode
| grep Use grep with any commands
? 0x45 Base Conversion
?v 4+4 Get Hex representation for Math Expression
?d ret Get Description of Opcode for set Architecture (set in asm.arch)
? $s Return Size of File ($s)
?r Generate Random Number [From] [To]
?p Returns Physical Address of Virtual Addr
Visual Mode Tricks:
-------------------
; Add Comment Annotation to ASM
;- Remove Comment Annotation From ASM
;! Edit comment in $EDITOR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment