 |
Cheat Engine The Official Site of Cheat Engine
|
View previous topic :: View next topic |
Author |
Message |
Twistedfate Expert Cheater
Reputation: 1
Joined: 11 Mar 2016 Posts: 231
|
Posted: Sat Jun 25, 2016 5:10 am Post subject: Add+sync specific address value in elua(Help)code injection |
|
|
I want
to change the 4 bytes number from another address .
For example when this address 0DC90A54 change→ the value in my script change automatically is that possible ?
lets say this address 0DC90A54 have value 4 then changed to 25232
I want it to add excess line with the same code but with the new value
Code: | cmp [esi+160],#1701734765
je originalcode |
Code: | cmp [esi+160],#thenewvalue
je originalcode |
I want the script to copy the changed values from the address to my elua and the script could be enabled auto
Code: | [enable]
alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)
newmem: //this is allocated memory, you have read,write,execute access
//place your code here
//jne
//je
cmp [esi+160],#1868850509
je originalcode
cmp [esi+160],#1701734765
je originalcode
mov eax,#25856
jmp exit
originalcode:
mov eax,[esi+000001D4]
exit:
jmp returnhere
"somsas.exe"+2D34BA:
jmp newmem
nop
returnhere:
[Disable]
dealloc(newmem)
"somsas.exe"+2D34BA:
mov eax,[esi+000001D4]
|
|
|
Back to top |
|
 |
ulysse31 Master Cheater
Reputation: 2
Joined: 19 Mar 2015 Posts: 324 Location: Paris
|
Posted: Sat Jun 25, 2016 7:11 am Post subject: |
|
|
Code: | [enable]
alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)
globalalloc(var,8)
var:
dd #1701734765
var+4:
dd #1868850509
newmem: //this is allocated memory, you have read,write,execute access
//place your code here
//jne
//je
push ecx
mov ecx,[var+4]
cmp [esi+160],ecx
je originalcode
mov ecx,[var]
cmp [esi+160],ecx
je originalcode
mov eax,#25856
jmp exit
originalcode:
mov eax,[esi+000001D4]
exit:
pop ecx
jmp returnhere
"somsas.exe"+2D34BA:
jmp newmem
nop
returnhere:
[Disable]
dealloc(var)
dealloc(newmem)
"somsas.exe"+2D34BA:
mov eax,[esi+000001D4] |
It's how your code can use variable, you can consequently insert a few code lines to change the variable's value when necessary
|
|
Back to top |
|
 |
Twistedfate Expert Cheater
Reputation: 1
Joined: 11 Mar 2016 Posts: 231
|
Posted: Sat Jun 25, 2016 1:33 pm Post subject: |
|
|
ulysse3131 wrote: | [code][enable]
|
I didn't understand sry
I want my script just do simple thing .
auto copy the values of external address and get it inside the script (automatically)
I think in this case we want do add the values auto to
[code]var:
dd #1701734765[/code]
so the number next to dd auto added from another address( This address is continoulsy change I cannot add all manually ) how I can do this ?
I am very beginner and trying to learn from you
|
|
Back to top |
|
 |
ulysse31 Master Cheater
Reputation: 2
Joined: 19 Mar 2015 Posts: 324 Location: Paris
|
Posted: Sun Jun 26, 2016 3:41 am Post subject: |
|
|
Twistedfate wrote: | ulysse3131 wrote: | [code][enable]
|
I didn't understand sry
I want my script just do simple thing .
auto copy the values of external address and get it inside the script (automatically)
I think in this case we want do add the values auto to
[code]var:
dd #1701734765[/code]
so the number next to dd auto added from another address( This address is continoulsy change I cannot add all manually ) how I can do this ?
I am very beginner and trying to learn from you |
If the address that has the changing values you wanna compare to is "12345678" then the code would be
[enable]
alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)
globalalloc(var,
var:
dd #1701734765
var+4:
dd #1868850509
newmem: //this is allocated memory, you have read,write,execute access
//place your code here
//jne
//je
push ecx
mov ecx,[12345678]
cmp [esi+160],ecx
je originalcode
mov ecx,[var]
cmp [esi+160],ecx
je originalcode
mov eax,#25856
jmp exit
originalcode:
mov eax,[esi+000001D4]
exit:
pop ecx
jmp returnhere
"somsas.exe"+2D34BA:
jmp newmem
nop
returnhere:
[Disable]
dealloc(var)
dealloc(newmem)
"somsas.exe"+2D34BA:
mov eax,[esi+000001D4]
|
|
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
|
|