/agentic-awesome-skills:radare2from agentic-awesome-skills
Drives the radare2 CLI for binary reconnaissance, disassembly, analysis, function locating, export, and lightweight patching (r2/rabin2/rasm2/radiff2) without a GUI.
Ships in agentic-awesome-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
This catalog copy contains the inline guidance below, but does not include the following supporting paths. They are external prerequisites, not bundled files:
<support-root>/scripts/recon.ps1reverse-engineering/references/re-agent-workflow.mdObtain the required material from the declared upstream source, or from a user-provided installation of that source. Resolve each path relative to that installation, inspect its contents, and verify any applicable license and execution prerequisites. Do not run a command or claim a referenced procedure was followed until its required file exists. Do not fabricate the missing scripts or treat an unrelated file with the same name as equivalent. Independent steps fully documented here can proceed within the user’s authorized scope; report any dependent step as unavailable.
面向 radare2 CLI 的二进制分析技能。重点是直接用命令行完成侦察、分析、定位、导出和轻量修改,不依赖 GUI。
当用户有这些意图时应优先使用本 skill:
r2 / radare2 分析 exe、dll、so、elf、apk、dex、wasm 等文件rabin2、rasm2、radiff2、rahash2、rax2 怎么用radare2 批处理命令、-c 自动化命令、或 r2pipe 脚本如果用户明确要 GUI 逆向、Hex-Rays 风格伪代码、或 IDA 工作流,优先考虑 ida-reverse。如果是网页 JS 逆向,优先考虑 reverse-engineering。
先不要假设 r2 可用。先检查:
r2 -v
rabin2 -v
如果未安装,再检查常见安装位置或提示安装。
Windows 常见可执行文件:
radare2.exerabin2.exerasm2.exeradiff2.exerahash2.exerax2.exer2pm.exe本副本仅包含 references/cheatsheet.md;recon.ps1 不在包内,不能声称已提供或执行。
scripts/recon.ps1标准侦察脚本,适合先做第一轮概况分析。会输出:
r2 -A 自动分析摘要调用方式:
powershell -File "<skill-root>\radare2\scripts\recon.ps1" -TargetPath "C:\path\to\sample.exe"
如果需要附带 r2 自动分析:
powershell -File "<skill-root>\radare2\scripts\recon.ps1" -TargetPath "C:\path\to\sample.exe" -RunAnalysis
references/cheatsheet.md当需要更多命令细节、常见场景模板、或要快速回忆语法时,读取这个速查表,而不是凭记忆硬猜。
.sdb 缺失告警某些 PE 文件在 rabin2 侦察时,可能出现类似下面的告警:
ERROR: Cannot find ...\share\format\dll\*.sdb
如果主体输出仍然正常返回,通常不影响基础侦察结论,先继续分析即可。不要因为这类附带告警就直接判定分析失败。
不要一上来就全量自动分析。先用轻量命令确认文件类型、架构、入口点、字符串、导入表,再决定是否做 aaa、aaaa 或定向分析。
radare2 命令非常多,用户通常只需要最短路径:
rabin2 -Irabin2 -zrabin2 -i / rabin2 -Er2 <file> 后再执行局部命令如果用户要 patch 二进制:
r2 <file>r2 -w <file> 或会话中 oo+适合刚拿到一个二进制文件时。
对 PE/ELF/Mach-O 等含导入表的二进制,MUST 先完成导入表检查并落成 Evidence,再进入函数级分析或动态步骤:
rabin2 -i <sample>(或 recon.ps1 输出中的 imports 段);DLL/SYS 另 MUST rabin2 -E 并记 E-exportsE-imports 或 E-triage-imports),至少包含:
repro_command)E-iat-repair-fail 后转动态 API 断点;禁止在静态 IAT 上无限死磕(见 reverse-engineering/references/re-agent-workflow.md §1.2)未记录导入表(或合法等价锚点 / IAT 失败旁路)Evidence 前:MUST NOT 声称「基础侦察完成」,MUST NOT 进入工作流 2+ 的深挖结论。
仅当已取得并审查外部脚本时运行;否则使用下面的手动命令:
powershell -File "<skill-root>\radare2\scripts\recon.ps1" -TargetPath "sample.exe"
如果只需要手动最小命令,则使用:
rabin2 -I sample.exe
rabin2 -z sample.exe
rabin2 -i sample.exe
rabin2 -E sample.exe
关注点:
r2 sample.exe
进入后常用:
aaa # 常规自动分析
afl # 列出函数
iz # 列出字符串
iS # 列节区
is # 列符号
s entry0 # 跳到入口点
pdf # 反汇编当前函数
VV # 进入可视化模式(如果终端适合)
q # 退出
说明:
aaa,不要一开始就用更重的 aaaaafl~main
afl~sym.
iz~http
iz~error
axt <addr>
思路:
main、入口点、字符串引用入手axt 查谁引用了某个字符串或地址s <addr>、pdfpx 64 # 当前地址起 64 字节十六进制
pd 20 # 反汇编 20 条指令
psz # 读取当前地址字符串
pxa # 更友好的十六进制视图
仅当用户明确要求修改文件时使用:
r2 -w sample.exe
进入后例如:
s 0x401000
wa nop
wa jmp 0x401050
q
常见写操作:
wa <asm>:写汇编wx <hex>:写原始字节q:退出;写模式中的写操作已修改文件,不是事务提交修改前最好先备份原文件。如果用户没提备份,至少提醒一次。
适合一次性输出结果:
r2 -A -q -c "afl;iz;ii;q" sample.exe
常用参数:
-A:启动时自动分析-q:安静模式-c:执行命令串如果命令很多,优先整理成易读顺序,不要塞入难以维护的超长串。
先用本文的手动侦察命令;外部脚本需要独立取得并审查。
rabin2适合静态信息提取:
rabin2 -I sample.exe # 基本信息
rabin2 -S sample.exe # 节区
rabin2 -s sample.exe # 符号
rabin2 -i sample.exe # 导入
rabin2 -E sample.exe # 导出
rabin2 -z sample.exe # 字符串
rabin2 -zz sample.exe # 更详细字符串
rasm2适合快速汇编/反汇编:
rasm2 -d "9090"
rasm2 -a x86 -b 64 "xor eax, eax"
radiff2适合对比两个二进制:
radiff2 old.exe new.exe
radiff2 -C old.exe new.exe
rahash2适合算哈希:
rahash2 -a md5 sample.exe
rahash2 -a sha256 sample.exe
rax2适合进制和编码转换:
rax2 0x401000
rax2 4198400
rax2 -s hello
遇到未知样本时,按这个顺序做:
rabin2 -I 看格式、架构、入口点rabin2 -z 看字符串rabin2 -i 看导入函数 — MUST + Evidence(硬门,见工作流 1)r2(仅当步骤 3 的 Evidence 已落盘)aaa,再 afl / iz / pdf这个顺序的好处是噪音低,能尽快建立方向感。步骤 3 不是可选优化,是进入深挖前的硬门。
r2,可能是 PATH 刚更新,开一个新终端再试当用户不是只要命令,而是要你实际分析文件时:
不要只罗列命令而不解释为什么这么做。
用户:帮我看看这个 exe 干了什么,用 radare2 就行
处理方式:
rabin2 -I/-z/-ir2aaa、afl、pdf 深挖入口和关键字符串引用用户:这个报错字符串在哪个函数里触发的
处理方式:
iz~关键字 找字符串地址axt <addr> 找引用s <addr> 后 pdf用户:把这个 jne 改成 je
处理方式:
wa je <target> 或直接 wxradare2 当成只有 aaa 一个命令的工具rabin2 -i / recon imports):未写入 Evidence 不得进入下一步;用户要求重做导入表时禁止改做其他步骤E-iat-repair-fail 后转动态;禁止 64 位样本只用 ImportRECreverse-engineering 的范围references/cheatsheet.mdscripts/recon.ps1radare2-skills 项目(radareorg/radare2-skills)提供了更完整的生态工具和工作流:
使用策略:
r2xsql、r2mcp、r2http、radius2、r2pm、rabin2、rasm2、radiff2、rahash2、rax2 时,优先路由到本 skill(radare2/SKILL.md)tool-index 校验、Evidence 导入、写模式确认r2xsql -s <file> -q "SELECT ..."curl.exe -sS --data-binary 'aaa' http://127.0.0.1:9393/cmdradius2 -p <binary> ...r2pm -ci <plugin>本 skill 保持原有硬门禁和证据链完整性,不允许跳过任何授权或 Evidence 步骤。
上游入口: skills/SKILL.md(总控)、routing.md
上游备选: ida-reverse/(需要反编译/伪代码时升级到 IDA)
下游出口:
reverse-engineering/tools-dynamic.md(Frida/GDB)ida-reverse/ida-reverse/(IDA 的 xref 更强大)同级关联模块: ida-reverse/(互补:r2 侦察快,IDA 反编译深)
本副本没有入口脚本或自动安装器。缺少工具时报告前提,先确认所需平台与版本;经用户授权后从 https://github.com/radareorg/radare2/releases 取得并校验对应发布包。不得声称安装已完成或自动运行未随包提供的 bootstrap 脚本。
tool-index 使用了真实工具路径?Adapted from zhaoxuya520/reverse-skill (MIT).
Analyze only authorized files in an isolated environment; parsers can contain vulnerabilities even during static inspection. Never execute or dynamically debug unknown samples on the host. Empty imports alone do not prove packing or dynamic loading; report uncertainty and keep unavailable dynamic steps blocked. Patch a verified copy, record its hash/offset/architecture, ensure replacement instruction lengths fit and re-disassemble; patches may invalidate signatures. Never start the HTTP command server or install plugins without specific authorization and a reviewed local-only configuration. Upstream tool-index, RULES and dynamic workflows are external and unavailable in this bundle.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
binary-analysis, reverse-engineering, disassembly, radare2, cli-tools
Generated from the plugin's indexed repository (sickn33/agentic-awesome-skills) — no native marketplace selected
npx claudepluginhub p/sickn33-antigravity-awesome-skills3,195 skills in this plugin
/007Security audit, hardening, threat modeling (STRIDE/PASTA), Red/Blue Team, OWASP checks, code review, incident response, and infrastructure security for any project./00-andruia-consultantUsar al iniciar o mejorar un proyecto de IA: diagnostica código y restricciones, propone skills existentes y redacta tareas y un plan de implementación en español./10-andruia-skill-smithUsar para crear o mejorar una skill de Andru.ia: define entradas y resultados, redacta SKILL.md con ejemplos y límites, valida la estructura y prepara una PR.3 plugins in 2 repositories ship this exact skill · first indexed Oct 23, 2026
Other plugins' skills for the same job