| View previous topic :: View next topic |
| Author |
Message |
MasterChief Grandmaster Cheater Supreme
Reputation: 0
Joined: 07 Dec 2006 Posts: 1208 Location: Texas
|
Posted: Wed Apr 02, 2008 12:08 am Post subject: How do i make a .dll to edit memory? |
|
|
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 |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
|
| Back to top |
|
 |
micral How do I cheat?
Reputation: 0
Joined: 29 Mar 2008 Posts: 4
|
Posted: Wed Apr 02, 2008 12:21 am Post subject: |
|
|
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 |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Wed Apr 02, 2008 12:22 am Post subject: |
|
|
| 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 |
|
 |
micral How do I cheat?
Reputation: 0
Joined: 29 Mar 2008 Posts: 4
|
Posted: Wed Apr 02, 2008 12:26 am Post subject: |
|
|
| true. my mistake.
|
|
| Back to top |
|
 |
MasterChief Grandmaster Cheater Supreme
Reputation: 0
Joined: 07 Dec 2006 Posts: 1208 Location: Texas
|
Posted: Wed Apr 02, 2008 10:33 pm Post subject: |
|
|
thanks wiccaan ill check it out +rep.
_________________
|
|
| Back to top |
|
 |
|