|
You last visited: Today at 13:30
Advertisement
How to make trainer c++ console Application
Discussion on How to make trainer c++ console Application within the C/C++ forum part of the Coders Den category.
12/10/2015, 09:44
|
#1
|
elite*gold: 0
Join Date: Nov 2015
Posts: 10
Received Thanks: 0
|
How to make trainer c++ console Application
say How to make trainer c++ console Application please
i want make trainer
|
|
|
12/10/2015, 11:56
|
#2
|
elite*gold: 0
Join Date: Mar 2010
Posts: 360
Received Thanks: 132
|
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
|
#3
|
elite*gold: 0
Join Date: Nov 2015
Posts: 10
Received Thanks: 0
|
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
|
#4
|
elite*gold: 0
Join Date: Mar 2010
Posts: 360
Received Thanks: 132
|
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
|
#5
|
elite*gold: 0
Join Date: Nov 2015
Posts: 10
Received Thanks: 0
|
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
|
#6
|
elite*gold: 0
Join Date: Aug 2015
Posts: 46
Received Thanks: 3
|
My Source code c++ here
siam black may why lie and steal? my message not read?
dont teach him or her LOL
******!!!
|
|
|
12/13/2015, 07:27
|
#7
|
elite*gold: 0
Join Date: Nov 2015
Posts: 10
Received Thanks: 0
|
What Source code c++ you
I see
|
|
|
12/13/2015, 12:25
|
#8
|
elite*gold: 0
Join Date: Aug 2015
Posts: 46
Received Thanks: 3
|
thailand ******
|
|
|
|
Similar Threads
|
[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 13:30.
|
|