How to make Trainer Console Application

01/03/2016 14:55 04102536#1
Please
01/04/2016 22:50 ~.ScoiL#2
What is ur Problem?
01/07/2016 12:01 Mr.Human#3
this is a question thats obviously asked by someone that doesnt know how to code :( its really complex to make a trainer and varies depending on what game you want it for.
01/07/2016 19:30 hazejp#4
The most basic stuff you'll probably need consists of functions like OpenProcess, ReadProcessMemory and WriteProcessMemory.
In your program's main loop, all you have to do basically is checking for console input (e.g. getchar) and correspondingly reading / writing values in the target.
01/07/2016 21:16 algernong#5
How to make house

Please
01/08/2016 12:48 Biesi#6
- Get IDE and compiler
- Learn programming + stuff about windows processes
- Find game you want to cheat on
- Find values you want to change and their address in memory (you'll understand this once you learned programming and stuff about windows processes)
- Overwrite the value at the desired address in the memory of the game's process

optional (not required for a console): add a GUI (you'll know what this is once you learned programming) to make it look better

The whole process might take you about 1-10 years
01/08/2016 15:11 _asm#7
Quote:
Originally Posted by Biesi View Post
- Get IDE and compiler
- Learn programming + stuff about windows processes
- Find game you want to cheat on
- Find values you want to change and their address in memory (you'll understand this once you learned programming and stuff about windows processes)
- Overwrite the value at the desired address in the memory of the game's process

optional (not required for a console): add a GUI (you'll know what this is once you learned programming) to make it look better

The whole process might take you about 1-10 years
Great summery but I would like to add one very import requirement for General Game-Hacking.

Reverse Engineering and basic Assembler knowledge (of course this depends on the game you want to debug but in most cases x86-Assembler should be enough :) ).
Moreover the use of Cheat-Engine or any other live-time debugger like OllyDbg would be necessary in order to find the Memory-Addresses and see whats going on on the Stack.
01/10/2016 06:51 zy677777#8
source Code:
Code:
#include <Windows.h>
#include <string.h>
#include <string>
#include <iostream>
#include <tlhelp32.h>
#pragma comment(lib,"psapi")
using namespace std;
DWORD GetProcName(const char * ProcName) 
{ 
   PROCESSENTRY32 pe; 
   HANDLE thSnapShot; 
   BOOL retval, ProcFound = false; 

   thSnapShot = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0); 
   if(thSnapShot == INVALID_HANDLE_VALUE) 
   { 
      //MessageBox(NULL, "Error: Unable <strong class="highlight">to</strong> create toolhelp snapshot!", "2MLoader", MB_OK); 
     cout <<"Error: Unable to create toolhelp snapshot!"; 
      return false; 
   } 

   pe.dwSize = sizeof(PROCESSENTRY32); 
    
   retval = Process32First(thSnapShot, &pe); 
   while(retval) 
   { 
      if(strstr(pe.szExeFile, ProcName)) 
      { 
         return pe.th32ProcessID; 
      } 
      retval = Process32Next(thSnapShot, &pe); 
   } 
   return 0; 
}
int main()
{
DWORD value = 45;////value to enter
DWORD Pid = GetProcName("game.exe");///process name
HANDLE Open = OpenProcess(PROCESS_ALL_ACCESS,false,Pid);
WriteProcessMemory((void*)(0x000000),&value,sizeof(value),0);
	return false;
}
01/12/2016 13:46 Liberly#9
I want make trainer game cabal i have source Code c++ dll
but i don't know how to make console