ptn1411/skill/dotnet-decompiler

Claude Code and agent skill by ptn1411/skill

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Automated .NET/C# decompilation and security analysis. Uses ilspycmd for batch decompilation with manual IL fallback. Detects obfuscators (ConfuserEx, .NET Reactor, Babel) and scans for license logic, API keys, and protection patterns.

Install

npx vskill@latest install ptn1411/skill/dotnet-decompiler

SKILL.md

.NET Decompiler & Analyzer

Decompile .NET assemblies to C# source and analyze for license logic, secrets, and protection patterns.
Language rule: All skill instructions use English.
Final summary presented to the user must be in Vietnamese.

0. Authorization & Routing

Operates under MASTER_POLICY.md §1-§2.

Sibling skillWhen
binary-identifierUpstream — confirms target is .NET
binary-patcherDownstream — patch license checks
symbolic-execution-toolsSolve license constraints symbolically
frida-hookerDynamic bypass via CLR hooking

How .NET Works

source.cs → C# compiler → IL bytecode (.dll/.exe with CLI header)
↓
Metadata tables (types, methods, fields, strings)
IL method bodies (CIL instructions)
Resources (embedded files, configs, Costura.Fody merged DLLs)

.NET decompilation is high-fidelity — IL bytecode retains most source structure (names, types, control flow). Obfuscators try to break this by renaming, encrypting strings, flattening control flow.


Step 1 — Detect .NET and Obfuscator

bash
python scripts/decompile_dotnet.py --detect-only target.exe
powershell
python scripts\decompile_dotnet.py --detect-only target.exe

Checks: mscoree.dll import, CLI header, BSJB metadata signature, obfuscator markers.


Step 2 — Decompile

bash
python scripts/decompile_dotnet.py target.exe --out decompiled/
powershell
python scripts\decompile_dotnet.py target.exe --out decompiled\

Decompiler priority:

  1. ilspycmd (ILSpy CLI) — install: dotnet tool install -g ilspycmd
  2. Manual IL metadata extraction (built-in, no deps)

Step 3 — Analyze

bash
python scripts/analyze_dotnet.py decompiled/ --out analysis/

Scans for:

  • License validation (LicenseManager, TrialCheck, ExpiryDate, HWID)
  • API keys and connection strings
  • Obfuscation artifacts (unprintable names, delegate CF, resource decryptors)
  • Costura.Fody merged assemblies

Workflow

1. DETECT → decompile_dotnet.py --detect-only → .NET version + obfuscator
2. DECOMPILE → decompile_dotnet.py → C# source
3. ANALYZE → analyze_dotnet.py → license logic + secrets + protection map
4. REPORT → Present findings IN VIETNAMESE

Final Report to User (always in Vietnamese)

🔷 Decompile .NET hoàn tất:
🏗️ Framework : .NET <VERSION>
🛡️ Obfuscator : <DETECTED or None>
📁 Files decompile: <COUNT> types
🔑 License logic : <FOUND/NOT FOUND>
🔍 Phát hiện:
- <license methods, API keys, protection patterns>
💾 Output: decompiled/
▶ Bước tiếp theo:
- binary-patcher: patch license check
- frida-hooker: hook CLR methods runtime

Anti-Patterns

❌ Don't✅ Do
Assume all .NET apps are unprotectedCheck for obfuscator first
Skip resource extractionCostura.Fody hides DLLs as resources
Use only GUI tools (dnSpy)ilspycmd automates batch decompilation
Ignore string encryptionConfuserEx encrypts strings — look for decryptor methods
Present findings in EnglishFinal summary in Vietnamese

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
150
Repository forks
90
7-day trend score
25

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/ptn1411/skill/dotnet-decompiler/badge)](https://verified-skill.com/skills/ptn1411/skill/dotnet-decompiler)

Something wrong with this skill or its page? Tell us.