hgxszhj/https-github.com-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 | 19.6 KB |
| references/ida-mcp-cheatsheet.md | markdown | 11.0 KB |
| scripts/IdaOpenHelpers.ps1 | script | 3.7 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/watchdog.ps1 | script | 4.6 KB |
scripts/start-gui.ps1
View on GitHub<#
.SYNOPSIS
Launch portable IDA Pro GUI (with MCP plugin). Prefer this when headless idalib license fails.
.DESCRIPTION
1. Resolve IDADIR
2. Optionally open a binary path
3. Start IDA GUI so the ida_mcp plugin can autostart HTTP on 127.0.0.1:13337
Usage:
powershell -File start-gui.ps1
powershell -File start-gui.ps1 -Path C:\target.exe
#>
param(
[string]$Path,
[string]$IdaDir,
[switch]$UsePortableLauncher
)
$ErrorActionPreference = 'Stop'
function Test-IdaInstallDir {
param([string]$Candidate)
if ([string]::IsNullOrWhiteSpace($Candidate)) { return $false }
if (-not (Test-Path -LiteralPath $Candidate)) { return $false }
$idaExe = Join-Path $Candidate 'ida.exe'
$idaDll = Join-Path $Candidate 'ida.dll'
return (Test-Path -LiteralPath $idaExe) -or (Test-Path -LiteralPath $idaDll)
}
if ([string]::IsNullOrWhiteSpace($IdaDir)) {
if (-not [string]::IsNullOrWhiteSpace($env:IDADIR) -and (Test-IdaInstallDir $env:IDADIR)) {
$IdaDir = $env:IDADIR
} else {
$persisted = [Environment]::GetEnvironmentVariable('IDADIR', 'User')
if (Test-IdaInstallDir $persisted) {
$IdaDir = $persisted
} else {
$candidates = @(
'C:\Program Files\IDA Professional 9.4',
'C:\Program Files\IDA Pro 9.4',
'C:\Program Files\IDA Pro',
(Join-Path $env:USERPROFILE 'Tools\IDAPro94'),
(Join-Path $env:USERPROFILE 'Tools\IDA Pro 9.4\App\IDA Pro'),
(Join-Path ([Environment]::GetFolderPath('Desktop')) 'IDA Pro 9.4\App\IDA Pro'),
(Join-Path $env:USERPROFILE 'Desktop\IDA Pro 9.4\App\IDA Pro')
)
$IdaDir = $candidates | Where-Object { Test-IdaInstallDir $_ } | Select-Object -First 1
}
}
}
if (-not (Test-IdaInstallDir $IdaDir)) {
Write-Output 'ERR:IDADIR_not_found'
exit 1
}
$env:IDADIR = [System.IO.Path]::GetFullPath($IdaDir)
$portableRoot = Split-Path (Split-Path $env:IDADIR -Parent) -Parent
# Desktop\IDA Pro 9.4\App\IDA Pro -> Desktop\IDA Pro 9.4
if ((Split-Path $env:IDADIR -Leaf) -eq 'IDA Pro') {
$maybe = Split-Path (Split-Path $env:IDADIR -Parent) -Parent
if (Test-Path (Join-Path $maybe 'Launch-IDA-Pro.cmd')) {
$portableRoot = $maybe
}
}
Write-Output "INFO:IDADIR=$env:IDADIR"
if ($UsePortableLauncher -or (Test-Path (Join-Path $portableRoot 'Launch-IDA-Pro.cmd'))) {
$launcher = Join-Path $portableRoot 'Launch-IDA-Pro.cmd'
if (Test-Path -LiteralPath $launcher) {
Write-Output "INFO:launcher=$launcher"
if (-not [string]::IsNullOrWhiteSpace($Path)) {
if (-not (Test-Path -LiteralPath $Path)) {
Write-Output 'ERR:file_not_found'
exit 1
}
# Portable launcher starts IDA; then user/file can be passed to ida.exe directly instead
$target = [System.IO.Path]::GetFullPath($Path)
Start-Process -FilePath (Join-Path $env:IDADIR 'ida.exe') -ArgumentList @('"' + $target + '"') -WorkingDirectory $env:IDADIR
} else {
Start-Process -FilePath $launcher -WorkingDirectory $portableRoot
}
Write-Output 'OK:gui_started'
Write-Output 'HINT: Open a binary in IDA, confirm Output shows [MCP] port=13337, then use idapro MCP tools.'
exit 0
}
}
$idaExe = Join-Path $env:IDADIR 'ida.exe'
if (-not [string]::IsNullOrWhiteSpace($Path)) {
if (-not (Test-Path -LiteralPath $Path)) {
Write-Output 'ERR:file_not_found'
exit 1
}
$target = [System.IO.Path]::GetFullPath($Path)
Start-Process -FilePath $idaExe -ArgumentList @('"' + $target + '"') -WorkingDirectory $env:IDADIR
} else {
Start-Process -FilePath $idaExe -WorkingDirectory $env:IDADIR
}
Write-Output 'OK:gui_started'
Write-Output 'HINT: Open a binary in IDA, confirm Output shows [MCP] port=13337, then use idapro MCP tools.'
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: 466k | Updated | Claude CodeCodex | Verified | 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: 466k | 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: 319k | 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: 319k | Updated | Claude CodeCodex | Verified | Install |