| View previous topic :: View next topic |
| Author |
Message |
knyazev44 How do I cheat?
Reputation: 0
Joined: 16 Aug 2021 Posts: 6
|
Posted: Tue Aug 17, 2021 5:18 am Post subject: Different opcode for one value |
|
|
*Game is written on java*
My goal is to break down the recoil. So I started with looking for pitch, that shooting and see what writes to pitch while shooting. I found one, replace it with nop and all is working but here is a catch. After some time it stops working and another thing writes to pitch, so I need to nop it. And after some time it again stops working and again another one start writing to pitch and I have to nop it again and it repeats again and again and again!
There is no thing like ONE and just ONE thing that responds for the recoil making it changes over time so how can I catch this?
Since it's java pointer scan isn't doing much (almost nothing), tried sig scan instead and seen a tutorial on YT called "C++ Signature/Pattern Scanning Tutorial" but ollydbg doesn't recognize java games so I'm confused how to do it[/url] |
|
| Back to top |
|
 |
LeFiXER Grandmaster Cheater Supreme
Reputation: 20
Joined: 02 Sep 2011 Posts: 1069 Location: 0x90
|
Posted: Tue Aug 17, 2021 6:34 am Post subject: |
|
|
The C++ signature scanning tutorial won't help with Java since it's completely different. Java is an interpreted language which means it needs an interpreter to execute its code line by line and Java does this with its own virtual machine.
If it's a jar file you can directly open it and modify the code.
https://www.talksinfo.com/how-to-edit-class-file-from-a-jar/ |
|
| Back to top |
|
 |
knyazev44 How do I cheat?
Reputation: 0
Joined: 16 Aug 2021 Posts: 6
|
Posted: Tue Aug 17, 2021 6:53 am Post subject: |
|
|
| LeFiXER wrote: | The C++ signature scanning tutorial won't help with Java since it's completely different. Java is an interpreted language which means it needs an interpreter to execute its code line by line and Java does this with its own virtual machine.
If it's a jar file you can directly open it and modify the code.
|
It's not a jar file. I open the game with launcher and want to remove vertical recoil I look straight up and scan for -90 float then look straight down and scan for 90 float it finds 10 thing one of them while locking (press space button) not allow you to move your camera up and down and kinda shake it when you do it and then return to it's initial position. I lock it just for test, but when unlocked I right click it and "show what writes to this address". When start shooting 2 things write to this address: one of them are recoil itself and the second is stabilization. If I replace both of them with nop I got no recoil. But after some time when you shooting another 2 things start writing to this address and I have to replace them with nops again and again and again, as I explained. I'm noob so I don't know what jar file have to be opened and how to edit it in terms of cheat engine or how to remove recoil is this particular scenario so If you can please put some time and effort to explain what you meant by that more clear |
|
| Back to top |
|
 |
LeFiXER Grandmaster Cheater Supreme
Reputation: 20
Joined: 02 Sep 2011 Posts: 1069 Location: 0x90
|
Posted: Tue Aug 17, 2021 8:18 am Post subject: |
|
|
| Check the directory of the game, see if there is a jar file in there. In the disassembler view window of the address you found the recoil value, right-click to bring up the popup menu and click Select Current Function. Paste a screenshot of the whole function and perhaps me, or someone else, can advise better. |
|
| Back to top |
|
 |
knyazev44 How do I cheat?
Reputation: 0
Joined: 16 Aug 2021 Posts: 6
|
Posted: Tue Aug 17, 2021 9:03 am Post subject: |
|
|
| LeFiXER wrote: | | Check the directory of the game, see if there is a jar file in there. In the disassembler view window of the address you found the recoil value, right-click to bring up the popup menu and click Select Current Function. Paste a screenshot of the whole function and perhaps me, or someone else, can advise better. |
|
|
| Back to top |
|
 |
LeFiXER Grandmaster Cheater Supreme
Reputation: 20
Joined: 02 Sep 2011 Posts: 1069 Location: 0x90
|
Posted: Tue Aug 17, 2021 9:11 am Post subject: |
|
|
| Is that every highlighted line? Also, what game is it? |
|
| Back to top |
|
 |
knyazev44 How do I cheat?
Reputation: 0
Joined: 16 Aug 2021 Posts: 6
|
Posted: Tue Aug 17, 2021 9:16 am Post subject: |
|
|
| LeFiXER wrote: | | Is that every highlighted line? Also, what game is it? |
That game is "Stalcraft" it's global minecraft modification that adds weapons and all that staff.
No, if you move down or up you will see other things |
|
| Back to top |
|
 |
ParkourPenguin I post too much
Reputation: 152
Joined: 06 Jul 2014 Posts: 4718
|
Posted: Tue Aug 17, 2021 9:23 am Post subject: |
|
|
Java generally gets JIT-compiled- not interpreted.
JVM bytecode can get recompiled e.g. if the function is called often enough and the JVM decides it's worth optimizing more than it did previously. There might be periodic integrity checks too; I don't know.
If you want to make a more permanent change, you're better off changing the bytecode. _________________
I don't know where I'm going, but I'll figure it out when I get there. |
|
| Back to top |
|
 |
LeFiXER Grandmaster Cheater Supreme
Reputation: 20
Joined: 02 Sep 2011 Posts: 1069 Location: 0x90
|
Posted: Tue Aug 17, 2021 10:05 am Post subject: |
|
|
Java is both, compiled and interpreted. The source code is compiled to byte code as you stated but upon execution the binary, the file is then interpreted by the virtual machine.
I agree with what ParkourPenguin suggests, changing the code itself would be a better option. |
|
| Back to top |
|
 |
knyazev44 How do I cheat?
Reputation: 0
Joined: 16 Aug 2021 Posts: 6
|
Posted: Tue Aug 17, 2021 10:14 am Post subject: |
|
|
| LeFiXER wrote: | Java is both, compiled and interpreted. The source code is compiled to byte code as you stated but upon execution the binary, the file is then interpreted by the virtual machine.
I agree with what ParkourPenguin suggests, changing the code itself would be a better option. |
I'm newbie here I just want to remove recoil I didn't expect it to be so hard. Is there some kind of tutorials about how to remove recoil on java game with byte-code changing or what? If so give me a link |
|
| Back to top |
|
 |
Frouk Grandmaster Cheater
Reputation: 5
Joined: 22 Jun 2021 Posts: 510
|
Posted: Tue Aug 17, 2021 10:28 am Post subject: |
|
|
https://forum.cheatengine.org/viewtopic.php?t=618145 you've created a topic about hacking this game
And you created second topic about hacking this game
This is online game,hacking online games with mentions name of game is breaking forum rules |
|
| Back to top |
|
 |
ParkourPenguin I post too much
Reputation: 152
Joined: 06 Jul 2014 Posts: 4718
|
Posted: Tue Aug 17, 2021 12:35 pm Post subject: |
|
|
| LeFiXER wrote: | | The source code is compiled to byte code as you stated but upon execution the binary, the file is then interpreted by the virtual machine. |
An interpreter reads bytecode and translates it into machine code.
A JIT compiler reads bytecode and compiles it into machine code.
In a formal sense, JIT compilation is a form of interpretation; however, in practical usage of this terminology, an interpreter doesn't compile anything. It directly executes bytecode on a virtual machine instead of further compiling the bytecode into machine code (what a JIT compiler does). Some emulators have a setting to switch between an interpreter and a JIT compiler if you want an example.
The difference is that an interpreter is generally simpler to implement but slower at runtime, while a JIT compiler can be much faster at runtime (since it's effectively native machine code at that point) but can take a while to actually compile the bytecode.
Java tries to take the best of both worlds by spending more effort on the bytecode that's executed more often. Code that is very rarely executed may never get JIT compiled, while code that's run often enough may go through several recompilations at increasing optimization levels.
See Wikipedia articles on Bytecode, Just-in-time compilation, and Interpreter (computing)
Also search for "JVM Internals" if you want. There was a great talk someone at Oracle (IIRC) gave that I saw on youtube a while ago, but sadly I can't find it now. _________________
I don't know where I'm going, but I'll figure it out when I get there. |
|
| Back to top |
|
 |
LeFiXER Grandmaster Cheater Supreme
Reputation: 20
Joined: 02 Sep 2011 Posts: 1069 Location: 0x90
|
Posted: Tue Aug 17, 2021 1:39 pm Post subject: |
|
|
It's easy to see where the confusion comes from. I'm not a professional by any means just someone keen on learning so thank you for the clarification in that regard .
I'll take a look to see if I can find that video you mentioned. |
|
| Back to top |
|
 |
|