Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to crack the compilation and decompilation of .net programs

2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

This article mainly shows you "how to crack .net program compilation and decompilation", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "how to crack .net program compilation and decompilation" this article.

1 use tools

Reflector.exe is used to view. Net code, needless to say, it is a necessary artifact to learn. Net.

Ildasm.exe: used to compile dll,exe to an IL file

Ilasm.exe: used to compile IL files back to dll or exe

EmEditor text processing tool, if you don't have me, you can download it with the registration code EmEditor.rar.

Basic knowledge of 2Ildasm and ilasm:

The use of ilasm.exe and ildasm.exe

First open the cmd command. Cd to C:\ Program Files\ Microsoft Visual Studio 8\ SDK\ v2.0\ Bin

Then pull in the dll file or exe file you want to view (because we are going to use the command, you can also find each directory by opening ildasm.exe directly)

For example, text.dll (with console.writeline ("hello word"))

Ildasm text.dll opens dll to find a way to view

Ildasm text.dll / output:text.il compiles an il file by pressing enter (can be opened in notepad and saved by editing hello word)

Then use ilasm tools to disassemble into dll or exe files

Ilasm text automatically finds the text4.il file by pressing enter and compiles it to text4.exe

Or ildasm text / dll can be compiled into a text.dll file (remember to delete the original text4.dll first)

3 Let's get to work

Now I have a program with an encrypted dog that can't get in.

Let's crack it.

Open our program with reflector and start analyzing where there is verification

You have to be patient in this step.

Found a way to exit without an encryption dog.

Now open our program with Ildasm.exe and pour it out into an IL file

Then convert it to utf-8 format.

Four files will be generated

The most important thing is the il file.

Open it with EmEditor

Find the method we want to modify SetDoLock ()

In my case, I delete them and change them directly to

.method public hidebysig instance void void SetDoLock () cil managed {/ / Code size 103 (0x67) .maxstack 5 IL_0000: ret} / / end of method Login::SetTextBox

Save

Now it's time for ilasm.exe to come out and compile the IL file back to dll or exe.

There's already a way to use it. I won't say much about it.

C:\ WINDOWS\ Microsoft.NET\ Framework\ v2.0.50727 > ilasm.exe C:\ IL\ aa.il

All right, take a look at the generated exe.

Put the generated exe back into the original program to run it.

All right, cracked it!

The above is all the contents of the article "how to crack the compilation and decompilation of .net programs". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report