Clan x86

Technical (Development, Security, etc.) => General Programming => Tutorials, References, and Examples => Topic started by: Joe on September 29, 2009, 10:49:17 pm

Title: A look at disassembled Java
Post by: Joe on September 29, 2009, 10:49:17 pm
I found a CLASS file from an old project, TAHC Bot. I figured I'd see what all it did, and instead of finding a chat-enabled BNET server, I figured I'd do it the hard way.

TAHCBot.jasm (http://www.javaop.com/joestuff/TAHCBot.jasm.txt) - Plain disassembled code from javap -c TAHCBot > TAHCBot.jasm

TAHCBot.java (http://www.javaop.com/joestuff/TAHCBot.java.txt) - I took that code and converted it back to Java. Not that it does anything..
Title: Re: A look at disassembled Java
Post by: iago on September 30, 2009, 08:29:16 am
I found a really good Java decompiler awhile back, I can look it up if it'll be any use to you.
Title: Re: A look at disassembled Java
Post by: Camel on September 30, 2009, 03:11:59 pm
I make an effort to always package the source when I create JARs so that I will never have to do this.

Incidentally, "do_static" isn't just magically called by the VM; it's kicked off when the ClassLoader finishes loading the class. Also, if you put any code inside a static { .. } block, that will go in do_static.
Title: Re: A look at disassembled Java
Post by: Joe on September 30, 2009, 10:57:03 pm
That'd be cool, iago.

TAHCBot operated on the BnChat protocol which is defunct. I rewrote this class out of boredom, not necessity.
Title: Re: A look at disassembled Java
Post by: iago on October 01, 2009, 09:32:52 am
I haven't been home since I made that offer.. I'll post it when I am. :)
Title: Re: A look at disassembled Java
Post by: Joe on October 01, 2009, 04:35:22 pm
Where did you crash last night, some girls house? :P
Title: Re: A look at disassembled Java
Post by: iago on October 01, 2009, 04:52:20 pm
Technically yes, as my mother IS, in fact, female.
Title: Re: A look at disassembled Java
Post by: Sidoh on October 01, 2009, 04:53:22 pm
Technically yes, as my mother IS, in fact, female.

that seems a bit... incestuous...
Title: Re: A look at disassembled Java
Post by: iago on October 01, 2009, 05:01:48 pm
Technically yes, as my mother IS, in fact, female.

that seems a bit... incestuous...
I didn't say anything about what we did, or sleeping arrangements. It's your own imagination that wants to see the incestuousness. :P