radare2
Skill8 starsChanged 6 months agoApache-2.0View on GitHub
Expertise in reverse engineering binaries using radare2 (r2). Use this to analyze executables (ELF, PE, Mach-O), decompile code, disassemble code, find functions, extract exports/imports, extract strings, patch binaries, and debug programs.
11 other projects use a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- Masih-0x3/agent-skillstheir own version, first seen Nov 29, 2026
- rogue-dev-studio/ai-agents-roguetheir own version, first seen Nov 29, 2026
- zhaoxuya520/reverse-skilltheir own version, first seen Nov 14, 2026
- lza6/claw-code-tingfengtheir own version, first seen Nov 1, 2026
- lushun2014/lushibo-skillstheir own version, first seen Oct 15, 2026
- 2233admin/reverse-skill-evolvertheir own version, first seen Oct 15, 2026
Used with
Projects with it also use ida-reverse, attack-chain and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
DorianGalloSkillida-reverse
IDA Pro 逆向分析辅助技能。当用户提到逆向、反编译、分析二进制/PE/ELF/APK/DLL/SO、破解、找密码、漏洞分析、病毒分析、firmware 固件分析,或需要分析 exe/dll/so/elf/macho/sys 等文件时,务必使用此技能。
Also in 6 projects that use this
DorianGalloSkillattack-chain
Also in 5 projects that use this
Roshu18Skillpentest-tools
Tool selection policy for BearStrike based on target type, scan risk, and signal strength.
Also in 5 projects that use this
zhaoxuya520Skillghidra-reverse
Use for free/open reverse engineering with Ghidra (headless or GUI), including decompile, cross-refs, and optional Ghidra MCP workflows when IDA is unavailable.
Also in 3 projects that use this
- +8 more from DorianGallo
Other versions11 projects use a version of this.
Word for word · 0
None found.
Edited · 1
- dnakov/skills★ 285% same
Wrote their own version · 10
- zhaoxuya520/reverse-skill-private★ 45ksame name
- zhaoxuya520/reverse-skill★ 45ksame name
- haikow/claude-reverse-skills★ 109same name
- z91772524-ai/pojia-next-mac★ 39same name
- 2233admin/reverse-skill-evolver★ 26same name
- lza6/claw-code-tingfeng★ 5same name
- DorianGallo/reverse-skill★ 2same name
- rogue-dev-studio/ai-agents-rogue★ 2same name
- lushun2014/lushibo-skills★ 0same name
- Masih-0x3/agent-skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository4 other files it gives its agents.
- deobfuscationSkill
- fridaSkill
- r2fridaSkill
- unreal5Skill
The file
Show its rules and text
We split this skill into the rules it gives an agent
15 rules. 0 are common, 3 are distinctive, and 12 are very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
12
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 10
When reviewing code, follow this workflow:
- Very specific: line 12
Get binary information: Use i to get binary information.
- Very specific: line 20
DO NOT run list_sessions to get a valid session.
- Very specific: line 29
Get the disssassembly: Use pdf to get the function disassembly.
- Distinctive: line 33
Always use r2ghidra to decompile a function.
- Very specific: line 38
Get the decompiled code: Use pdg to get the decompiled code using r2Ghidra.
- Distinctive: line 164
Start r2 with HTTP server, then send commands via curl:
- Very specific: line 212
Use aa instead of aaa for faster initial analysis
- Very specific: line 216
Use rabin2 for quick info without loading into r2
- Very specific: line 273
Use e asm.syntax=att for AT&T syntax
- Very specific: line 278
Check for Thumb mode with e asm.bits=16
- Very specific: line 286
Use ? after any command for help: pd?, a?, s?
- Very specific: line 289
Use @@ for iteration: pdf @@ fcn.*
- Very specific: line 290
Use ~ for grep: afl~main
- Very specific: line 291
Use ~: for column selection: afl~:0
“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Radare2
Radare2 (r2) is a complete framework for reverse engineering and binary analysis.
When reviewing code, follow this workflow:
- Analyze: Analyze the binary using
aato identify all the function prologues andaaeto analyze the binary using emulation. - Get binary information: Use
ito get binary information. - Get all the imports: Get all binary imports using
ii. - Get all the exports: Get all binary exports using
iE. - Get the function list: Get function list using
afl. - Get all binary strings: Get all binary strings using
iz.
Quick Start
- DO NOT run
list_sessionsto get a valid session. INSTEAD use userun_commandto run commandito get binary information to verify there is a valid r2 session opened using r2mcp. - You MUST always use r2mcp to get a valid session. DO NOT open new r2 instances.
Dissassembly procedure
To get the dissassembly of a function:
- Seek: Seek to the beginning of the target function.
- Analyze: Analyze the function using
af. - Get the disssassembly: Use
pdfto get the function disassembly.
Decompilation procedure
Always use r2ghidra to decompile a function.
To get the decompilation of a function:
- Seek: Seek to the beginning of the target function.
- Analyze: Analyze the function using
af. - Get the decompiled code: Use
pdgto get the decompiled code using r2Ghidra. capture the output as the RAW block. Do not alter spacing, names, or formatting.
Essential Concepts
- Seek:
smoves the cursor (address) and most commands operate at the current seek. - Analysis:
aacreates functions, basic blocks, xrefs, types, etc. - Flags: r2 names addresses (
f,fs,f~...) — strings, functions, symbols show up as flags. - Grep/filter: append
~pattern to filter output quickly. Use~+to do it case-insensitive. - JSON output: append
jat the end of any command for JSON output (great for scripts):ij,aflj,izj.
Essential Commands
Navigation & Analysis
| Command | Description |
aaa | Analyze all (functions, refs, calls) |
afl | List all functions |
s addr | Seek to address |
s main | Seek to main function |
pdf | Print disassembly of current function |
pd 20 | Print 20 instructions |
Information Gathering
| Command | Description |
i | File information |
ie | Entrypoints |
iS | Sections |
ii | Imports |
iE | Exports |
iz | Strings in data sections |
izz | All strings in binary |
Cross-References
| Command | Description |
axt addr | Find xrefs to address |
axf addr | Find xrefs from address |
afx | Xrefs in current function |
Visual Modes
| Command | Description |
V | Visual mode |
VV | Graph mode |
v | Visual panels |
Debugging
| Command | Description |
db addr | Set breakpoint |
dc | Continue execution |
ds | Step instruction |
dso | Step over |
dr | Show registers |
dm | Memory maps |
Searching
| Command | Description |
/x 9090 | Search hex bytes |
/ string | Search string |
/R pattern | Search ROP gadgets |
/c opcode | Search assembly pattern |
Writing & Patching
| Command | Description |
wa nop | Write assembly at current position |
wx 90 | Write hex bytes |
wao nop | Write opcode (replaces instruction) |
Common Workflows
Analyze Unknown Binary
r2 -A binary
> i # Basic info
> iS # Check sections
> afl # List functions
> s main # Go to main
> pdf # DisassembleFind Interesting Strings
r2 binary
> izz~password # Search for "password" in strings
> izz~flag # Search for "flag"
> axt @@ str.* # Find xrefs to all stringsTrace Function Calls
r2 -A binary
> afl~sym. # List imported functions
> axt sym.strcmp # Find where strcmp is called
> s [address]
> pdfPatch Binary
r2 -w binary
> s 0x401000 # Seek to instruction
> pd 1 # View current instruction
> wa jmp 0x401050 # Patch with jump
> wao nop # Or NOP it outDebug Session
r2 -d binary
> aaa
> db main # Break at main
> dc # Run
> dr # View registers
> ds # Step
> px 32 @ rsp # View stackPersistent Sessions (Large Binaries)
For large binaries, avoid re-analyzing on every command. Use one of these approaches:
Option 1: r2 HTTP Server
Start r2 with HTTP server, then send commands via curl:
# Terminal 1: Start server (keeps session alive)
r2 -q -c 'aaa; =h 9090' binary
# Terminal 2+: Send commands without re-analyzing
curl -s "http://localhost:9090/cmd/afl"
curl -s "http://localhost:9090/cmd/pdf%20@%20main"
curl -s "http://localhost:9090/cmd/axt%200x401000"Option 2: r2pipe with Persistent Process
import r2pipe
r2 = r2pipe.open("binary")
r2.cmd("aaa") # Analyze once
# Now run many commands on same session
print(r2.cmd("afl"))
print(r2.cmd("pdf @ main"))
print(r2.cmd("izz~flag"))
# Session stays open until:
r2.quit()Option 3: Projects (Save/Restore Analysis)
r2 binary
> aaa # Analyze (slow)
> Ps myproject # Save project
> q
# Later, restore instantly:
r2 -p myproject binary
> afl # No re-analysis neededOption 4: Named Pipe
# Create pipe and start r2
mkfifo /tmp/r2pipe
r2 -q -i /tmp/r2pipe binary &
# Send commands
echo "aaa" > /tmp/r2pipe
echo "afl" > /tmp/r2pipeLarge Binary Tips
- Use
aainstead ofaaafor faster initial analysis - Limit analysis depth:
e anal.depth=5 - Analyze only specific functions:
af @ 0x401000 - Skip analysis entirely:
r2 -n binarythen analyze on-demand - Use
rabin2for quick info without loading into r2
Non-Interactive Analysis
For one-off commands, use r2 with -q (quiet) and -c:
# List all functions
r2 -q -c 'aaa; afl' binary
# Disassemble main
r2 -q -c 'aaa; s main; pdf' binary
# Get strings containing "flag"
r2 -q -c 'izz~flag' binary
# Get imports
r2 -q -c 'ii' binary
# Analyze and output JSON
r2 -q -c 'aaa; aflj' binary | jq .Companion Tools
rabin2 - Binary Info
rabin2 -I binary # File info
rabin2 -z binary # Strings
rabin2 -i binary # Imports
rabin2 -e binary # Entrypoints
rabin2 -S binary # Sectionsrasm2 - Assembler/Disassembler
rasm2 -a x86 -b 64 'nop' # Assemble
rasm2 -a x86 -b 64 -d '90' # Disassemble
rasm2 -a arm -b 32 'mov r0, 1' # ARM assemblyrahash2 - Hashing
rahash2 -a md5 binary
rahash2 -a sha256 binary
rahash2 -a all binaryrafind2 - Pattern Search
rafind2 -x 4141 binary # Find hex pattern
rafind2 -s "flag" binary # Find stringArchitecture-Specific Notes
x86/x64
- Use
e asm.syntax=attfor AT&T syntax - Common calling conventions: cdecl, fastcall, System V AMD64
ARM
e asm.arch=armande asm.bits=32or64- Check for Thumb mode with
e asm.bits=16
MIPS
e asm.arch=mips- Big/little endian:
e cfg.bigendian=true/false
Tips
- Use
?after any command for help:pd?,a?,s? - Append
jfor JSON output:aflj,ij,izj - Append
qfor quiet output:aflq - Use
@@for iteration:pdf @@ fcn.* - Use
~for grep:afl~main - Use
~:for column selection:afl~:0 - Save project with
Ps nameand load withPo name
See references/REFERENCE.md for advanced usage.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

