Page 1 of 1

best way to get data from a java web start game.

Posted: Mon Oct 14, 2013 11:31 am
by Exempt
What is the best way to get data from a java web start game? Im sure it can be done with packets but that is extremely tedious.

Re: best way to get data from a java web start game.

Posted: Mon Oct 14, 2013 2:24 pm
by Administrator
You, hopefully, can extract just the content you need (the .jar, for example) rather than needing to run it in a browser. Run that separately (as opposed to through a browser plugin) which will make it much easier to access the game's memory through read/write functions.

You probably don't want anything to do with sockets. You're right that it would be a ton of extra work, but I suppose you could make a clientless bot that way.

Re: best way to get data from a java web start game.

Posted: Mon Oct 14, 2013 3:41 pm
by Exempt
The game does consist of a bunch of jar files and such but ive never heard of a way to launch it other then using the website play.button or by using the java control panel. If i understamd what youre saying i should be able to lauch it more like a normal .exe game and use say cheat engine to get addresses?

Edit: Perhaps something like http://jsmooth.sourceforge.net/ is what you mean? I'm sure it can be done without apps like this but it's what I found while searching around.

Re: best way to get data from a java web start game.

Posted: Mon Oct 14, 2013 9:19 pm
by Administrator
You should be able to launch the .jar files by opening it with the Java VM. Try just double-clicking the main .jar.

Re: best way to get data from a java web start game.

Posted: Tue Oct 15, 2013 10:03 am
by Exempt
Hm, i will check into it when i get home.

Re: best way to get data from a java web start game.

Posted: Tue Oct 15, 2013 11:55 am
by BlubBlab
*.jar is archive files format that exist since DOS time.
In the packet is a file which say where to start for the java-vm.

If I want cheat on such a game I would simple reverse engineering the code in Java and C#(and all dot net) it is very simple, their are tools for that and unlike in c the whole var and class names are their.

Next step would be then connect with your own version of the game.

Re: best way to get data from a java web start game.

Posted: Tue Oct 15, 2013 4:16 pm
by Exempt
The game doesn't really allow you to edit it, when you do try to edit the files it just re-downloads them.

edit: I'm not finding any .jar file for it yet... I don't know much around how java stores stuff normally. I can use the jnpl to launch it but I haven't found a jar yet.

Re: best way to get data from a java web start game.

Posted: Thu Oct 17, 2013 11:32 am
by BlubBlab
Seek *.class I don't know where the browser save them put likely in a tmp directory.
The problem is if you want change the program while running it isn't like a c prog because the program running in the java vm and the java vm is a program on its own, so it is twice at complex then normal.

The java vm simulate basically a CPU with function stack and a heap,so you can change the PC and push/pop object on it.
If you find the right addresses, but this is only theoretically I don't know which counter maser they use to scramble memory.