 |
Cheat Engine The Official Site of Cheat Engine
|
| View previous topic :: View next topic |
| Author |
Message |
Matherz Newbie cheater
Reputation: 0
Joined: 25 Aug 2012 Posts: 15
|
Posted: Mon Sep 03, 2012 11:56 am Post subject: [Help] Increase value (mov[...) |
|
|
Hi,
In Cheat Engine tutorial step 7 was code like this when I auto assemble app with code injection.
| Code: |
....
newmem: //this is allocated memory, you have read,write,execute access
//place your code here
originalcode:
dec [rbx+00000760]
....
|
So I easily finish TUT when I do this
| Code: | | add [rbx+00000760], 3 |
But in many apps there are code like this with move command and I don't know how add some value. Example:
| Code: |
newmem: //this is allocated memory, you have read,write,execute access
//place your code here
originalcode:
mov [ecx+00004214],eax
|
I tried sone like add[ecx+00004214], 1 but with no success.
Sorry for ma eng and thax for help.
|
|
| Back to top |
|
 |
Corruptor Advanced Cheater
Reputation: 3
Joined: 10 Aug 2011 Posts: 84
|
Posted: Tue Sep 04, 2012 7:57 am Post subject: |
|
|
mov [x], eax means that he writes the value in eax (its a register, like a generally used variable) into the variable located at x. In your code, eax contains the value that will be written into your variable (maybe because more calculations then a simple add were applied to it), so you have to increase eax before he does so.
| Code: | newmem: //this is allocated memory, you have read,write,execute access
add eax, 3 //adds 3 to the value that will be written soon
originalcode:
mov [ecx+00004214],eax |
|
|
| Back to top |
|
 |
Matherz Newbie cheater
Reputation: 0
Joined: 25 Aug 2012 Posts: 15
|
Posted: Tue Sep 04, 2012 12:28 pm Post subject: |
|
|
| Ok dude I will try It I'am noobie in ASM and memory stuff. I read some tutorials but I'am still uncertain with some thing. Thanx lot of.
|
|
| Back to top |
|
 |
Studio80 Advanced Cheater
Reputation: 2
Joined: 12 Sep 2012 Posts: 83
|
Posted: Wed Sep 12, 2012 12:19 pm Post subject: |
|
|
If you want to have a permanent value into a adress just use the MOV command.
| Code: | newmem: //this is allocated memory, you have read,write,execute access
//place your code here
originalcode:
mov [ecx+00004214],eax |
Stuff like that ^^ would be very easy. EAX holds the value of the pointer ecx+00004214. What you want to do is to write a new value which is EAX. So:
I'm just using 63 as a value example. But with this code the value will ALWAYS be 63.
About the CheatEngine tut:
| Code: | ....
newmem: //this is allocated memory, you have read,write,execute access
//place your code here
originalcode:
dec [rbx+00000760]
.... |
You can do the same, you have to write it a little bit different. You need to force the value into the pointer adress in this case. So:
| Code: | | MOV [rbx+00000760],63 |
I'm planning to make a very detailed Code Injection video tutorial, its not so hard as it looks. I hope this helped you out.
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
|