Explore an EXE or DLL with dnSpy


This post will be a bit different than all my previous as I will not speak about PowerShell. I will show you a nice tool called dnspy that allows you to open and explore a DLL or EXE file.

Context
You have a dll or an exe file, for instance a library dll file containing WPF functionnalities, and you want to understand how works a specific method or something else.

What is dnSpy ?
dnSpy is a free .NET debugger and assembly editor.
You can find the source project here 
You can use it to easily explore a DLL or an EXE file for instance.

Get dnSpy
1 / Download the exe from here. In my case I used dnSpy-net472.zip 
2 / Extract the ZIP
3 / Open the extracted folder
4 / The EXE to use is dnSpy.exe


Explore a DLL 
For this part we will explore the MahApps.Metro.dll
1 / Run dnSpy.exe
2 / Click on File then Open
3 / Select the DLL file to open
4 / The selected assembly will be available in the Assembly explorer part

5 / Develop the dll to navigate into it



Explore an EXE
For this part we will explore the BDD.Monitor.Service.dll from MDT
1 / Run dnSpy.exe
2 / Click on File then Open
3 / Select the EXE file to open
4 / The selected assembly will be available in the Assembly explorer part

5 / Develop the dll to navigate into it



Share this

Related Posts

Previous
Next Post »