|
by +Alt-F4 , 9 January 1998 |
f | |
|
Therefore it suits us all A LOT that +ALT-F4 shows here the (incredibly simple) way to reverse the main Java disassembler: Wingdis. In fact, after the sad demise of the clever Author of the mocha disassembler (hope he'll enjoy some reversing possibilities wherever he did land after having left us :-) Wingdis will be one of the main tools we all will have to use in the next months That said, we'll use Wingdis until our own +HCU '98 tools will be ready -at the moment they seem still "under development" :-( Anyway all these java essays are GOOD NEWS! Java is coming! Die Gates die in flames, you horrible slimy bloated bane! Die die die with all your useless overbloated applications! :-) So I'm happy to host another fine "Java" +HCU essay, coming to you from mighty +ALT-F4 pen (and brain). |
f | That's how the light gets in |
|
(x)Beginner ( )Intermediate ( )Advanced (
)Expert
A simple Essay showing how you can patch a fondamental tool in order to crack and patch Java programs. If you can understand Java, you can understand this essay! If you cannot understand Java, you'll sink with gates Operating system in a well deserved oblivion! |
|
Cracking WingDis 2.12
(Preparing ourselves for 'real' Java cracking) Written by +Alt-F4 |
|
The other day I downloaded ICQ java, because I wanted to decompile it(Imagine the possibilities!) I tried decompiling with Mocha, but unfortunately it didn't work(Mocha is a Beta version,and always will be, as sadly, the author died) Searching for other de-compilers I came accross WingDis The output is only slightly inferrior to Mocha, but it can decompile all java programs I have come across, and it is being continually updated The program has a 5 day limit though! In this essay I will show how I patched WingDis. |
|
IDA Hex Editor(May I suggest UltraEdit?) ~ Traget: WingDis, available at http://www.wingsoft.com |
|
Irrelavent(I only bother checking history on hard targets...) |
H E E S S A Y |
Search for the text "trial" in all the class files in the wingdis directory. The only file you will find containing the text is, ClassReader.class, so this is our immediate target. Obviously the first thing to try is to use Wingdis on itself to decompile ClassReader. "Sorry, WingDis is not allowed to decompile itself." Oh good! Another thing to crack! Time Cracks are always boring, so lets crack this first!Allowing WingDis to decompile itself
Mocha doesn't work, so load up ClassReader.class in IDA, and search
for the "trial" again.
Getting rid of the time limitRun WingDis on itself, and search the source code until you find the date check:Fixing the comments at the start of each page At the start of each disassembled file, there is a comment: // This program is generated by WingDis 2.12 Trial Version, a product from WingSoft // For more information about WingSoft, please visit http://www.wingsoft.com I wanted to keep a comment there(So I can know what I have written, and what I have decompiled), but I don't like being bothered about irrelevant things. This is simple to fix, just hex edit ClassReader.class, and change the text (Nice of the programmers to put the entire protection inside one file for us!) To make things easier, don't change the length of the comments, just change them to something like: // This source code was decompiled using WingDis 2.12 ALT-F4_HCU Version //********************************************************************** Appendix A:Java OpcodesHere is a quick list of some of Java Opcodes I got just from looking at the source code. Cmnd Opcode Hex ifge 156 xxx xxx :9c iflt 155 xxx xxx :9b Goto 167 xxx xxx :a7 ifieq 159 xxx xxx :9f Call 182 xxx xxx :b6 For a more complete source, go to http://www.palenaka.com/~palenaka/que/quebooks/sej2e/36javafi.htm (c) +Alt-F4 9 Jan 1998 All rights reversed. |
|
I wont even bother explaining you that you should BUY this target program if you intend to use it for a longer period than the allowed one. Should you want to STEAL this software instead, you don't need to crack its protection scheme at all: you'll find it on most Warez sites, complete and already regged, farewell. |
|
I hope you enjoyed this essay, which shows how easily we
can patch Java! With the combination of WingDis, IDA and a hex-editor,we can now crack anything the java programmers will throw at us! |
|
homepage links anonymity +ORC students' essays academy database tools cocktails antismut CGI-scripts search_forms mail_fravia+ Is reverse engineering legal? |