Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Add+sync specific address value in elua(Help)code injection

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Discussions
View previous topic :: View next topic  
Author Message
Twistedfate
Expert Cheater
Reputation: 1

Joined: 11 Mar 2016
Posts: 231

PostPosted: Sat Jun 25, 2016 5:10 am    Post subject: Add+sync specific address value in elua(Help)code injection Reply with quote

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
View user's profile Send private message
ulysse31
Master Cheater
Reputation: 2

Joined: 19 Mar 2015
Posts: 324
Location: Paris

PostPosted: Sat Jun 25, 2016 7:11 am    Post subject: Reply with quote

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
View user's profile Send private message
Twistedfate
Expert Cheater
Reputation: 1

Joined: 11 Mar 2016
Posts: 231

PostPosted: Sat Jun 25, 2016 1:33 pm    Post subject: Reply with quote

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
View user's profile Send private message
ulysse31
Master Cheater
Reputation: 2

Joined: 19 Mar 2015
Posts: 324
Location: Paris

PostPosted: Sun Jun 26, 2016 3:41 am    Post subject: Reply with quote

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,Cool
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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Discussions All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites