rev-idapython

仓库创建 2026年7月8日最近提交 4 天前SkillHot 收录 1 天前
▸ 精选理由

方便生成IDA自动化脚本,提升逆向效率。

▸ 风险提示

依赖IDA环境和许可,自动化操作可能修改IDB文件。

这个 Skill 做什么

提供IDAPython/IDALib脚本示例以进行静态或无人值守分析。

提供 IDAPython 和 IDALib 的实用脚本示例,覆盖 IDA GUI 交互脚本和无界面的 headless 分析、IDB 操作、寄存器/内存处理、函数/指令遍历及 Hex‑Rays 反编译 API 使用。适合需要写 IDAPython 插件、用 IDALib 批处理二进制或调试/自动化分析时查用例。特点是面向逆向实战的可复用代码片段,能直接改造到分析流程中。

▸ 展开 SKILL.md 英文原文

IDAPython and IDALib script reference for reverse engineering. Activate when the user needs to write IDAPython scripts in IDA, use IDALib for headless analysis, operate on IDB databases, debug with IDA, manipulate memory/registers, traverse functions/blocks/instructions, work with Hex-Rays decompiler API, handle obfuscation, or batch-process binaries.

开发编程IDAIDAPython脚本化分析通用
243
Stars
13
Forks
40
仓库内 Skill
积累中
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/OpenAisec/Miko/main/data/skills/rev-idapython/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/OpenAisec/Miko/main/data/skills/rev-idapython/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# rev-idapython - IDAPython / IDALib Script Reference

IDAPython script snippets for IDA interactive use and IDALib headless analysis. Use as reference when generating IDAPython code.

- **IDAPython**: scripts run inside IDA GUI (Script Command, plugin, or IDC console)
- **IDALib**: headless mode introduced in IDA 9.0 — run analysis scripts without opening the IDA GUI

---

## Common API

### Register Operations

```python
idc.get_reg_value('rax')
idaapi.set_reg_val("rax", 1234)
```

### Debug Memory Operations

```python
idc.read_dbg_byte(addr)
idc.read_dbg_memory(addr, size)
idc.read_dbg_dword(addr)
idc.read_dbg_qword(addr)
idc.patch_dbg_byte(addr, val)
idc.add_bpt(0x409437)          # add
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有