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 do i make a .dll to edit memory?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
MasterChief
Grandmaster Cheater Supreme
Reputation: 0

Joined: 07 Dec 2006
Posts: 1208
Location: Texas

PostPosted: Wed Apr 02, 2008 12:08 am    Post subject: How do i make a .dll to edit memory? Reply with quote

Ive been reading through a few c++ books, and its teaching me so much that im not really interested in. All i would really like to know is how to compile a simple .dll that could edit memory, anyone have a link to something of that nature?
_________________
Back to top
View user's profile Send private message Yahoo Messenger
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Wed Apr 02, 2008 12:18 am    Post subject: Reply with quote

I wrote a tutorial on editing memory from an injected dll which you can read here, hope it helps. Smile
http://www.extalia.com/forums/viewtopic.php?f=60&t=2795

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
micral
How do I cheat?
Reputation: 0

Joined: 29 Mar 2008
Posts: 4

PostPosted: Wed Apr 02, 2008 12:21 am    Post subject: Reply with quote

if you're planning to inject the dll into the game's process, u won't need anything to gain access to its memory, since the dll itself is in the game's memory. just directly edit the values at the address that u want to change.

example:

(*(BYTE*)0x00123456) = 0xEB;

will change the byte at 0x00123456 in the game's memory to 0xEB (provided that the dll is already injected)

if this is not the case then read up on ReadProcessMemory / WriteProcessMemory, they're windows apis and info can be found on MSDN. google.
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Wed Apr 02, 2008 12:22 am    Post subject: Reply with quote

micral wrote:
if you're planning to inject the dll into the game's process, u won't need anything to gain access to its memory, since the dll itself is in the game's memory. just directly edit the values at the address that u want to change.

example:

(*(BYTE*)0x00123456) = 0xEB;

will change the byte at 0x00123456 in the game's memory to 0xEB (provided that the dll is already injected)

if this is not the case then read up on ReadProcessMemory / WriteProcessMemory, they're windows apis and info can be found on MSDN. google.


This isn't always the case, you can still face issues with protected memory and have to call VirutalProtect and give yourself more access (PAGE_EXECUTE_READWRITE or which ever access you want).

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
micral
How do I cheat?
Reputation: 0

Joined: 29 Mar 2008
Posts: 4

PostPosted: Wed Apr 02, 2008 12:26 am    Post subject: Reply with quote

true. my mistake.
Back to top
View user's profile Send private message
MasterChief
Grandmaster Cheater Supreme
Reputation: 0

Joined: 07 Dec 2006
Posts: 1208
Location: Texas

PostPosted: Wed Apr 02, 2008 10:33 pm    Post subject: Reply with quote

thanks wiccaan ill check it out +rep.
_________________
Back to top
View user's profile Send private message Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming 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