From 23824b0f2d36cbe8716a9e4fb9d1a50a041d6285 Mon Sep 17 00:00:00 2001 From: deku <1661956284@qq.com> Date: Fri, 14 Aug 2026 13:44:34 +0800 Subject: [PATCH] fix(radare2): index radare2-skills tools --- skills/scripts/lib/ToolDiscovery.ps1 | 60 +++++++++++++++++++++++++++ skills/scripts/refresh-tool-index.ps1 | 5 +++ 2 files changed, 65 insertions(+) diff --git a/skills/scripts/lib/ToolDiscovery.ps1 b/skills/scripts/lib/ToolDiscovery.ps1 index ddaa91d..f81129b 100644 --- a/skills/scripts/lib/ToolDiscovery.ps1 +++ b/skills/scripts/lib/ToolDiscovery.ps1 @@ -199,6 +199,66 @@ function Get-ReverseToolCatalog { [pscustomobject]@{ Type = 'path'; Value = 'C:\Tools\radare2\bin\rax2.exe' } ) } + [pscustomobject]@{ + Name = 'r2pm' + Skill = 'radare2' + Purpose = 'radare2 插件管理' + VersionArgs = @('-v') + Fallbacks = @( + [pscustomobject]@{ Type = 'command'; Value = 'r2pm' }, + [pscustomobject]@{ Type = 'path'; Value = (Join-Path $userProfile 'Tools\radare2\bin\r2pm.exe') }, + [pscustomobject]@{ Type = 'path'; Value = (Join-Path $userProfile 'Tools\radare2\r2pm.exe') }, + [pscustomobject]@{ Type = 'path'; Value = 'C:\Tools\radare2\bin\r2pm.exe' } + ) + } + [pscustomobject]@{ + Name = 'r2xsql' + Skill = 'radare2' + Purpose = 'radare2 SQL 查询工具' + VersionArgs = @('--version') + Fallbacks = @( + [pscustomobject]@{ Type = 'command'; Value = 'r2xsql' }, + [pscustomobject]@{ Type = 'path'; Value = (Join-Path $userProfile 'Tools\radare2\bin\r2xsql.exe') }, + [pscustomobject]@{ Type = 'path'; Value = (Join-Path $userProfile 'Tools\radare2\r2xsql.exe') }, + [pscustomobject]@{ Type = 'path'; Value = 'C:\Tools\radare2\bin\r2xsql.exe' } + ) + } + [pscustomobject]@{ + Name = 'r2xsql-full' + Skill = 'radare2' + Purpose = 'radare2 SQL 查询工具(完整版)' + VersionArgs = @('--version') + Fallbacks = @( + [pscustomobject]@{ Type = 'command'; Value = 'r2xsql-full' }, + [pscustomobject]@{ Type = 'path'; Value = (Join-Path $userProfile 'Tools\radare2\bin\r2xsql-full.exe') }, + [pscustomobject]@{ Type = 'path'; Value = (Join-Path $userProfile 'Tools\radare2\r2xsql-full.exe') }, + [pscustomobject]@{ Type = 'path'; Value = 'C:\Tools\radare2\bin\r2xsql-full.exe' } + ) + } + [pscustomobject]@{ + Name = 'r2mcp' + Skill = 'radare2' + Purpose = 'radare2 MCP 协议分析' + VersionArgs = @('-v') + Fallbacks = @( + [pscustomobject]@{ Type = 'command'; Value = 'r2mcp' }, + [pscustomobject]@{ Type = 'path'; Value = (Join-Path $userProfile 'Tools\radare2\bin\r2mcp.exe') }, + [pscustomobject]@{ Type = 'path'; Value = (Join-Path $userProfile 'Tools\radare2\r2mcp.exe') }, + [pscustomobject]@{ Type = 'path'; Value = 'C:\Tools\radare2\bin\r2mcp.exe' } + ) + } + [pscustomobject]@{ + Name = 'radius2' + Skill = 'radare2' + Purpose = 'radare2 符号执行与动态分析' + VersionArgs = @('-v') + Fallbacks = @( + [pscustomobject]@{ Type = 'command'; Value = 'radius2' }, + [pscustomobject]@{ Type = 'path'; Value = (Join-Path $userProfile 'Tools\radare2\bin\radius2.exe') }, + [pscustomobject]@{ Type = 'path'; Value = (Join-Path $userProfile 'Tools\radare2\radius2.exe') }, + [pscustomobject]@{ Type = 'path'; Value = 'C:\Tools\radare2\bin\radius2.exe' } + ) + } [pscustomobject]@{ Name = 'python' Skill = 'reverse-engineering' diff --git a/skills/scripts/refresh-tool-index.ps1 b/skills/scripts/refresh-tool-index.ps1 index ea5ccb5..ef62cbd 100644 --- a/skills/scripts/refresh-tool-index.ps1 +++ b/skills/scripts/refresh-tool-index.ps1 @@ -34,6 +34,11 @@ $scriptRefs = @{ 'radiff2' = @('radare2/SKILL.md') 'rahash2' = @('radare2/SKILL.md') 'rax2' = @('radare2/SKILL.md') + 'r2pm' = @('radare2/SKILL.md') + 'r2xsql' = @('radare2/SKILL.md') + 'r2xsql-full' = @('radare2/SKILL.md') + 'r2mcp' = @('radare2/SKILL.md') + 'radius2' = @('radare2/SKILL.md') 'python' = @('apk-reverse/scripts/frida-run.ps1', 'case-review/scripts/review_case.py') 'pip' = @() 'node' = @('js-reverse/SKILL.md')