TransWikia.com

How to debug a DLL written in .NET/C#?

Reverse Engineering Asked by Japjit Singh N. on March 24, 2021

I want to reverse engineer an application written in C#. I would like to set a breakpoint at a function and observe the input passed to it during the normal course of the application’s functioning.

2 Answers

I've used dnSpy in production for debugging as it can be put on a USB. It's perfectly capable of decompiling and debugging dll's.

dnSpy screenshot

It has a pretty rich set of features. It's able to attach to running .net processes, decompile the code, edit variables at breakpoints and make some code changes on the fly.

Answered by Jonathan Van Dam on March 24, 2021

Try this: https://github.com/hexfati/SharpDllLoader

A simple C# executable that invokes an arbitrary method of an arbitrary C# DLL. The project is useful to analyze malicious C# DLL through the popular tool DNSpy.

Answered by Ant on March 24, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP