| View previous topic :: View next topic |
| Author |
Message |
vnlagrla Cheater
Reputation: 0
Joined: 10 Apr 2011 Posts: 33
|
Posted: Thu May 31, 2012 4:45 pm Post subject: c# how to write to unwriteable address |
|
|
| I need to write an adress but it isn't writeable. how does CE make page writeable? how could I do this?
|
|
| Back to top |
|
 |
Obitio Advanced Cheater
Reputation: 0
Joined: 09 Apr 2012 Posts: 68 Location: null
|
Posted: Thu May 31, 2012 5:11 pm Post subject: Re: c# how to write to unwriteable address |
|
|
| vnlagrla wrote: | | I need to write an adress but it isn't writeable. how does CE make page writeable? how could I do this? |
lol I think what you mean is that you can't write to the address with WriteProcessMemory but Cheat Engine can do that right?That's because Cheat Engine uses it's own OP and WPM and stuff through a driver.
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25831 Location: The netherlands
|
Posted: Thu May 31, 2012 5:36 pm Post subject: |
|
|
Try using VirtualProtect(Ex) to make the page writable
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
| Back to top |
|
 |
vnlagrla Cheater
Reputation: 0
Joined: 10 Apr 2011 Posts: 33
|
Posted: Thu May 31, 2012 7:59 pm Post subject: |
|
|
Can you give me an Example of how I could make 0x402AB000 through 0x402AB00C Writeable?
I have it set up like this
| Code: |
[DllImport("kernel32.dll", SetLastError = true)]
static extern bool VirtualProtectEx(IntPtr hProcess, IntPtr lpAddress, int dwSize, uint flNewProtect, out uint lpflOldProtect);
public void makewriteable()
{
VirtualProtectEx(ProcHandle, (IntPtr) 0x402ab000, 0xc, 0x40, "what goes here");
} |
how would I set this up?
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25831 Location: The netherlands
|
Posted: Thu May 31, 2012 8:29 pm Post subject: |
|
|
"what goes here" should be a uint variable that gets the old protection
It must be provided
e.g:
uint myvar;
and then change "what goes here" to myvar
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
| Back to top |
|
 |
vnlagrla Cheater
Reputation: 0
Joined: 10 Apr 2011 Posts: 33
|
Posted: Fri Jun 01, 2012 9:17 am Post subject: |
|
|
| Thanks Dark Byte, i didn't realize i had to put out before myvar
|
|
| Back to top |
|
 |
|