load without any analysis (file header at offset 0x0): r2 -n /path/to/file
- analyze all:
aa
- show sections:
iS
- list functions:
afl
- list imports:
ii
- list entrypoints:
ie
- seek to function:
s sym.main
.global _start | |
.section .data | |
message: .ascii "Hello, World!\n" | |
len = . - message | |
.section .text | |
_start: | |
movq $1, %rax # sys_write | |
movq $1, %rdi # stdout |