?? steps
字號(hào):
Steps to hack the Program as of 3/18/02 -----------------------------------------------------------Sorry to inform anyone using this software about this, buthere it is. I am currently trying to figure out a way aroundthis, but in the mean time I would suggest not using thissoftware for yor encryption needs. You may feel that theprotection is enough for your program, but if you have seriousissues with keeping source code secure, this application shouldNOT be used. Sorry it hasn't worked out, hopefully I can finda fix to this in the very near future.1. Unjar the application.2. Open the CryptLoader class in a hex editor.3. Find the access flag value for the class (at the end of the constant pool around byte 0x98B).4. Change the access from 0x31 to 0x21 to remove the "final" modifier.5. Skip past the this_class (2 bytes) and the super_class (2 bytes) values. You will then have 2 bytes of 0's which represent the interfaces_count. Since it is 0, there are no interfaces so the field_count value will be next. This value should be 0x04 (this is the number of fields the class has).6. The value right after the fields_count is the access_flags for the first field of the class. In this class that variable is the map. Change the access_flag to 0x01.7. Skip 32 bytes and you should be at a value 0x03 (the method_count).8. Now the fun is to find the convertKey method and change its access from private to public. The first method has an access variable of 0x01 so we know that that is already public and does not need to be changed so, now skip to byte 0xACA (or look up the class file format and count by hand), and change the value to 0x01 to make the convertKey method public.9. Save the changes made and compile the Hack.java file, it should compile correctly if you changed the right values. If you get errors that the access is not correct then you did something wrong.10. Now open the main class file (TheMainClass2.class) and find the String value that is the key. This isn't too hard because the value looks like a String of hex digits, but it is in text form. Write this value down because this key is what the Hack program takes as a command line parameter.11. Run the hack `java Hack fileToDecrypt adef344334` replacing fileToDecrypt with the name of the class you are decrypting (minus .class) and replace 'adef344334' with the key you wrote down.12. The decrypted class file will be saved in a file called "thefile".13. Now copy the "thefile" file to fileToDecrypt.class and repeat steps 11 and 12 until all the files in the application have been decrypted.14. Once all the class files for the application have been decrypted you can simply run the program as usual (look in the TheMainClass2.class file for the name of the main class if you are not sure).Once you have hacked the CryptLoader class it is easy to get all the classfiles into the original unencrypted state. So now you can use that classto hack any program that uses this software. Of course, if the API changesthings will screw up, but that is very unlikely. Anyone that understandsthe class file format can make these changes directly to the class file withno need for decompilation. I would suggest simply downloading a niceJava decompiler and do this directly to the source code, but this file isto simply show that a decompiler is not needed in order to get the originalclass files back.Now for reverse engineering of the files you just decrypted you will probablywant to decompile the application in order to see the code, so these steps willhelp you do that.Condensed version with a decompiler available-----------------------------------------------------------1. Decompile the CryptLoader.class file.2. Change the access from `public final class` to simply `public class`3. Change the access of the `map` variable from `private` to `public`4. Change the access of the `convertKey` method from `private` to `public`5. Recompile the CryptLoader.java file to make the changes.6. Compile the Hack.java file 7. Follow the above instructions from step 10.
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -