-
Notifications
You must be signed in to change notification settings - Fork 13
How to decompile an .NET EXE
Misha edited this page Mar 18, 2021
·
2 revisions
You can use this to decompile the Entry Point (main function) of an C# Executable.
var fl = new DotNetFile(file);
var decompiler = new IlDecompiler(fl.EntryPoint);
Console.WriteLine("Decompiltion of Main function:");
Console.WriteLine("");
var ilFormater = new ILFormater(decompiler.Decompile());
var outputString = ilFormater.Format();
Console.WriteLine(outputString);
The file variable is a byte array that contains the Raw .NET Executable.