Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Software like DotPeek to decompile and edit DLL's?

Sorry for this newbie question, but after 3 hours of banging my head on a wall I just got DotPeek and I found it is PERFECT for looking into .dll files. However I can't edit them at all. Is there free software like DotPeek that also lets me edit the DLL instead of just looking at it?

UPDATE: I was able to save all the .cs files in the .dll file separately and edit them in VS (Visual Studio). Now how do I get them back into the .dll file after editing?

THANK YOU!

like image 550
Anton Nel Avatar asked Mar 21 '16 19:03

Anton Nel


People also ask

Can you edit code in dotPeek?

However, dotPeek can't be used to edit disassembled code. This feature could be implemented in future. You can watch and/or vote for the corresponding feature request: In-place assembly editing: http://youtrack.jetbrains.com/issue/DOTP-533.

Is there a way to edit DLL files?

There are different ways to edit DLL files. You can download a DLL editor freeware, or get a DLL resource editor, here I strongly recommend you edit DLL files with a program named "Resource Hacker", which is a free and trustworthy DLL editing tool. You can easily download this program from the Internet.

How do I open and edit a DLL file?

You can easily open a DLL file in Visual Studio the same way you would any other file. To do so, click File in the menu bar at the top, followed by Open. Then click File and select the DLL file you want to open and click Open. This will open the DLL file in a new Resource Editor window.


1 Answers

Simpler method: You can use dnSpy to edit a managed DLL's bytecode directly using the right click -> "Edit IL instructions" option and save the DLL back from File -> Save Module.

dnSpy: Edit IL Instructions

like image 51
Salman von Abbas Avatar answered Nov 03 '22 14:11

Salman von Abbas