offensive-tools/re/radare2/SKILL.md
CLI reverse engineering framework with disassembly, debugging, scripting, and binary patching. Use when analyzing binaries headlessly, scripting RE tasks, patching executables, or working in resource-constrained environments.
npx skillsauth add aeondave/malskill radare2Install this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
CLI RE framework — disassemble, debug, patch, and script binary analysis.
# Open binary (read-only)
r2 ./binary
# Analyze all (auto-analysis)
> aaa
# List functions
> afl
# Disassemble function
> pdf @ main
# Print strings
> iz
# Quit
> q
| Command | Purpose |
|---------|---------|
| aaa | Full auto-analysis |
| afl | List all functions |
| pdf @ FUNC | Disassemble function |
| s ADDR | Seek to address |
| iz | Print strings in binary |
| iS | List sections |
| ii | List imports |
| px N @ ADDR | Hex dump N bytes at ADDR |
| ood | Reopen in debug mode |
| dc | Continue execution |
| dr | Show registers |
| VV | Visual graph mode |
| / | Search bytes/strings |
Quick static triage:
r2 malware.exe
> aaa; afl; iz; ii
> pdf @ sym.main
Patch a jump:
r2 -w ./binary
> s 0x401234 # seek to instruction
> wa jmp 0x401300 # write assembly
> q
Script with r2pipe (Python):
import r2pipe
r2 = r2pipe.open('./binary')
r2.cmd('aaa')
print(r2.cmd('afl'))
| File | When to load |
|------|--------------|
| references/ | r2pipe scripting and debugging shortcuts |
development
Auth/lab ref: Unicorn Engine CPU-only emulation for shellcode, decryptors, custom VM handlers, instruction tracing, memory hooks, and register-level experiments.
development
Auth/lab ref: Renode board and SoC simulation for MCU/RTOS firmware, UART/GPIO/peripheral modeling, GDB remote debugging, REPL platforms, and RESC scripts.
development
Auth/lab ref: Qiling OS-layer binary emulation for PE/ELF/Mach-O/UEFI/shellcode with rootfs, syscall/API hooks, filesystem mapping, and runtime patching.
databases
Auth/lab ref: QEMU user-mode and full-system emulation for cross-arch binaries, firmware, kernels, disks, serial consoles, networking, and GDB stubs.