Question: Ilasm.exe cannot compile IlCodeExample
Author: Tease
Time:2009-09-05, 15: 05: 46
Link:Http://bbs.pediy.com/showthread.php? T = 97204
According to Zhou Zhi, ildasm.exeand ilasm.exe are one of the commonly used tools to crack donet, but sometimes we will find some Program It can be decompiled with ildasm, but it cannot be compiled back with ilasm. Some of them are caused by the inclusion of unmanaged code. The use of ilasm for such mixed classes is 100% unsuccessful and will not be discussed in this article. You may encounter the following situations in more cases:
The error is: failed to open managed resource file 'xxx. Resource' is mostly obfuscated by {SA. Why can't these resource files be found? As a result, we found that these resource files were not exported by The Decompilation program, so we used reflector to manually export them.
The file name is invalid. After the original program is obfuscated, the resource name is changed to a file name not supported by windows, so these files cannot be exported. To solve this problem, we can change it to a valid new resource file name during export. But don't forget, we should also modify the called old resource name to the new resource file name in the exported il code. Code can be implemented through getmanifestresourcenames () and getmanifestresourcestream (XXXX. But in order to put the dummies to the end, I specially wrote a program to help you.
The first option is to automatically export and modify the Il code. Normally, the exported il code can be directly compiled successfully, but the program is a program after all, it is impossible to predict all emergencies. You can use the second or third option to export the resource file and modify the Il code.
In my ears, we can try the program that cannot be compiled back.
After the ilcode is imported, we can use ilasm.exe to compile it.
How about it? It's pretty good.
Open it with reflector. The resource name has been modified.
The attachment provides crackme that cannot be decompiled back.
If you have better comments, please join us. In addition, this program is written in WPF. You need to install donet framework3.5 SP1 or a later version.
Http://bbs.pediy.com/attachment.php? Attachmentid = 33525 & D = 1256485356