News:

Pretty crazy that we're closer to 2030, than we are 2005. Where did the time go!

Main Menu

A look at disassembled Java

Started by Joe, September 29, 2009, 10:49:17 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Joe

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 - Plain disassembled code from javap -c TAHCBot > TAHCBot.jasm

TAHCBot.java - I took that code and converted it back to Java. Not that it does anything..
Quote from: Camel on June 09, 2009, 04:12:23 PMI'd personally do as Joe suggests

Quote from: AntiVirus on October 19, 2010, 02:36:52 PM
You might be right about that, Joe.


iago

I found a really good Java decompiler awhile back, I can look it up if it'll be any use to you.

Camel

#2
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.

<Camel> i said what what
<Blaze> in the butt
<Camel> you want to do it in my butt?
<Blaze> in my butt
<Camel> let's do it in the butt
<Blaze> Okay!

Joe

That'd be cool, iago.

TAHCBot operated on the BnChat protocol which is defunct. I rewrote this class out of boredom, not necessity.
Quote from: Camel on June 09, 2009, 04:12:23 PMI'd personally do as Joe suggests

Quote from: AntiVirus on October 19, 2010, 02:36:52 PM
You might be right about that, Joe.


iago

I haven't been home since I made that offer.. I'll post it when I am. :)

Joe

Where did you crash last night, some girls house? :P
Quote from: Camel on June 09, 2009, 04:12:23 PMI'd personally do as Joe suggests

Quote from: AntiVirus on October 19, 2010, 02:36:52 PM
You might be right about that, Joe.


iago

Technically yes, as my mother IS, in fact, female.

Sidoh

Quote from: iago on October 01, 2009, 04:52:20 PM
Technically yes, as my mother IS, in fact, female.

that seems a bit... incestuous...

iago

Quote from: Sidoh on October 01, 2009, 04:53:22 PM
Quote from: iago on October 01, 2009, 04:52:20 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