Hack Mono DLL

Modifying C# is a really easy task if code was compiled only to IL. In this form, files (DLLs) can be executed, so it’s possible to find apps with this compilation method. To edit the code we will need:

  • DnSpy

First of all we need an app. Here is a simple program showing a text:

By looking at the code, it’s easy to say that only by modifying the code, we can accomplish changing this text 

Start with locating DLL: what we want to modify. For Unity, game logic is stored in

[AppName]/Managed/Assembly-CSharp.dll

Start DnSpy

Now open DLL file or drag and drop it to Assembly Explorer

After opening and decompiling the code, we can search for class, what we want to edit.

As you can see, decompiled code is very similar to the original.

Right click where you want to edit code and choose “Edit Method”.

Now a new window will pop up and allow you to write code. Change what you want, here for example, I changed the string from “NOT HACKED” to “HACKED, EASY…”. Press “Compile” to apply modification.

At the end you must save the modified DLL, you can overwrite the previous file like I did.

Since now, if you start the app you will see the new text.

Leave a Reply

Your email address will not be published.