| View previous topic :: View next topic |
| Author |
Message |
ahax How do I cheat?
Reputation: 0
Joined: 18 Sep 2013 Posts: 3
|
Posted: Thu Sep 26, 2013 5:36 pm Post subject: c++ trainer help |
|
|
Hey,
I'm trying to write some simple application that would use 'writeprocessmemory' and freeze(i saw on msdn that you can't freeze using wmp but instead of this you can just loop)
Thats what i have for now:
gyazo com/cce8fa578c320d6ff0c00c4ceb0b28ab.png
so how can i write something to entrypoint + offset?
Can you provide me some code examples?
Thanks in advance
|
|
| Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Sat Sep 28, 2013 8:17 pm Post subject: |
|
|
You can use CreateToolhelp32Snapshot, Process32First / Process32Next to obtain a list of running processes, see the MSDN example here:
http://msdn.microsoft.com/en-us/library/windows/desktop/ms686701(v=vs.85).aspx
Once you have the process you can use Module32First to get the exe's base address to use for your first pointer calculation.
_________________
- Retired. |
|
| Back to top |
|
 |
aeree Cheater
Reputation: 3
Joined: 23 Jan 2010 Posts: 42 Location: Germany
|
Posted: Fri Oct 04, 2013 9:01 am Post subject: |
|
|
| Code: |
DWORD Address = 0x400000 + 0xB00B5 // => "foo.exe" + 0x0FF537
DWORD Offsets[5] = {0x10, 0x3ac, 0x10, 0x70};
for(int i = 0; i < 5; i++)
{
ReadProcessMemory(hHandle,(LPVOID)Address,&Address,sizeof(Address),NULL);
Address += Offsets[i];
}
|
Am I doing this right?
_________________
1 + 1 = |
|
| Back to top |
|
 |
|