[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6F5WTTCC0SKB24M5P8VT473":3,"skill-same:01M6F5WTTCC0SKB24M5P8VT473":87},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":44,"linkOnly":45,"markdownContent":46,"markdownBody":47,"frontMatter":48,"refName":32,"commitSha":53,"skillDirectory":54,"forksCount":55,"repositoryHtmlUrl":56,"repositoryHomepageUrl":6,"ownerHtmlUrl":57,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":58,"install":59,"resources":72},"01M6F5WTTCC0SKB24M5P8VT473","dotnet-reverse",null,".NET\u002FC# binary reverse engineering: managed PE analysis, dnSpyEx debugging, de4dot deobfuscation (ConfuserEx\u002FSmartAssembly\u002FBabel), IL patching, NativeAOT targets, and analysis of red-team Sharp* tooling.","boisenoise\u002Fskills-collections","boisenoise","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F193180?v=4","01M6CDBDQK6BDN55ZMA6B6PKBM","01M6CDBDVSJ3JPTBYN26FZ7TZK",13,"MIT","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-dotnet-reverse\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43],"dotnet","reverse","dotnet reverse","2026","github","blob","managed","babel","reverse engineering","C#","sharp","targets","offensive","red","main","community","tooling","team","patching","analysis","deobfuscation","red-team","engineering","https","license","debugging","2026-11-10 10:12:30",false,"---\nname: dotnet-reverse\ndescription: \".NET\u002FC# binary reverse engineering: managed PE analysis, dnSpyEx debugging, de4dot deobfuscation (ConfuserEx\u002FSmartAssembly\u002FBabel), IL patching, NativeAOT targets, and analysis of red-team Sharp* tooling.\"\nrisk: offensive\nsource: \"https:\u002F\u002Fgithub.com\u002Fzhaoxuya520\u002Freverse-skill\"\nsource_repo: \"zhaoxuya520\u002Freverse-skill\"\nsource_type: community\ndate_added: \"2026-08-25\"\nlicense: \"MIT\"\nlicense_source: \"https:\u002F\u002Fgithub.com\u002Fzhaoxuya520\u002Freverse-skill\u002Fblob\u002Fmain\u002FLICENSE\"\n---\n> **⚠️ AUTHORIZED USE ONLY**\n> This skill is for educational purposes or authorized security assessments only.\n> You must have explicit, written permission from the system owner before using this tool.\n> Misuse of this tool is illegal and strictly prohibited.\n\n> **Mandatory confirmation gate**\n> Before running any command that probes, exploits, changes, persists on, extracts data from, or attempts credential access against a target:\n> 1. Ask the user to state the exact target URL, IP, account, or resource.\n> 2. Ask the user to confirm written authorization and the permitted scope.\n> 3. Show the exact command(s) and explain their expected effect.\n> 4. Wait for explicit confirmation in the current conversation.\n>\n> Without that confirmation, remain read-only and provide defensive guidance only. Prefer a sandbox, disposable VM, or controlled lab.\n\n# .NET \u002F C# 逆向作业规范\n## When to Use\n\n- Analyzing a .NET assembly, obfuscated C# product, or native-AOT binary.\n- Understanding the internals of Sharp* red-team tools before use or defense.\n\n\n## 适用范围\n\n当任务属于以下场景时优先使用本 skill：\n\n- 识别并逆向 .NET \u002F C# 编译产物（托管 PE \u002F .exe \u002F .dll）\n- 分析红队 Sharp* 工具链（Rubeus、SharpHound、SharpShell 等）\n- 脱混淆 ConfuserEx \u002F SmartAssembly \u002F Babel \u002F Eazfuscator \u002F .NET Reactor 等壳\n- 逆向 .NET loader \u002F info-stealer \u002F RAT 的解密与 C2 逻辑\n- 对 C# 程序做 patch（改判断、改常量、keygen）\n- 分析 IL2CPP 之前的 Mono\u002FUnity 托管层（注意：IL2CPP 编译后是 native，走 `reverse-engineering\u002F` + seed-014）\n\n如果目标是纯 native 二进制（C\u002FC++\u002FGo\u002FRust 编译、无 CLR），请改用 `reverse-engineering\u002F`、`ida-reverse\u002F` 或 `radare2\u002F`。\n\n## 授权与隔离\n\n仅分析有授权的样本。未知程序集、依赖与脱混淆器可能执行代码；使用无真实凭据、无共享目录的可回滚隔离虚拟机，默认阻断外联。静态元数据优先；动态执行必须单独确认范围。提取的密钥\u002FC2按敏感证据保存，不连接或复用。patch另存副本并验证栈、分支、异常处理及签名，不覆盖原样本。\n\n原版 de4dot 已归档且未列出 ConfuserEx 支持；下方旧版表格是候选线索，须核对所用 fork 的实际参数与支持范围。上游路由与 MCP 名称不表示本包已提供这些能力。\n\n## 核心原则\n\n- **先识别再下手**：先确认是 .NET 托管程序（PE 头 CLR + `#~` \u002F `#Strings` 流 + mscoree `_CorExeMain`），再决定走 dnSpy 而非 IDA\n- **IL 优先于 C#**：dnSpyEx 的 C# 反编译器会丢失\u002F扭曲信息（编译器生成的状态机、async\u002Fawait、yield），关键判断与 patch 必须切到 **IL 编辑器**，C# 视图只用于快速浏览\n- **de4dot 先行**：遇到混淆器先 `de4dot` 脱一轮再做静态分析，否则字符串\u002F控制流全是乱的\n- **MCP 联动**：环境里若注册了 dnSpy MCP（`dnspy_*` 工具），优先走 MCP 面做 decompile \u002F IL inspection，避免来回切 GUI\n- **证据化输出**：脱混淆产物、提取的配置\u002FC2\u002Fkey、patch diff 都要落盘\n\n## 工具链映射\n\n| 能力 | 首选 | 备注 |\n|------|------|------|\n| 反编译 + 调试 + patch | **dnSpyEx** | 王牌，唯一带 IL 编辑器的 GUI；老 dnSpy 已停更，用 Ex 分支 |\n| 轻量 CLI \u002F headless 反编译 | **ILSpy** (`ilspycmd`) | 适合批量、脚本化、Linux\u002FmacOS |\n| 脱混淆 | **de4dot** | ConfuserEx 全家桶、SmartAssembly 等主流壳的默认解 |\n| 混淆器识别 | **Detect It Easy (DIE)** \u002F **file** | 先判断壳类型再决定 de4dot 参数 |\n| 编程化操作 IL | **dnlib** | 写 C# 脚本批量改 metadata \u002F 字符串解密器 |\n| AI 直接操作 | **dnSpy MCP** | `dnspy_decompile` \u002F `dnspy_inspect_il` 等工具面 |\n\n> 前置：Windows 主机装 dnSpyEx + de4dot（choco 或 release）；Linux\u002FmacOS 用 `ilspycmd` + `dotnet runtime`。详见 `references\u002Fsharp-tools.md` 的安装矩阵。\n\n## 六阶段工作流\n\n### 1. Identify（识别 .NET）\n\n确认目标是托管程序，别把 native PE 当 .NET 分析：\n\n```powershell\n# Windows\nfile target.exe                       # \"PE32 executable ... for MS Windows\" 不够\n# 关键：看有没有 CLR\npowershell -c \"[System.Reflection.AssemblyName]::GetAssemblyName('target.exe')\"\n# 或\ndnSpyEx 直接拖进去 —— 能打开就是托管\n\n# 通用\nstrings target.exe | grep -iE \"mscoree|_CorExeMain|mscorlib|System\\\\.\"\n```\n\n**.NET 识别标志：**\n- PE 头 `Data Directory[14]` (CLR Runtime Header) 非零\n- `mscoree.dll` 导入 \u002F `_CorExeMain` 入口\n- `#~`、`#Strings`、`#US`、`#GUID`、`#Blob` metadata 流\n- `mscorlib` \u002F `System.Private.CoreLib` 字符串\n\n**NativeAOT 例外：** 编译成 native，没有 CLR 头，但有 `System.Private.CoreLib` 字符串和重构过的类型元数据 —— 这类走 `reverse-engineering\u002F`（IDA\u002Fr2），本 skill 仅做识别提示。\n\n### 2. Detect（检测混淆器）\n\n```powershell\n# DIE 快速识别\ndiec target.exe                        # Detect It Easy CLI\n# 或拖进 dnSpyEx，看是否大量乱码类名 \u002F 控制流变形\n```\n\n常见混淆器 → 脱壳策略（详见 `references\u002Fobfuscators.md`）：\n\n| 混淆器 | 特征 | de4dot 处理 |\n|--------|------|------------|\n| ConfuserEx (1.0.0 \u002F 2.x) | `\u003Cmodule>` anti-tamper、控制流变形、字符串加密 | `de4dot target.exe` 通常自动识别 |\n| SmartAssembly | `circular`\u002F`string encoding`、资源压缩 | `de4dot target.exe` |\n| Babel.NET | 方法体加密、控制流 | `de4dot target.exe` |\n| Eazfuscator.NET | 字符串\u002F资源加密 | `de4dot`，部分版本需手动 |\n| .NET Reactor | anti-tamper + necrobit | `de4dot`，新版可能失败需手动 |\n\n### 3. Deobfuscate（脱混淆）\n\n```powershell\n# de4dot 默认自动识别大多数壳\nde4dot target.exe -o target-clean.exe\n\n# 指定类型（自动识别失败时）\n# ConfuserEx: 核实专用 fork 的支持和参数后再使用\nde4dot --type sa target.exe            # SmartAssembly\n\n# 多层混淆 \u002F de4dot 报 unknown\nde4dot --detect target.exe             # 看它识别成什么\n# 可能要先 patch anti-tamper 再 de4dot（见 references\u002Fobfuscators.md）\n```\n\n产出：`target-clean.exe`，后续分析用它。**保留原始样本**做对照。\n\n### 4. Static Analyze（静态分析）\n\ndnSpyEx 加载脱壳后样本：\n\n- **C# 视图**：快速浏览类结构、方法签名、字符串（用于定位）\n- **IL 视图**：关键判断、加密逻辑、状态机必须看 IL（右键 → Edit IL 或 IL 视图）\n- 找入口：`Main` \u002F `Startup` \u002F 模块初始化器 (`Module .cctor`)\n- 找关键逻辑：搜 `flag`、`password`、`verify`、`check`、`encrypt`、`http`、`Config`\n\n```text\n定位字符串 → 反向引用 → 找到使用它的方法 → IL 视图看判断逻辑\n```\n\n### 5. Dynamic（动态调试）\n\ndnSpyEx 调试器：附加进程 \u002F 启动调试，在关键方法下断点，观察运行时：\n- 解密后的明文字符串（很多混淆器的字符串在运行时才解密）\n- C2 地址、配置解密结果\n- 异常驱动的控制流（anti-debug 常用 `try\u002Fcatch` 隐藏真实路径）\n\n> .NET 动态调试比 native 友好得多 —— 能直接看到对象值、字符串内容。优先动态而非死磕静态。\n\n### 6. Patch（按需修改）\n\n```text\ndnSpyEx → 右键方法 → Edit Method (C#) 或 Edit IL\n  - 改判断：ldc.i4.0 → ldc.i4.1（false→true）\n  - 改常量：直接编辑字符串\u002F数字\n  - 删除校验：nop 掉整段\nFile → Save Module → 另存 target-patched.exe，保留原始样本\n```\n\n**IL patch 可靠性 > C# patch**：C# 重编译可能失败（缺引用、语法不对），IL 编辑仍可能破坏栈、分支或异常处理，必须验证。详见 `references\u002Fcommon-workflow.md`。\n\n## 触发场景路由\n\n用户说这些时进入本 skill：\n- \".NET \u002F C# 二进制逆向\" \u002F \"C# 程序反编译\"\n- \"dnSpy 分析\" \u002F \"dnSpyEx patch\"\n- \"ConfuserEx \u002F SmartAssembly \u002F Babel 脱混淆 \u002F 脱壳\"\n- \"Sharp* 工具分析\"（Rubeus \u002F SharpHound \u002F SharpShell）\n- \".NET malware \u002F loader \u002F info-stealer 逆向\"\n- \"C# 程序 patch \u002F keygen \u002F 修改判断\"\n\n## 何时切出\n\n- IL2CPP 编译的 Unity 游戏 → `reverse-engineering\u002F` + `seed-014_unity-il2cpp-reverse.md`（IL2CPP 是 native，不走 dnSpy）\n- NativeAOT 产物 → `reverse-engineering\u002F`（同上，native）\n- 纯 native PE（无 CLR）→ `reverse-engineering\u002F` \u002F `ida-reverse\u002F`\n- 需要符号\u002F函数批量迁移到别的版本 → `binary-diff\u002F`\n- 需要画攻击路径 \u002F 调用链图 → `diagram-generator\u002F`\n\n## 路由上下文\n\n**上游入口**: `skills\u002FSKILL.md`（总控）、`routing.md`\n**下游出口**:\n- IL2CPP \u002F NativeAOT（native）→ `reverse-engineering\u002F`\n- 深度 native .so\u002F.dll 段分析 → `ida-reverse\u002F` \u002F `radare2\u002F`\n- 需要 AI 直接操作 dnSpy → 注册并联动 dnSpy MCP（见 `references\u002Fsharp-tools.md`）\n\n**同级关联模块**:\n- `reverse-engineering\u002Flanguages-compiled.md`（.NET 简介指向本模块）\n- `apk-reverse\u002F`（Xamarin\u002FMAUI Android 逆向可切回本模块看 C# 层）\n\n## 参考文档\n\n- [references\u002Fobfuscators.md](references\u002Fobfuscators.md) — ConfuserEx \u002F SmartAssembly \u002F Babel \u002F Eazfuscator \u002F .NET Reactor 脱混淆详解 + anti-tamper 绕过\n- [references\u002Fcommon-workflow.md](references\u002Fcommon-workflow.md) — 完整工作流、IL patch 可靠性、字符串解密器提取、状态机识别\n- [references\u002Fsharp-tools.md](references\u002Fsharp-tools.md) — 红队 Sharp* 工具分析、工具安装矩阵、dnSpy MCP 集成、社区资源索引\n\n## 任务完成自检\n\n- [ ] 是否确认过 CLR \u002F 托管身份（或已 SWITCH 出本 skill）？\n- [ ] 混淆样本是否先 de4dot \u002F 等价脱壳再深分析？\n- [ ] 关键逻辑是否用 IL 视图验证（而非只看 C# 伪代码）？\n- [ ] 产物（clean 样本 \u002F 配置 \u002F patch diff）是否落盘且可复现？\n- [ ] 是否提供了下一步菜单或报告出口？\n\n## Limitations\n\n- NativeAOT and trimmed builds lose most metadata; expect native-style RE.\n- Some commercial obfuscators require manual unpacking steps.\n\n> Adapted from [zhaoxuya520\u002Freverse-skill](https:\u002F\u002Fgithub.com\u002Fzhaoxuya520\u002Freverse-skill) (MIT).\n","> **⚠️ AUTHORIZED USE ONLY**\n> This skill is for educational purposes or authorized security assessments only.\n> You must have explicit, written permission from the system owner before using this tool.\n> Misuse of this tool is illegal and strictly prohibited.\n\n> **Mandatory confirmation gate**\n> Before running any command that probes, exploits, changes, persists on, extracts data from, or attempts credential access against a target:\n> 1. Ask the user to state the exact target URL, IP, account, or resource.\n> 2. Ask the user to confirm written authorization and the permitted scope.\n> 3. Show the exact command(s) and explain their expected effect.\n> 4. Wait for explicit confirmation in the current conversation.\n>\n> Without that confirmation, remain read-only and provide defensive guidance only. Prefer a sandbox, disposable VM, or controlled lab.\n\n# .NET \u002F C# 逆向作业规范\n## When to Use\n\n- Analyzing a .NET assembly, obfuscated C# product, or native-AOT binary.\n- Understanding the internals of Sharp* red-team tools before use or defense.\n\n\n## 适用范围\n\n当任务属于以下场景时优先使用本 skill：\n\n- 识别并逆向 .NET \u002F C# 编译产物（托管 PE \u002F .exe \u002F .dll）\n- 分析红队 Sharp* 工具链（Rubeus、SharpHound、SharpShell 等）\n- 脱混淆 ConfuserEx \u002F SmartAssembly \u002F Babel \u002F Eazfuscator \u002F .NET Reactor 等壳\n- 逆向 .NET loader \u002F info-stealer \u002F RAT 的解密与 C2 逻辑\n- 对 C# 程序做 patch（改判断、改常量、keygen）\n- 分析 IL2CPP 之前的 Mono\u002FUnity 托管层（注意：IL2CPP 编译后是 native，走 `reverse-engineering\u002F` + seed-014）\n\n如果目标是纯 native 二进制（C\u002FC++\u002FGo\u002FRust 编译、无 CLR），请改用 `reverse-engineering\u002F`、`ida-reverse\u002F` 或 `radare2\u002F`。\n\n## 授权与隔离\n\n仅分析有授权的样本。未知程序集、依赖与脱混淆器可能执行代码；使用无真实凭据、无共享目录的可回滚隔离虚拟机，默认阻断外联。静态元数据优先；动态执行必须单独确认范围。提取的密钥\u002FC2按敏感证据保存，不连接或复用。patch另存副本并验证栈、分支、异常处理及签名，不覆盖原样本。\n\n原版 de4dot 已归档且未列出 ConfuserEx 支持；下方旧版表格是候选线索，须核对所用 fork 的实际参数与支持范围。上游路由与 MCP 名称不表示本包已提供这些能力。\n\n## 核心原则\n\n- **先识别再下手**：先确认是 .NET 托管程序（PE 头 CLR + `#~` \u002F `#Strings` 流 + mscoree `_CorExeMain`），再决定走 dnSpy 而非 IDA\n- **IL 优先于 C#**：dnSpyEx 的 C# 反编译器会丢失\u002F扭曲信息（编译器生成的状态机、async\u002Fawait、yield），关键判断与 patch 必须切到 **IL 编辑器**，C# 视图只用于快速浏览\n- **de4dot 先行**：遇到混淆器先 `de4dot` 脱一轮再做静态分析，否则字符串\u002F控制流全是乱的\n- **MCP 联动**：环境里若注册了 dnSpy MCP（`dnspy_*` 工具），优先走 MCP 面做 decompile \u002F IL inspection，避免来回切 GUI\n- **证据化输出**：脱混淆产物、提取的配置\u002FC2\u002Fkey、patch diff 都要落盘\n\n## 工具链映射\n\n| 能力 | 首选 | 备注 |\n|------|------|------|\n| 反编译 + 调试 + patch | **dnSpyEx** | 王牌，唯一带 IL 编辑器的 GUI；老 dnSpy 已停更，用 Ex 分支 |\n| 轻量 CLI \u002F headless 反编译 | **ILSpy** (`ilspycmd`) | 适合批量、脚本化、Linux\u002FmacOS |\n| 脱混淆 | **de4dot** | ConfuserEx 全家桶、SmartAssembly 等主流壳的默认解 |\n| 混淆器识别 | **Detect It Easy (DIE)** \u002F **file** | 先判断壳类型再决定 de4dot 参数 |\n| 编程化操作 IL | **dnlib** | 写 C# 脚本批量改 metadata \u002F 字符串解密器 |\n| AI 直接操作 | **dnSpy MCP** | `dnspy_decompile` \u002F `dnspy_inspect_il` 等工具面 |\n\n> 前置：Windows 主机装 dnSpyEx + de4dot（choco 或 release）；Linux\u002FmacOS 用 `ilspycmd` + `dotnet runtime`。详见 `references\u002Fsharp-tools.md` 的安装矩阵。\n\n## 六阶段工作流\n\n### 1. Identify（识别 .NET）\n\n确认目标是托管程序，别把 native PE 当 .NET 分析：\n\n```powershell\n# Windows\nfile target.exe                       # \"PE32 executable ... for MS Windows\" 不够\n# 关键：看有没有 CLR\npowershell -c \"[System.Reflection.AssemblyName]::GetAssemblyName('target.exe')\"\n# 或\ndnSpyEx 直接拖进去 —— 能打开就是托管\n\n# 通用\nstrings target.exe | grep -iE \"mscoree|_CorExeMain|mscorlib|System\\\\.\"\n```\n\n**.NET 识别标志：**\n- PE 头 `Data Directory[14]` (CLR Runtime Header) 非零\n- `mscoree.dll` 导入 \u002F `_CorExeMain` 入口\n- `#~`、`#Strings`、`#US`、`#GUID`、`#Blob` metadata 流\n- `mscorlib` \u002F `System.Private.CoreLib` 字符串\n\n**NativeAOT 例外：** 编译成 native，没有 CLR 头，但有 `System.Private.CoreLib` 字符串和重构过的类型元数据 —— 这类走 `reverse-engineering\u002F`（IDA\u002Fr2），本 skill 仅做识别提示。\n\n### 2. Detect（检测混淆器）\n\n```powershell\n# DIE 快速识别\ndiec target.exe                        # Detect It Easy CLI\n# 或拖进 dnSpyEx，看是否大量乱码类名 \u002F 控制流变形\n```\n\n常见混淆器 → 脱壳策略（详见 `references\u002Fobfuscators.md`）：\n\n| 混淆器 | 特征 | de4dot 处理 |\n|--------|------|------------|\n| ConfuserEx (1.0.0 \u002F 2.x) | `\u003Cmodule>` anti-tamper、控制流变形、字符串加密 | `de4dot target.exe` 通常自动识别 |\n| SmartAssembly | `circular`\u002F`string encoding`、资源压缩 | `de4dot target.exe` |\n| Babel.NET | 方法体加密、控制流 | `de4dot target.exe` |\n| Eazfuscator.NET | 字符串\u002F资源加密 | `de4dot`，部分版本需手动 |\n| .NET Reactor | anti-tamper + necrobit | `de4dot`，新版可能失败需手动 |\n\n### 3. Deobfuscate（脱混淆）\n\n```powershell\n# de4dot 默认自动识别大多数壳\nde4dot target.exe -o target-clean.exe\n\n# 指定类型（自动识别失败时）\n# ConfuserEx: 核实专用 fork 的支持和参数后再使用\nde4dot --type sa target.exe            # SmartAssembly\n\n# 多层混淆 \u002F de4dot 报 unknown\nde4dot --detect target.exe             # 看它识别成什么\n# 可能要先 patch anti-tamper 再 de4dot（见 references\u002Fobfuscators.md）\n```\n\n产出：`target-clean.exe`，后续分析用它。**保留原始样本**做对照。\n\n### 4. Static Analyze（静态分析）\n\ndnSpyEx 加载脱壳后样本：\n\n- **C# 视图**：快速浏览类结构、方法签名、字符串（用于定位）\n- **IL 视图**：关键判断、加密逻辑、状态机必须看 IL（右键 → Edit IL 或 IL 视图）\n- 找入口：`Main` \u002F `Startup` \u002F 模块初始化器 (`Module .cctor`)\n- 找关键逻辑：搜 `flag`、`password`、`verify`、`check`、`encrypt`、`http`、`Config`\n\n```text\n定位字符串 → 反向引用 → 找到使用它的方法 → IL 视图看判断逻辑\n```\n\n### 5. Dynamic（动态调试）\n\ndnSpyEx 调试器：附加进程 \u002F 启动调试，在关键方法下断点，观察运行时：\n- 解密后的明文字符串（很多混淆器的字符串在运行时才解密）\n- C2 地址、配置解密结果\n- 异常驱动的控制流（anti-debug 常用 `try\u002Fcatch` 隐藏真实路径）\n\n> .NET 动态调试比 native 友好得多 —— 能直接看到对象值、字符串内容。优先动态而非死磕静态。\n\n### 6. Patch（按需修改）\n\n```text\ndnSpyEx → 右键方法 → Edit Method (C#) 或 Edit IL\n  - 改判断：ldc.i4.0 → ldc.i4.1（false→true）\n  - 改常量：直接编辑字符串\u002F数字\n  - 删除校验：nop 掉整段\nFile → Save Module → 另存 target-patched.exe，保留原始样本\n```\n\n**IL patch 可靠性 > C# patch**：C# 重编译可能失败（缺引用、语法不对），IL 编辑仍可能破坏栈、分支或异常处理，必须验证。详见 `references\u002Fcommon-workflow.md`。\n\n## 触发场景路由\n\n用户说这些时进入本 skill：\n- \".NET \u002F C# 二进制逆向\" \u002F \"C# 程序反编译\"\n- \"dnSpy 分析\" \u002F \"dnSpyEx patch\"\n- \"ConfuserEx \u002F SmartAssembly \u002F Babel 脱混淆 \u002F 脱壳\"\n- \"Sharp* 工具分析\"（Rubeus \u002F SharpHound \u002F SharpShell）\n- \".NET malware \u002F loader \u002F info-stealer 逆向\"\n- \"C# 程序 patch \u002F keygen \u002F 修改判断\"\n\n## 何时切出\n\n- IL2CPP 编译的 Unity 游戏 → `reverse-engineering\u002F` + `seed-014_unity-il2cpp-reverse.md`（IL2CPP 是 native，不走 dnSpy）\n- NativeAOT 产物 → `reverse-engineering\u002F`（同上，native）\n- 纯 native PE（无 CLR）→ `reverse-engineering\u002F` \u002F `ida-reverse\u002F`\n- 需要符号\u002F函数批量迁移到别的版本 → `binary-diff\u002F`\n- 需要画攻击路径 \u002F 调用链图 → `diagram-generator\u002F`\n\n## 路由上下文\n\n**上游入口**: `skills\u002FSKILL.md`（总控）、`routing.md`\n**下游出口**:\n- IL2CPP \u002F NativeAOT（native）→ `reverse-engineering\u002F`\n- 深度 native .so\u002F.dll 段分析 → `ida-reverse\u002F` \u002F `radare2\u002F`\n- 需要 AI 直接操作 dnSpy → 注册并联动 dnSpy MCP（见 `references\u002Fsharp-tools.md`）\n\n**同级关联模块**:\n- `reverse-engineering\u002Flanguages-compiled.md`（.NET 简介指向本模块）\n- `apk-reverse\u002F`（Xamarin\u002FMAUI Android 逆向可切回本模块看 C# 层）\n\n## 参考文档\n\n- [references\u002Fobfuscators.md](references\u002Fobfuscators.md) — ConfuserEx \u002F SmartAssembly \u002F Babel \u002F Eazfuscator \u002F .NET Reactor 脱混淆详解 + anti-tamper 绕过\n- [references\u002Fcommon-workflow.md](references\u002Fcommon-workflow.md) — 完整工作流、IL patch 可靠性、字符串解密器提取、状态机识别\n- [references\u002Fsharp-tools.md](references\u002Fsharp-tools.md) — 红队 Sharp* 工具分析、工具安装矩阵、dnSpy MCP 集成、社区资源索引\n\n## 任务完成自检\n\n- [ ] 是否确认过 CLR \u002F 托管身份（或已 SWITCH 出本 skill）？\n- [ ] 混淆样本是否先 de4dot \u002F 等价脱壳再深分析？\n- [ ] 关键逻辑是否用 IL 视图验证（而非只看 C# 伪代码）？\n- [ ] 产物（clean 样本 \u002F 配置 \u002F patch diff）是否落盘且可复现？\n- [ ] 是否提供了下一步菜单或报告出口？\n\n## Limitations\n\n- NativeAOT and trimmed builds lose most metadata; expect native-style RE.\n- Some commercial obfuscators require manual unpacking steps.\n\n> Adapted from [zhaoxuya520\u002Freverse-skill](https:\u002F\u002Fgithub.com\u002Fzhaoxuya520\u002Freverse-skill) (MIT).\n",{"name":5,"risk":30,"source":49,"license":14,"date_added":50,"description":7,"source_repo":51,"source_type":33,"license_source":52},"https:\u002F\u002Fgithub.com\u002Fzhaoxuya520\u002Freverse-skill","2026-08-25","zhaoxuya520\u002Freverse-skill","https:\u002F\u002Fgithub.com\u002Fzhaoxuya520\u002Freverse-skill\u002Fblob\u002Fmain\u002FLICENSE","7bf2279c8a65758319526a721d5c4b75683aec9c","skills\u002Fantigravity-dotnet-reverse",3,"https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections","https:\u002F\u002Fgithub.com\u002Fboisenoise","2026-11-14 14:18:11",{"source":8,"skillName":5,"commands":60,"prompt":70,"zipAvailable":71},[61,64,67],{"tool":62,"command":63},"npx","npx skills add boisenoise\u002Fskills-collections --skill dotnet-reverse",{"tool":65,"command":66},"bunx","bunx skills add boisenoise\u002Fskills-collections --skill dotnet-reverse",{"tool":68,"command":69},"pnpm","pnpm dlx skills add boisenoise\u002Fskills-collections --skill dotnet-reverse","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-dotnet-reverse\u002FSKILL.md",true,[73,79,83],{"path":74,"resourceType":75,"resourceTypeDesc":76,"sizeBytes":77,"sourceHtmlUrl":78},"references\u002Fcommon-workflow.md","REFERENCE","参考文档",6975,"https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-dotnet-reverse\u002Freferences\u002Fcommon-workflow.md",{"path":80,"resourceType":75,"resourceTypeDesc":76,"sizeBytes":81,"sourceHtmlUrl":82},"references\u002Fobfuscators.md",6297,"https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-dotnet-reverse\u002Freferences\u002Fobfuscators.md",{"path":84,"resourceType":75,"resourceTypeDesc":76,"sizeBytes":85,"sourceHtmlUrl":86},"references\u002Fsharp-tools.md",6575,"https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-dotnet-reverse\u002Freferences\u002Fsharp-tools.md",[88,97,105,114,122,130],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":92,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":96},"01M7B6HREHB53EHGGVZND7DDXN","scrapely-scrape","Collect web data with ready-made Scrape.ly scrapers: Google Maps places, Amazon products, LinkedIn jobs, reviews, social posts. Use when the user wants structured data from a site.","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-scrapely-scrape\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-scrapely-scrape\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":98,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":101,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":96},"01M7B6GDNNN4HE662KA6KPF7GW","lumify-odds","Lumify's hosted sports MCP\u002FREST API for sportsbook odds, line-movement history, public betting splits, and player props across MLB, NFL, NBA, NHL, soccer, tennis, NCAAF, NCAAB. Read-only market data.","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-lumify-odds\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-lumify-odds\u002FSKILL.md",[],[],{"skillNo":106,"name":107,"nameZh":6,"description":108,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":109,"sourceHtmlUrl":110,"categories":111,"keywords":112,"publishedAt":113},"01M743PZMJW2GEKG5J199GPSK7","sync-lipsync","Lip-sync an existing video of a real person to new audio or a typed script with sync. labs through its hosted MCP server, quoting the cost and waiting for approval first.","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-sync-lipsync\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-sync-lipsync\u002FSKILL.md",[],[],"2026-11-11 15:11:14",{"skillNo":115,"name":116,"nameZh":6,"description":117,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":118,"sourceHtmlUrl":119,"categories":120,"keywords":121,"publishedAt":113},"01M743MMN3CKTJVNRSZMB684E5","music-for-robots","Optional music-inspired creative exercise for multimodal agents. Ingests an unquantized acoustic MP3 composition by Michael Luchtan (Music For Robots) into a private temporary directory, analyzing microtiming and texture to inspire creative writing, brainstorming, or technical tasks.","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-music-for-robots\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-music-for-robots\u002FSKILL.md",[],[],{"skillNo":123,"name":124,"nameZh":6,"description":125,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":126,"sourceHtmlUrl":127,"categories":128,"keywords":129,"publishedAt":113},"01M743KC2GN5WE11BSTWSSWD8B","imagera-media","Generate or edit images, video clips, voiceovers and music through the hosted Imagera MCP server, quoting the credit cost and getting approval before each paid call.","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-imagera-media\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-imagera-media\u002FSKILL.md",[],[],{"skillNo":131,"name":132,"nameZh":6,"description":133,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":134,"sourceHtmlUrl":135,"categories":136,"keywords":137,"publishedAt":113},"01M743HDJNZQA8A4VT68NWGWQJ","deja-history","Search this machine's past AI coding sessions across Claude Code, Codex, Cursor, Gemini CLI and thirty-nine other agents before editing, debugging, or denying something exists.","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-deja-history\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-deja-history\u002FSKILL.md",[],[]]