ptn1411/skill/dotnet-patcher

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.

Patch .NET assemblies to bypass license checks — IL bytecode patching, method replacement, strong name removal, anti-tamper NOP. Works on raw bytes without requiring dnlib/Mono.Cecil at runtime.

Install

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

SKILL.md

.NET Patcher

Patch .NET assemblies at the IL bytecode level to bypass license validation, remove anti-tamper, strip strong names, and force method returns.
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
dotnet-decompilerDecompile first to identify patch targets
dotnet-keygenGenerate keygen instead of patching
binary-patcherFor native (non-.NET) patches
frida-hookerRuntime bypass without file modification

Step 1 — Find Patch Targets

Analyze decompiled source to identify license check methods:

bash
python scripts/find_patch_targets.py decompiled/ --out targets.json
powershell
python scripts\find_patch_targets.py decompiled\ --out targets.json

This scans for:

  • Methods returning bool with license-related names
  • if/else blocks checking IsRegistered, IsLicensed, CheckLicense
  • String comparisons against serial/key patterns
  • DateTime comparisons (trial expiry)
  • Network calls to license servers

Step 2 — Apply Patches

Auto-patch license checks (scan + patch)
bash
python scripts/patch_dotnet.py target.exe --auto --out patched/target.exe
Patch specific method (force return true)
bash
python scripts/patch_dotnet.py target.exe --method "LicenseManager::IsValid" --force-true --out patched/
Patch specific method (force return false — disable feature check)
bash
python scripts/patch_dotnet.py target.exe --method "Security::IsTrialExpired" --force-false --out patched/
Remove strong name
bash
python scripts/patch_dotnet.py target.exe --remove-strong-name --out patched/
NOP anti-tamper module constructor
bash
python scripts/patch_dotnet.py target.exe --nop-cctor --out patched/
Patch string comparison (make any key valid)
bash
python scripts/patch_dotnet.py target.exe --patch-strcmp "ValidateKey" --out patched/

Step 3 — Verify Patch

bash
python scripts/patch_dotnet.py patched/target.exe --verify

Checks:

  • Assembly still loads (valid metadata)
  • Patched methods have correct IL
  • Strong name removed if requested
  • File size delta report

Final Report (Vietnamese)

🔧 .NET patch hoàn tất:
🎯 Target : <FILENAME>
📐 Methods patched : <COUNT>
🔓 License bypass : <YES/NO>
🔑 Strong name : <REMOVED/INTACT>
🛡️ Anti-tamper : <NOPPED/INTACT>
📦 Output size : <SIZE> (delta: <+/- BYTES>)
💾 Output: patched/

Anti-Patterns

❌ Don't✅ Do
Patch without decompiling firstAlways analyze decompiled source to find exact targets
Modify random bytes blindlyUse IL-aware patching (opcode-level)
Forget to remove strong nameRemove SN or re-sign — runtime will reject tampered signed assemblies
Skip anti-tamper checkNOP <Module>.cctor if it contains integrity checks
Patch only one checkScan for ALL license checks — apps often have multiple
Ignore Costura.Fody DLLsExtract and patch embedded license DLLs too

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-patcher/badge)](https://verified-skill.com/skills/ptn1411/skill/dotnet-patcher)

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