| View previous topic :: View next topic |
| Author |
Message |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Thu Jan 01, 2009 11:23 pm Post subject: |
|
|
| 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 |
|
 |
HomerSexual Grandmaster Cheater Supreme
Reputation: 5
Joined: 03 Feb 2007 Posts: 1657
|
Posted: Thu Jan 01, 2009 11:43 pm Post subject: |
|
|
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 |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Fri Jan 02, 2009 12:31 am Post subject: |
|
|
| 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 |
|
 |
tombana Master Cheater
Reputation: 2
Joined: 14 Jun 2007 Posts: 456 Location: The Netherlands
|
Posted: Fri Jan 02, 2009 3:16 am Post subject: |
|
|
| 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 |
|
 |
|