Jump to content
Tuts 4 You

Unpacking Jar2Exe 2.1: Extracting The Jar File At All 3 Protection Lev


Recommended Posts

Posted

Great tutorial! I used the first method where you save into a new file from winhex and have one problem after unpacking, when I run the jar file I get invalid or corrupted jarfile. Any idea how to fix this error. I'm guessing that JVM is looking for a main class, which I can't find. Thanks


Posted

Hello Ddillo,


If you look directly above the archive in the hex editor, you can see the mainclass name listed. Also note, that if your target is using the second or third protection level, the archive at the end only contains the regexlib which is used by the runtime to process the embedded classes. 


Posted

Hello chessgod101,


 


Thanks for getting back with me. The funny thing about the file is that all the classes are dumped with the exception of the jar file that contains the main class. Is it possible that only the jar file that contains the main class file is the only one that is encrypted. I say this because I was able to unpack the other classes with your first method. Can not figure out what I am missing. Also, I tried your second method, but ollydbg does not break on the hardware break point that I set for the address that was retrieve from resource hacker RCData section. Any Ideas?


Posted

Hello chessgod101,


 


Disregard, I found the missing class. Again, thanks for the great tutorial.


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...