Author Topic: A look at disassembled Java  (Read 6369 times)

0 Members and 1 Guest are viewing this topic.

Offline Joe

  • B&
  • x86
  • Hero Member
  • *****
  • Posts: 10319
  • In Soviet Russia, text read you!
    • View Profile
    • Github
A look at disassembled Java
« 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 - 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..
I'd personally do as Joe suggests

You might be right about that, Joe.


Offline iago

  • Leader
  • Administrator
  • Hero Member
  • *****
  • Posts: 17914
  • Fnord.
    • View Profile
    • SkullSecurity
Re: A look at disassembled Java
« Reply #1 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.

Offline Camel

  • Hero Member
  • *****
  • Posts: 1703
    • View Profile
    • BNU Bot
Re: A look at disassembled Java
« Reply #2 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.
« Last Edit: September 30, 2009, 03:15:29 pm by Camel »

<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!

Offline Joe

  • B&
  • x86
  • Hero Member
  • *****
  • Posts: 10319
  • In Soviet Russia, text read you!
    • View Profile
    • Github
Re: A look at disassembled Java
« Reply #3 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.
I'd personally do as Joe suggests

You might be right about that, Joe.


Offline iago

  • Leader
  • Administrator
  • Hero Member
  • *****
  • Posts: 17914
  • Fnord.
    • View Profile
    • SkullSecurity
Re: A look at disassembled Java
« Reply #4 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. :)

Offline Joe

  • B&
  • x86
  • Hero Member
  • *****
  • Posts: 10319
  • In Soviet Russia, text read you!
    • View Profile
    • Github
Re: A look at disassembled Java
« Reply #5 on: October 01, 2009, 04:35:22 pm »
Where did you crash last night, some girls house? :P
I'd personally do as Joe suggests

You might be right about that, Joe.


Offline iago

  • Leader
  • Administrator
  • Hero Member
  • *****
  • Posts: 17914
  • Fnord.
    • View Profile
    • SkullSecurity
Re: A look at disassembled Java
« Reply #6 on: October 01, 2009, 04:52:20 pm »
Technically yes, as my mother IS, in fact, female.

Offline Sidoh

  • Moderator
  • Hero Member
  • *****
  • Posts: 17634
  • MHNATY ~~~~~
    • View Profile
    • sidoh
Re: A look at disassembled Java
« Reply #7 on: October 01, 2009, 04:53:22 pm »
Technically yes, as my mother IS, in fact, female.

that seems a bit... incestuous...

Offline iago

  • Leader
  • Administrator
  • Hero Member
  • *****
  • Posts: 17914
  • Fnord.
    • View Profile
    • SkullSecurity
Re: A look at disassembled Java
« Reply #8 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