Last active
May 13, 2019 11:50
-
-
Save pmauduit/3a81d409e2975fa546f5 to your computer and use it in GitHub Desktop.
Radare2 cheat sheet
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
encode / decode mnemonics / opcodes: | |
rasm2 -b 64 'mov dword [rbp-0x1], 0x68' | rasm2 -d -b 64 - | |
r2 ./file | |
aa | |
[analyze all] | |
i | |
[get info on the current loaded file] | |
is | |
[list symbols] | |
[email protected] | |
disassemble symbol sym.main | |
[email protected] | |
analyze function sym.main | |
[email protected] | |
disassemble function sym.main | |
afl | |
List functions | |
afn new_name old_name | |
Rename | |
agv | |
Launch the web interface | |
Opening a zipped file (jar) - lists the content | |
r2 zip://myjar.jar | |
Opening a class from the jar file | |
r2 zip://myjar.jar//org/mypackage/MyClass.class | |
Generates a shellcode, then disassembles it: | |
ragg2 -a x86 -b 64 -i exec | rasm2 -D - | |
[walk] | |
fs - list flag spaces | |
fs [flagspace] - change flag spaces | |
f - print flags | |
[Visual mode] | |
V | |
[into the visual mode] | |
p - switch between modes | |
[enter] - follow an address | |
x - follow XREF | |
Open a specific class in a JAR / ZIP file: | |
r2 zip://myJar.jar//edu/r2/blah/MyClass.class |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment