Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > C/C++
You last visited: Today at 05:44

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



How to make Trainer Console Application

Discussion on How to make Trainer Console Application within the C/C++ forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Nov 2015
Posts: 10
Received Thanks: 0
Smile How to make Trainer Console Application

Please
04102536 is offline  
Old 01/04/2016, 22:50   #2
 
~.ScoiL's Avatar
 
elite*gold: 70
Join Date: Jul 2011
Posts: 496
Received Thanks: 194
What is ur Problem?
~.ScoiL is offline  
Old 01/07/2016, 12:01   #3
 
Mr.Human's Avatar
 
elite*gold: 10
Join Date: May 2008
Posts: 292
Received Thanks: 199
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.
Mr.Human is offline  
Old 01/07/2016, 19:30   #4
 
hazejp's Avatar
 
elite*gold: 0
Join Date: Jan 2015
Posts: 62
Received Thanks: 13
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.
hazejp is offline  
Old 01/07/2016, 21:16   #5
 
elite*gold: 0
Join Date: May 2015
Posts: 700
Received Thanks: 445
How to make house

Please
algernong is offline  
Old 01/08/2016, 12:48   #6
 
Biesi's Avatar
 
elite*gold: 0
Join Date: Jul 2010
Posts: 182
Received Thanks: 185
- 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
Biesi is offline  
Thanks
1 User
Old 01/08/2016, 15:11   #7
 
elite*gold: 0
Join Date: Dec 2014
Posts: 442
Received Thanks: 211
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.
_asm is offline  
Old 01/10/2016, 06:51   #8
 
elite*gold: 0
Join Date: Sep 2015
Posts: 12
Received Thanks: 1
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;
}
zy677777 is offline  
Old 01/12/2016, 13:46   #9
 
elite*gold: 0
Join Date: Dec 2015
Posts: 6
Received Thanks: 1
I want make trainer game cabal i have source Code c++ dll
but i don't know how to make console
Liberly is offline  
Reply


Similar Threads Similar Threads
[C++] How to make trainer c++ console Application
12/13/2015 - C/C++ - 7 Replies
say How to make trainer c++ console Application please i want make trainer
[C#] Console-Application crasht bei SetConsoleCtrlHandler und Console.ReadLine()
05/11/2015 - .NET Languages - 4 Replies
Servus! Ich habe derzeit ein komisches Problem: Ich schreibe eine Konsolenanwendung und möchte, bevor die Konsole geschlossen wird, den Speicher aufräumen (manuelles GC). private delegate bool ConsoleEventDelegate(int eventType); private static extern bool SetConsoleCtrlHandler(ConsoleEventDelegate callback, bool add);
Can anyone help me to make a calendar planner in c# console. Please.
12/27/2014 - .NET Languages - 3 Replies
Guys i need a program in c# for our project and i dont know how to do it. My professor said make a calendar planner that when you click the date you can input an event and save it to that date please someone who is kind please help me because if i failed to pass it i will fail again please guys. it would be a big help for me.
[C++ HELP] Console Trainer
04/24/2011 - C/C++ - 3 Replies
Hi guys, I need help for console trainer. When I open the process to inject the trainer, it hides but doesn't change the values. If I suspend the process and I open the trainer, change the value, but If I don't suspend the process doesn't change the values... This is the code, thank's for your help anybody answer... #include <Windows.h> #include <stdio.h> #include <cstdlib> #include <iostream> #include <tlhelp32.h>



All times are GMT +2. The time now is 05:44.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.