Splizes Grandmaster Cheater Supreme
Reputation: 0
Joined: 21 Jun 2006 Posts: 1944 Location: Florida
|
Posted: Fri Sep 14, 2007 1:37 pm Post subject: Simple trainer skeleton |
|
|
This things that can be changed to make a trainer are in red
This is for MVC ++ 6.0
You can change all the printfs and such
| Quote: |
#include "stdafx.h"
#include <windows.h>
#include <iostream>
#define VK_ALT 0x12 // Alt Key
#define VK_0 0x30 // 0 key
unsigned long PID;
HANDLE hProcess;
HWND hname;
int main(int argc, char* argv[])
{
SetConsoleTitle("Simple trainer");
printf("This is a very simple trainer skeleton by Snowfox. This is an example of Peggle Deluxe 1.0\n\n");
while(!hname)
{
hname = FindWindow(NULL, "Peggle Deluxe 1.0");
CreateRemoteThread(hname, NULL, 0, 0, 0, NULL, NULL);
GetWindowThreadProcessId(hname, &PID);
hProcess = OpenProcess(PROCESS_ALL_ACCESS, TRUE, PID);
Sleep(200);
}
if(hname)
{
printf("Peggle has been found.\n");
while(1)
{
if(GetAsyncKeyState(VK_ALT))
{
if(GetAsyncKeyState(VK_0))
{
BYTE bs[]={0x7f, 0x96, 0x98};
DWORD Newdatasize = sizeof(bs);
WriteProcessMemory(hProcess, (LPVOID)0x00E3CABC, &bs, Newdatasize, 0);
printf("Yummy, 9999999 score has become avalible.");
}
}
}
}
}
|
|
|