hgxszhj/https-github.com-zhaoxuya520-reverse-skill / skills/radare2
radare2
VerifiedUse this skill whenever the user wants to analyze binaries with radare2/r2 from the command line, including reverse engineering, disassembly, function analysis, strings/import inspection, patching, binary diffing, hex inspection, or r2 scripting. Also use it when the user mentions PE/ELF/Mach-O/DEX/WASM files together with CLI analysis, `rabin2`, `rasm2`, `radiff2`, `r2pipe`, or asks for radare2 command help on Windows/Linux/macOS.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 14.1 KB |
| references/cheatsheet.md | markdown | 1.6 KB |
| scripts/recon.ps1 | script | 2.6 KB |
| scripts/recon.sh | script | 2.9 KB |
references/cheatsheet.md
View on GitHub# radare2 速查表
## 基础侦察
```powershell
rabin2 -I sample.exe
rabin2 -S sample.exe
rabin2 -i sample.exe
rabin2 -E sample.exe
rabin2 -zz sample.exe
```
## 进入交互
```powershell
r2 sample.exe
```
```text
aaa
afl
iz
iS
is
s entry0
pdf
q
```
## 字符串和引用
```text
iz~http
iz~error
axt <addr>
s <addr>
pdf
```
## 常用查看
```text
px 64
pd 20
psz
pxa
```
## patch
```powershell
r2 -w sample.exe
```
```text
s 0x401000
wa nop
wx 9090
wq
```
## 非交互模式
```powershell
r2 -A -q -c "afl;iz;ii;q" sample.exe
```
## 其他工具
### rasm2
```powershell
rasm2 -d "9090"
rasm2 -a x86 -b 64 "xor eax, eax"
```
### radiff2
```powershell
radiff2 old.exe new.exe
radiff2 -C old.exe new.exe
```
### rahash2
```powershell
rahash2 -a md5 sample.exe
rahash2 -a sha256 sample.exe
```
### rax2
```powershell
rax2 0x401000
rax2 4198400
rax2 -s hello
```
## radare2-skills 生态命令
### r2xsql 查询示例
```powershell
r2xsql -s sample.exe -q "SELECT name, module FROM imports WHERE name LIKE '%Crypt%'"
r2xsql -s sample.exe -q "SELECT addr, content FROM strings WHERE content LIKE '%http%'"
```
### r2http / r2mcp 会话
```powershell
r2 -N -e http.bind=localhost -e http.port=9393 -e http.sandbox=false -q -c=h sample.exe
curl.exe -sS --data-binary 'aaa' http://127.0.0.1:9393/cmd
curl.exe -sS --data-binary 'aflj' http://127.0.0.1:9393/cmd
```
### radius2 符号执行
```powershell
radius2 -p sample.exe -s stdin 96 -X Incorrect
radius2 -p sample.exe -s flag 256 -A . flag -B Correct -X Wrong -j
```
### r2pm 插件安装
```powershell
r2pm -ci r2ghidra
r2pm -ci r2dec
r2pm -l
```
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 469k | Updated | Claude CodeCodex | Verified | Install |
| diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness. | Stars: 321k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 321k | Updated | Claude CodeCodex | Verified | Install |
| executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available | Stars: 321k | Updated | Claude CodeCodex | Verified | Install |