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 


[?] how to inject code at a location pointer by a pointer?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
reverser69
Expert Cheater
Reputation: 0

Joined: 03 Sep 2014
Posts: 112

PostPosted: Thu Jul 15, 2021 11:01 pm    Post subject: [?] how to inject code at a location pointer by a pointer? Reply with quote

hi all

i retrieve the address im intrested in like this:

mov mySymbol,rax // rax contains the address at which I want to inject

now, how ca i inject at [mySymbol]?

in other way:

mySymbol is located at 13FFFFxxxx and has 140xxxxxx in it. i want to assemble code at 140xxxxxx and change the code at this location.
Back to top
View user's profile Send private message
_Iuri
Newbie cheater
Reputation: 0

Joined: 08 Jul 2021
Posts: 13

PostPosted: Fri Jul 16, 2021 3:39 am    Post subject: Reply with quote

mmm... i think that you can't... But you could use memcpy.

Just write your AA Script, store/define the label of your assembly code as a symbol and use memcpy with that pointer as first parameter (destiny) and the symbol of your injection as the second.
Back to top
View user's profile Send private message
TheyCallMeTim13
Wiki Contributor
Reputation: 51

Joined: 24 Feb 2017
Posts: 976
Location: Pluto

PostPosted: Fri Jul 16, 2021 8:30 am    Post subject: Reply with quote

You should be able to just use the symbol, but it must be registered and set in a different script before assembling the script using as an injection point.

Code:
mySymbol:
// some code here

And this should even work as well.
Code:
[mySymbol]:
// some code here


But again if it's not set before this script you'll get and error about "can't inject at 00000000".

_________________
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking 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