zhaoxuya520/reverse-skill / skills/ida-reverse
ida-reverse
VerifiedIDA Pro 逆向分析辅助技能。当用户提到逆向、反编译、分析二进制/PE/ELF/APK/DLL/SO、破解、找密码、漏洞分析、病毒分析、firmware 固件分析,或需要分析 exe/dll/so/elf/macho/sys 等文件时,务必使用此技能。 Ensure to use this skill when the user wants to analyze any binary file, regardless of whether they explicitly mention "IDA" or "reverse engineering". This includes requests like "看看这个exe", "分析这个dll", "帮我破解", "找一下密码", "这个软件怎么注册", etc. Use the bundled scripts (scripts/start.ps1, scripts/open.ps1) for deterministic server management and file opening — do NOT write ad-hoc PowerShell commands for these operations.
| File | Kind | Size |
|---|---|---|
| LOCAL-SETUP.md | markdown | 3.3 KB |
| SKILL.md | skill md | 20.3 KB |
| references/debugger-and-auto-patch.md | markdown | 5.0 KB |
| references/ida-mcp-cheatsheet.md | markdown | 11.2 KB |
| scripts/IdaOpenHelpers.ps1 | script | 3.7 KB |
| scripts/apply-asm-patch.pyexecutable | script | 7.6 KB |
| scripts/install-autostart.ps1 | script | 2.4 KB |
| scripts/open.ps1 | script | 12.9 KB |
| scripts/recover.ps1 | script | 458 B |
| scripts/run-supervisor.py | script | 4.2 KB |
| scripts/start-gui.ps1 | script | 3.8 KB |
| scripts/start.ps1 | script | 18.4 KB |
| scripts/test-apply-asm-patch.pyexecutable | script | 3.1 KB |
| scripts/watchdog.ps1 | script | 4.6 KB |
scripts/test-apply-asm-patch.py
View on GitHub#!/usr/bin/env python3
"""Offline regression for apply-asm-patch.py plan validation (no IDA required)."""
from __future__ import annotations
import json
import subprocess
import sys
import tempfile
from pathlib import Path
SCRIPT = Path(__file__).resolve().parent / "apply-asm-patch.py"
FAILURES = 0
def run(args: list[str]) -> tuple[int, str, str]:
proc = subprocess.run(
[sys.executable, str(SCRIPT), *args],
capture_output=True,
text=True,
)
return proc.returncode, proc.stdout, proc.stderr
def expect(name: str, ok: bool, detail: str = "") -> None:
global FAILURES
if ok:
print(f"PASS {name}")
else:
FAILURES += 1
print(f"FAIL {name} {detail}")
def main() -> int:
with tempfile.TemporaryDirectory() as td:
td_path = Path(td)
good = td_path / "good.json"
good.write_text(
json.dumps(
{
"database": "sess-1",
"items": [
{"addr": "0x401050", "asm": "nop"},
{"addr": "0x401060", "asm": "jmp 0x401080"},
{"addr": "4198400", "bytes": "90 90"},
],
}
),
encoding="utf-8",
)
code, out, err = run(["--plan", str(good), "--dry-run"])
expect("valid plan dry-run", code == 0 and "validated" in out, err)
bad_addr = td_path / "bad_addr.json"
bad_addr.write_text(
json.dumps({"items": [{"addr": "not-an-addr", "asm": "nop"}]}),
encoding="utf-8",
)
code, _, err = run(["--plan", str(bad_addr), "--dry-run"])
expect("reject bad addr", code != 0 and "addr" in err, err)
both = td_path / "both.json"
both.write_text(
json.dumps({"items": [{"addr": "0x401000", "asm": "nop", "bytes": "90"}]}),
encoding="utf-8",
)
code, _, err = run(["--plan", str(both), "--dry-run"])
expect("reject asm+bytes", code != 0 and "exactly one" in err, err)
shellish = td_path / "shellish.json"
shellish.write_text(
json.dumps({"items": [{"addr": "0x401000", "asm": "nop; rm -rf /"}]}),
encoding="utf-8",
)
code, _, err = run(["--plan", str(shellish), "--dry-run"])
expect("reject shell-like asm", code != 0, err)
empty = td_path / "empty.json"
empty.write_text(json.dumps({"items": []}), encoding="utf-8")
code, _, err = run(["--plan", str(empty), "--dry-run"])
expect("reject empty items", code != 0, err)
array_form = td_path / "array.json"
array_form.write_text(
json.dumps([{"addr": "0x401000", "asm": "ret"}]),
encoding="utf-8",
)
code, out, err = run(["--plan", str(array_form), "--dry-run"])
expect("accept bare array plan", code == 0 and "validated" in out, err)
if FAILURES:
print(f"TOTAL FAIL={FAILURES}")
return 1
print("TOTAL FAIL=0")
return 0
if __name__ == "__main__":
raise SystemExit(main())
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: 471k | 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: 322k | 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: 322k | 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: 322k | Updated | Claude CodeCodex | Verified | Install |