How to make trainer c++ console Application

12/10/2015 09:44 04102536#1
say How to make trainer c++ console Application please
i want make trainer
12/10/2015 11:56 Daifoku#2
What have you done/tried so far ? show us your c++ Code.

If there is no code yet, you have to read tutorials about creating a simple DLL and play with the DLL. I suggest Visual Studio Community 2015 as IDE.
12/10/2015 14:55 04102536#3
MainDll.cpp
Quote:
#include <Windows.h>
extern void Start();
BOOL WINAPI DllMain (HMODULE hModule, DWORD dwReason, LPVOID lpxReserved)
{
switch (dwReason) {
case DLL_PROCESS_ATTACH:

DisableThreadLibraryCalls(hModule);

CreateThread(0, 0, (LPTHREAD_START_ROUTINE)Start,0,0, 0);
MessageBoxA (NULL,"LOGIN SURIYA Finish","SURIYA",MB_OK);
break;
case DLL_PROCESS_DETACH:
break;
case DLL_THREAD_ATTACH:
break;
case DLL_THREAD_DETACH:
break;
}
return TRUE;
}
Youcheat.h
Quote:
#include "AllFunction.h"

void NSD()
{
*(DWORD*)(*(DWORD*)BASEADDRESS + OFFSETNSD) = 1;
*(DWORD*)(*(DWORD*)BASEADDRESS + OFFSETNCT) = 1;
}
void ROLL()
{
*(DWORD*)(*(DWORD*)BASEADDRESS + OFFSETROLL) = 15;
}
void WALL ()
{
DWORD *WH_Start = (DWORD*)(*(DWORD*)WALLBASE + OFFSETWALL);
memset( WH_Start , 0x0, 0x40000);
}

youcheat.cpp
Quote:
#include <Windows.h>
#include "yourcheat.h"
#include "AllFunction.h"

void Start()
{
int a;
bool activeNSD,activeROLL,activeWALL;
char * CAPTION = "SURIYA";

while(true)
{
if (GetKeyState(VK_F5) < 0)
{
if(!activeNSD)
{
activeNSD = true;
MessageBoxA (NULL,"BM2 Fast ON",CAPTION,MB_OK);
}else{
activeNSD = false;
MessageBoxA (NULL,"BM2 Fast OFF",CAPTION,MB_OK);
}
}

if (GetKeyState(VK_F6) < 0)
{
if(!activeROLL)
{
activeROLL = true;
MessageBoxA (NULL,"ROLL Over ON",CAPTION,MB_OK);
}else{
activeROLL = false;
MessageBoxA (NULL,"ROLL Over OFF",CAPTION,MB_OK);
}
}
if (GetKeyState(VK_F8) < 0)
{
if(!activeWALL)
{
activeWALL = true;
MessageBoxA (NULL,"WallHack ON",CAPTION,MB_OK);
}else{
activeWALL = false;
MessageBoxA (NULL,"WallHack OFF",CAPTION,MB_OK);
}
}
if (GetKeyState(VK_UP) < 0)
{
*(DWORD*)(*(DWORD*)BASEADDRESS + OFFSETHIND) = 1 ;
}
if(GetKeyState(VK_DOWN) < 0)
{
*(DWORD*)(*(DWORD*)BASEADDRESS + OFFSETHIND) = 0 ;
}


if(activeWALL) WALL();
if(activeNSD) NSD();
if(activeROLL) ROLL();
Sleep(0);
}
}

AllDefind
Quote:
#define BASEADDRESS 0x00B03E9C
#define WALLBASE 0x00F4CB18


#define OFFSETWALL 0x40814
#define OFFSETNSD 0x4bc0
#define OFFSETNCT 0xda4
#define OFFSETROLL 0x214
#define OFFSETHIND 0x3b0
12/11/2015 17:03 Daifoku#4
You should avoid using CreateThread in DLL_PROCESS_ATTACH. This might cause a Deadlock.

I think I misunderstood your question;)
You want a console to print some messages? Then you just have to redirect the output ;-)
This creates a console. The Parent will be the target application. closing the application is the same as closing the console. you won't be able to deject the DLL

Code:
void createConsole()
{
	AllocConsole();
	int SystemOutput = _open_osfhandle(intptr_t(GetStdHandle(STD_OUTPUT_HANDLE)), _O_TEXT);
	FILE *COutputHandle = _fdopen(SystemOutput, "w");
	*stdout = *COutputHandle;
	setvbuf(stdout, NULL, _IONBF, 0);
}
12/11/2015 17:21 04102536#5
use code i can make console Application yes or no

void createConsole()
{
AllocConsole();
int SystemOutput = _open_osfhandle(intptr_t(GetStdHandle(STD_OUTPUT_H ANDLE)), _O_TEXT);
FILE *COutputHandle = _fdopen(SystemOutput, "w");
*stdout = *COutputHandle;
setvbuf(stdout, NULL, _IONBF, 0);
}
12/13/2015 06:19 Aspire4741#6
My Source code c++ here
siam black may why lie and steal? my message not read?
dont teach him or her LOL
Fucked!!!
12/13/2015 07:27 04102536#7
What Source code c++ you
I see
[Only registered and activated users can see links. Click Here To Register...]
12/13/2015 12:25 Aspire4741#8
thailand fucked