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 


Changing ASM Code with a DLL Injection
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Thu Jan 01, 2009 11:23 pm    Post subject: Reply with quote

GRPsuper9 wrote:
I dont see anything on those sites that deal with changing the actual asm code, just changing the value of a pointer, which is not what I want at all. If im wrong, let me know and let me know where in those sites to look.

All I read about was about different kinds of pointers and how to assign values onto them and use them in mathematical equations.


Why do you want to stumble around the language completely baffled by everything?

It doesn't need to deal with 'how to change the asm code', because by the time you finish reading, and understanding what is there, you will know exactly how to tackle your problem.

I walked you through as far as I could without simply giving you everything -- make an effort to actually learn it.
Back to top
View user's profile Send private message
HomerSexual
Grandmaster Cheater Supreme
Reputation: 5

Joined: 03 Feb 2007
Posts: 1657

PostPosted: Thu Jan 01, 2009 11:43 pm    Post subject: Reply with quote

You want to change the instructions of the program and not the value of a pointer. Wouldn't you want to get the base address of where the add function is and how many bytes it is. (ReadProcessMemory) Then you can use (WriteProcessMemory) on this address, with your new bytes of instructions, with the same size of the instructions.
_________________
Back to top
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Fri Jan 02, 2009 12:31 am    Post subject: Reply with quote

blankrider wrote:
You want to change the instructions of the program and not the value of a pointer. Wouldn't you want to get the base address of where the add function is and how many bytes it is. (ReadProcessMemory) Then you can use (WriteProcessMemory) on this address, with your new bytes of instructions, with the same size of the instructions.


It's a DLL, Write/ReadProccessMemory is pointless; you can just directly access everything.
Back to top
View user's profile Send private message
tombana
Master Cheater
Reputation: 2

Joined: 14 Jun 2007
Posts: 456
Location: The Netherlands

PostPosted: Fri Jan 02, 2009 3:16 am    Post subject: Reply with quote

When accessing code pages instead of data pages, the page will probably not be writable, so remember to use VirtualProtect(Ex) first.
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 programming All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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