dnSpy Cheatsheet
What It Is
.NET debugger and assembly editor. Decompiles .NET binaries to readable C# code.
Quick Start
- Open dnSpy
- File → Open → Select .NET executable/DLL
- Browse the assembly tree in the left panel
- Click methods to see decompiled C# code
Key Features
- Decompilation: Full C# source reconstruction
- Debugging: Set breakpoints and step through
- Editing: Modify IL code and save
- Search: Find strings, methods, types across assemblies
Analysis Workflow
- Open sample → expand assembly tree
- Find entry point (usually
Mainmethod) - Look for configuration class (C2 address, encryption key)
- Search for suspicious namespace/class names
- Check for obfuscation (Confuser, .NET Reactor)
Shortcuts
Ctrl+Shift+K– Search assembliesF5– Start debuggingF9– Toggle breakpointF11– Step intoF10– Step over
