用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/Aradotso/mcp-skills --skill ida-no-mcp-decompiler-exporter命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
MCP server that enables LLMs to query and analyze PostgreSQL databases through a controlled interface with read/write capabilities.
Use local-mcp to enable AI agents to safely read, write, and execute commands on local files with sandboxed permissions
Run MCPX MCP Runtime to connect AI clients to local development environments with workspace management, source control, changesets, and terminal execution
基于 SOC 职业分类
正在显示 SKILL.md
| name | ida-no-mcp-decompiler-exporter |
| description | Export IDA Pro decompiled code and memory for AI-assisted reverse engineering |
| triggers | ["export IDA decompiled code for AI analysis","how do I use IDA NO MCP plugin","export binary functions from IDA Pro","setup IDA decompiler export plugin","extract all functions from IDA database","export IDA memory dumps and strings","configure IDA NO MCP exporter","analyze binary with AI using IDA export"] |
Skill by ara.so — MCP Skills collection.
IDA-NO-MCP is a plugin for IDA Pro that exports decompiled code, disassembly, strings, imports, exports, and memory dumps into AI-friendly formats. Instead of complex MCP integrations, it generates organized source files that can be directly analyzed by AI IDEs like Cursor or Claude Code.
.c file with metadata (address, callers, callees).asm) when decompilation failsCopy INP.py to your IDA plugins directory:
%APPDATA%\Hex-Rays\IDA Pro\plugins\~/.idapro/plugins/Restart IDA Pro
Use the plugin:
Ctrl-Shift-E (quick export)Edit → Plugins → Export for AIRun INP.py directly from IDA's script window (Alt-F7) or via command line:
# From IDA script window
execfile('/path/to/INP.py')
After export, the IDB directory contains:
your_binary.idb/
├── decompile/ # Decompiled C code (.c files)
├── disassembly/ # Fallback assembly (.asm files)
├── memory/ # Memory dumps (hexdump format)
├── strings.txt # All strings with addresses
├── imports.txt # Import table
├── exports.txt # Export table
├── disassembly_fallback.txt # List of fallback functions
├── decompile_failed.txt # Complete failures
└── decompile_skipped.txt # Skipped library/invalid functions
Each exported function includes metadata headers:
/*
* func-name: sub_401000
* func-address: 0x401000
* export-type: decompile
* callers: 0x402000, 0x403000
* callees: 0x404000, 0x405000
*/
__int64 __fastcall sub_401000(__int64 a1, int a2)
{
// Decompiled code here
return result;
}
For disassembly fallback (.asm files):
/*
* func-name: sub_401000
* func-address: 0x401000
* export-type: disassembly
* callers: 0x402000, 0x403000
* callees: 0x404000, 0x405000
*/
sub_401000 proc near
push rbp
mov rbp, rsp
; ... assembly code
ret
sub_401000 endp
import idaapi
import idc
import idautils
import ida_hexrays
import ida_funcs
import os
def export_decompiled_code(func_ea):
"""Export decompiled code for a function"""
try:
# Get function name
func_name = idc.get_func_name(func_ea)
# Get callers and callees
callers = [hex(xref.frm) for xref in idautils.XrefsTo(func_ea, 0)]
callees = []
for item_ea in idautils.FuncItems(func_ea):
for xref in idautils.XrefsFrom(item_ea, 0):
if xref.type in [ida_xref.fl_CN, ida_xref.fl_CF]:
callees.append(hex(xref.to))
# Try decompilation
cfunc = idaapi.decompile(func_ea)
if cfunc:
decompiled = str(cfunc)
# Build metadata header
header = f"""/*
* func-name: {func_name}
* func-address: {hex(func_ea)}
* export-type: decompile
* callers: {', '.join(callers) if callers else 'none'}
* callees: {', '.join(callees) if callees else 'none'}
*/
"""
return header + decompiled
Exception e:
()
def export_memory_segment(seg_ea, output_dir):
"""Export memory segment as hexdump"""
seg = idaapi.getseg(seg_ea)
if not seg:
return
seg_start = seg.start_ea
seg_end = seg.end_ea
seg_size = seg_end - seg_start
max_size = 1024 * 1024 # 1MB chunks
chunk_num = 0
while seg_start < seg_end:
chunk_end = min(seg_start + max_size, seg_end)
filename = f"{hex(seg_start)}--{hex(chunk_end)}.txt"
with open(os.path.join(output_dir, filename), 'w') as f:
addr = seg_start
while addr < chunk_end:
# Read 16 bytes per line
line_bytes = []
ascii_chars = []
for i in range(16):
if addr + i >= chunk_end:
break
byte = idc.get_wide_byte(addr + i)
line_bytes.append(f"{byte:02X}")
ascii_chars.append(chr(byte) if 32 <= byte <= 126 else '.')
# Format: ADDRESS | HEX BYTES | ASCII
hex_part = ' '.join(line_bytes).ljust(48)
ascii_part = ''.join(ascii_chars)
f.write()
addr +=
seg_start = chunk_end
chunk_num +=
def export_strings(output_file):
"""Export all strings with metadata"""
with open(output_file, 'w', encoding='utf-8') as f:
strings = idautils.Strings()
for s in strings:
# Format: address, length, type, content
str_type = {
0: "ASCII",
1: "UTF-16LE",
2: "UTF-32LE"
}.get(s.strtype, "UNKNOWN")
f.write(f"{hex(s.ea)} | len={s.length} | {str_type} | {str(s)}\n")
After exporting, open the IDB directory in your AI IDE:
.c files and understand function relationships via caller/callee metadataCreate additional directories alongside exports:
your_binary.idb/
├── decompile/ # Auto-generated
├── docs/ # Your reverse engineering notes
├── codes/ # Frida scripts, exploits, tools
└── apk/ # APK decompilation (for Android)
AI tools will index all content for comprehensive analysis.
# Run export from IDA Python script
import INP
# Trigger export programmatically
INP.main() # Runs the full export process
# Or customize export paths
output_dir = "/custom/path/output"
INP.export_all(output_dir)
The plugin works out-of-the-box with defaults but can be customized by editing INP.py:
# Skip library functions (default: True)
SKIP_LIB_FUNCS = True
# Maximum memory chunk size in bytes
MAX_CHUNK_SIZE = 1024 * 1024 # 1MB
# Progress reporting interval
PROGRESS_INTERVAL = 100 # Report every 100 functions
# Export types to include
EXPORT_DECOMPILE = True
EXPORT_DISASM_FALLBACK = True
EXPORT_MEMORY = True
EXPORT_STRINGS = True
EXPORT_IMPORTS = True
EXPORT_EXPORTS = True
INP.py is in the correct plugins directorydecompile_failed.txt for specific error messagesMAX_CHUNK_SIZE in the scriptThe plugin automatically sanitizes filenames:
/\:*?"<>| with underscoresmain_401000.c)# After export, ask AI in your IDE:
"Analyze all functions in decompile/ for buffer overflow vulnerabilities"
"Find all memcpy/strcpy calls and check bounds validation"
"Trace the execution flow starting from entry point at 0x401000"
"Identify anti-debugging checks and obfuscation techniques"
"Extract C2 communication URLs from strings.txt and related functions"
"Find packet parsing functions using imports.txt and decompiled code"
"Document the binary protocol structure based on recv/send call patterns"