I only do a simple small example, give everyone a train of thought, Roar ~ ~ ~ ~
1 Using Tools
Reflector.exe used to view. NET code this is not much to say. NET essential artifact
Ildasm.exe: Used to compile dll,exe into IL files
Ilasm.exe: Used to compile IL files back to dll or EXE
EmEditor Text Processing Tool This is something that everyone, without me, has a download. There is a registration code Emeditor.rar
2Ildasm and ILAsm basic knowledge:
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 the DLL file or EXE file you want to see in here (because we're going to use the command, you can just open the ildasm.exe and you'll find the directories open)
such as Text.dll (There are Console.WriteLine ("Hello word")
ILDASM Text.dll Open DLL Find method to view
ILDasm text.dll/output:text.il by pressing ENTER to compile the Il file (available Notepad to open and edit Hello Word save)
Then disassemble the DLL or EXE file with the ILAsm tool
ILAsm text Press ENTER to automatically find text4.il files and compile into Text4.exe
Or ildasm Text/dll can be compiled into Text.dll files (remember to delete the original Text4.dll first)
3 Get to work.
Now, I have a code dog program that can't get in.
Start cracking.
Open our program with reflector and start analyzing where the validation is
This step should be patient enough.
Found a way to quit without encrypting a dog.
Now open our program with Ildasm.exe and pour the program into the Il file.
Turn it into utf-8 format.
4 files are generated
The main thing is the Il file.
Open with EmEditor.
Find the method we want to modify Setdolock ()
In my case, I'll remove them and change them directly
. method public Hidebysig instance void Setdolock () cil managed {//code size (0x67). Maxstack 5 Il_0000:ret}//EN D of Method Login::settextbox
Save
Now it's time to use Ilasm.exe. To compile the Il file back to a DLL or EXE
There's already a way to do it, and I'm not going to say much.
Okay, look at the generated exe.
Put the generated exe back in the original program to run it.
All right, crack success!!
Author: bluejance Origin: http://www.cnblogs.com/li-peng/