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 


help me with Injection Copies (Complex)

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
SS 4K
Newbie cheater
Reputation: 0

Joined: 21 Feb 2019
Posts: 21

PostPosted: Tue May 28, 2019 7:48 am    Post subject: help me with Injection Copies (Complex) Reply with quote

hi everyone

i know how to do normal Injection Copies , but some opcode is so difficult for me Sad

im using emulator and dealing with crc32 , i just need the address on the opcode, i can do it manually to get the address by find what accesses
but i need fast way to get the address like Injection Copies
code:

crc32 r10d,[rdi+rax]



also see the image below for more info

AOBscan
[code]
[ENABLE]

aobscan(test,44 0F 38 F1 14 07 48 C7 46 78 00 00 01 82 48 8B 9E 18 01 00 00 48 81 C3 30) // should be unique
alloc(newmem,$1000,A0931B42)

label(code)
label(return)

newmem:

code:

crc32 r10d,[rdi+rax]
jmp return

test:
jmp newmem
nop
return:
registersymbol(test)

[DISABLE]

test:
db 44 0F 38 F1 14 07

unregistersymbol(test)
dealloc(newmem)

[/code]


thank for your help



Screenshot .png
 Description:
 Filesize:  141.85 KB
 Viewed:  2568 Time(s)

Screenshot .png


Back to top
View user's profile Send private message
OldCheatEngineUser
Whateven rank
Reputation: 20

Joined: 01 Feb 2016
Posts: 1586

PostPosted: Wed May 29, 2019 2:32 am    Post subject: Reply with quote

add my_address to address list, and view as hex.

Code:
// enable section
registersymbol(my_address)
alloc(my_address,08)

newmem:
mov [my_address],rax
or [my_address],rdi



// disable section
dealloc(my_address)
unregistersymbol(my_address)

_________________
About Me;
I Use CE Since Version 1.X, And Still Learning How To Use It Well!
Jul 26, 2020
STN wrote:
i am a sweetheart.
Back to top
View user's profile Send private message Visit poster's website
SS 4K
Newbie cheater
Reputation: 0

Joined: 21 Feb 2019
Posts: 21

PostPosted: Wed May 29, 2019 6:19 am    Post subject: Reply with quote

[quote="OldCheatEngineUser"]add my_address to address list, and view as hex.

[code]// enable section
registersymbol(my_address)
alloc(my_address,08)

newmem:
mov [my_address],rax
or [my_address],rdi



// disable section
dealloc(my_address)
unregistersymbol(my_address)[/code][/quote]

thank you for your response OldCheatEngineUser

but you code only give me the address of RAX

see the image below for more info



Screenshot .png
 Description:
 Filesize:  66.77 KB
 Viewed:  2529 Time(s)

Screenshot .png


Back to top
View user's profile Send private message
TheyCallMeTim13
Wiki Contributor
Reputation: 51

Joined: 24 Feb 2017
Posts: 976
Location: Pluto

PostPosted: Wed May 29, 2019 6:47 am    Post subject: Reply with quote

Code:
 
[ENABLE]

aobscan(test,44 0F 38 F1 14 07 48 C7 46 78 00 00 01 82 48 8B 9E 18 01 00 00 48 81 C3 30) // should be unique
alloc(newmem,$1000,A0931B42)

label(code)
label(return)

label(myPointer)
registersymbol(myPointer)

newmem:
  push rcx
  lea rcx,[rdi+rax]  // load effective address
  mov [myPointer],rcx
  pop rcx
code:

crc32 r10d,[rdi+rax]
jmp return
myPointer:
  dq 0

test:
jmp newmem
nop
return:
registersymbol(test)

[DISABLE]

test:
db 44 0F 38 F1 14 07

unregistersymbol(test)
dealloc(newmem)

_________________
Back to top
View user's profile Send private message Visit poster's website
SS 4K
Newbie cheater
Reputation: 0

Joined: 21 Feb 2019
Posts: 21

PostPosted: Wed May 29, 2019 7:04 am    Post subject: Reply with quote

[quote="TheyCallMeTim13"][/quote]

thank you Tim

still only RAX address appear B0649AB0

i want to be like this 2B0649AB0

(200000000) is RDI address
Back to top
View user's profile Send private message
TheyCallMeTim13
Wiki Contributor
Reputation: 51

Joined: 24 Feb 2017
Posts: 976
Location: Pluto

PostPosted: Wed May 29, 2019 7:18 am    Post subject: Reply with quote

You'll need to debug the code if that's not working. LEA in this case will add the two registries and store that in RCX, so if that doesn't work RDI or RAX may not be what you think it is. That or you're looking at it as a 32 bit address, which you're doing in the picture you posted. Set the value type to 8 bytes to see all 64 bits.

After you enable that, run this in the Lua Engine window:
Code:
print(string.format("%X", getAddress("[myPointer]")))

_________________
Back to top
View user's profile Send private message Visit poster's website
SS 4K
Newbie cheater
Reputation: 0

Joined: 21 Feb 2019
Posts: 21

PostPosted: Wed May 29, 2019 8:34 am    Post subject: Reply with quote

[quote="TheyCallMeTim13"]You'll need to debug the code if that's not working. LEA in this case will add the two registries and store that in RCX, so if that doesn't work RDI or RAX may not be what you think it is. That or you're looking at it as a 32 bit address, which you're doing in the picture you posted. Set the value type to 8 bytes to see all 64 bits.

After you enable that, run this in the Lua Engine window:
[code]print(string.format("%X", getAddress("[myPointer]")))[/code][/quote]

wow it work thank you so much

Setting the value type to 8 give both address
also Execute the LUA code

but i need you to see image below one last time



Screenshot .png
 Description:
 Filesize:  56.81 KB
 Viewed:  2502 Time(s)

Screenshot .png


Back to top
View user's profile Send private message
OldCheatEngineUser
Whateven rank
Reputation: 20

Joined: 01 Feb 2016
Posts: 1586

PostPosted: Wed May 29, 2019 10:36 am    Post subject: Reply with quote

SS 4K wrote:
OldCheatEngineUser wrote:
add my_address to address list, and view as hex.

Code:
// enable section
registersymbol(my_address)
alloc(my_address,08)

newmem:
mov [my_address],rax
or [my_address],rdi



// disable section
dealloc(my_address)
unregistersymbol(my_address)


thank you for your response OldCheatEngineUser

but you code only give me the address of RAX

see the image below for more info


my code is working, it is your fault for not displaying the proper address size. (you should choose 8-byte instead of 4-byte)

also you should not look at address column, since the address column shows the address of my_address aymbol. (look at value column .. display it as hex and choose proper value size type)

_________________
About Me;
I Use CE Since Version 1.X, And Still Learning How To Use It Well!
Jul 26, 2020
STN wrote:
i am a sweetheart.


Last edited by OldCheatEngineUser on Wed May 29, 2019 10:40 am; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website
TheyCallMeTim13
Wiki Contributor
Reputation: 51

Joined: 24 Feb 2017
Posts: 976
Location: Pluto

PostPosted: Wed May 29, 2019 10:39 am    Post subject: Reply with quote

Either make it a pointer with an offset of 0, or use the address like the lua code an put it inside brackets [ ].
_________________
Back to top
View user's profile Send private message Visit poster's website
SS 4K
Newbie cheater
Reputation: 0

Joined: 21 Feb 2019
Posts: 21

PostPosted: Wed May 29, 2019 11:22 am    Post subject: Reply with quote

[quote="OldCheatEngineUser"][/quote]



yeah thats my fault bro , i did what you sad but i didn't realize that i need to choose 8-byte instead of 4-byte

i just test you code work Perfect

thank you
Back to top
View user's profile Send private message
SS 4K
Newbie cheater
Reputation: 0

Joined: 21 Feb 2019
Posts: 21

PostPosted: Thu May 30, 2019 11:07 am    Post subject: Reply with quote

[quote="TheyCallMeTim13"]Either make it a pointer with an offset of 0, or use the address like the lua code an put it inside brackets [ ].[/quote]

thanks Tim

everything working now Smile
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine 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