PDA

View Full Version : Simulate Functions?!


Glubsch
08-18-2009, 10:39 AM
Hi everyone,

this is my first post here. I have a "problem" and dont exactly know where to find a good solution. I think this forum is the best place to ask.
So to my problem: I have a java program that I want to "control" a bit. I just have knowledge about programming in Java and C# and I tried to simulate the operations I want to do in the program with messages. I can send them and simulate mouseclicks and so on and it is working BUT it is a very shabby solution. It would be great if there is a way to just work with the memory of the program to set parameters and so on. Something like a cheating-tool for the health-bar in a game but a bit more complex. For example now I must simulate 3 mouse clicks to do what I want in the program. I think I would need to set whole blocks of memory but I dont know where to find the correct blocks and I dont know if the same variable has the same memory address each time and so on.
So you see I dont see the light at the moment and need some help with this. If someone can lighten up some things that would be great.

Cheers Glubsch

By the way, I know my english isnt that good sometimes, please excuse me for this.

mindoverflow
08-18-2009, 01:39 PM
hi,

If you see it as a cheating tool, then, would a java debugger satisfy your needs ? something similar to JSwat. I never used it, but seems it could be helpful.

Glubsch
08-18-2009, 03:21 PM
Hmm yes I also thought about something like that BUT I dont have the class files or a jar or what, I just have an executable. Do you think a java debugger can recreate something out of it? I fear thats not an option...

I f I am wrong please dont hesitate to tell me ;)

Cheers Glubsch

mindoverflow
08-18-2009, 05:24 PM
Then i guess it's no more a java program, it's an ordinary exe file then try with an ordinary debuger. I have no experience with such files.

Glubsch
08-19-2009, 12:46 PM
Hi, thx for the answer.
I think OllyDBG would work but I have no knowledge how to achieve what I want with it.
I hope soneone can help me with that.

Best regards Glubsch

mindoverflow
08-19-2009, 01:16 PM
If you know the compiler used to produce the exe, then you'll maybe find a decompiler, or a signature file for IDA or something such, cuz it almost sure links to it it's own functions library, because it's a direct translation from java, then if you could get a human readable function name, then it would be a lot easier. Try looking at the file with a hex editor, or use peid(i doubt this one, but give it a try).

Then, for ollyDbg, look for ollyhdbg tutorials in google, there are plenty. My self I don't know how to use it.