lol easy question
Fire up Visual C++ 2013 and Press Ctrl+N > New Project > Visual C++ > Win32 Console Application > Next > Finish
Now you have a Win32 Console. Just add you *.cpp and *.h to your project.
I want make c++ Console but i not know How to make i have Source Code Dll c++ but i want make c++ console
Cheah.h
FuncTion.cpp#define BASEADDRESS 0x00B03E9C
#define OFFSETNSD 0x4bc0
#define OFFSETNCT 0x0da4
#define OFFSETROLL 0x228
#define OFFSETLEVEL 0x1fe8
#define OFFSETSTR 0x4b34
#define OFFSETINT 0x4b38
#define OFFSETDEX 0x4b3c
void NSD()
{
*(DWORD*)(*(DWORD*)BASEADDRESS + OFFSETNSD) = 1;
*(DWORD*)(*(DWORD*)BASEADDRESS + OFFSETNCT) = 0;
}
void ROLL()
{
*(DWORD*)(*(DWORD*)BASEADDRESS + OFFSETROLL) = 12;
}
void MAXSTATUS() //MAX STATUS
{
*(DWORD*)(*(DWORD*)BASEADDRESS + OFFSETLEVEL) = 200;
*(DWORD*)(*(DWORD*)BASEADDRESS + OFFSETSTR) = 9999;
*(DWORD*)(*(DWORD*)BASEADDRESS + OFFSETINT) = 9999;
*(DWORD*)(*(DWORD*)BASEADDRESS + OFFSETDEX) = 9999;
}
#include <Windows.h>
#include "Cheat.h"
extern void Start();
BOOL WINAPI DllMain (HMODULE hModule, DWORD dwReason, LPVOID lpxReserved)
{
switch (dwReason) {
case DLL_PROCESS_ATTACH:
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)Start,0,0, 0);
break;
}
return TRUE;
}
void Start()
{
bool activeNSD,activeFAN,activeROLL,activeHIDE,activeWA LL,activeFIRE,activeLEVEL,activeMAXSTATUS2,activeS HOWHP,activeZOOM;
char * CAPTION = "VEN";
while(true)
{
if (GetKeyState(VK_F5) < 0)
{
if(!activeNSD)
{
activeNSD = true;
}else{
activeNSD = false;
}
}
if (GetKeyState(VK_F6) < 0)
{
if(!activeROLL)
{
activeROLL = true;
}else{
activeROLL = false;
}
}
if (GetKeyState(VK_F7) < 0)
{
if(!activeMAXSTATUS2)
{
activeMAXSTATUS2 = true;
*(DWORD*)(*(DWORD*)BASEADDRESS + OFFSETLEVEL) = 200;
*(DWORD*)(*(DWORD*)BASEADDRESS + OFFSETSTR) = 9999;
*(DWORD*)(*(DWORD*)BASEADDRESS + OFFSETINT) = 9999;
*(DWORD*)(*(DWORD*)BASEADDRESS + OFFSETDEX) = 9999;
}else{
activeMAXSTATUS2 = false;
}
}
if(activeROLL) ROLL();
if(activeNSD) NSD();
if(activeMAXSTATUS2) MAXSTATUS();
Sleep(0);
}
}
lol easy question
Fire up Visual C++ 2013 and Press Ctrl+N > New Project > Visual C++ > Win32 Console Application > Next > Finish
Now you have a Win32 Console. Just add you *.cpp and *.h to your project.
as I said, it's easy. I just show up a tip. anyway, this is what you need to do:
Code:#include "stdafx.h" #include <Windows.h> #define BASEADDRESS 0x00B03E9C #define OFFSETNSD 0x4bc0 #define OFFSETNCT 0x0da4 #define OFFSETROLL 0x228 #define OFFSETLEVEL 0x1fe8 #define OFFSETSTR 0x4b34 #define OFFSETINT 0x4b38 #define OFFSETDEX 0x4b3c void NSD() { *(DWORD*)(*(DWORD*)BASEADDRESS + OFFSETNSD) = 1; *(DWORD*)(*(DWORD*)BASEADDRESS + OFFSETNCT) = 0; } void ROLL() { *(DWORD*)(*(DWORD*)BASEADDRESS + OFFSETROLL) = 12; } void MAXSTATUS() //MAX STATUS { *(DWORD*)(*(DWORD*)BASEADDRESS + OFFSETLEVEL) = 200; *(DWORD*)(*(DWORD*)BASEADDRESS + OFFSETSTR) = 9999; *(DWORD*)(*(DWORD*)BASEADDRESS + OFFSETINT) = 9999; *(DWORD*)(*(DWORD*)BASEADDRESS + OFFSETDEX) = 9999; } int main() { bool activeNSD, activeFAN, activeROLL, activeHIDE, activeWA LL, activeFIRE, activeLEVEL, activeMAXSTATUS2, activeS HOWHP, activeZOOM; char * CAPTION = "VEN"; while (true) { if (GetKeyState(VK_F5) < 0) { if (!activeNSD) { activeNSD = true; } else { activeNSD = false; } } if (GetKeyState(VK_F6) < 0) { if (!activeROLL) { activeROLL = true; } else { activeROLL = false; } } if (GetKeyState(VK_F7) < 0) { if (!activeMAXSTATUS2) { activeMAXSTATUS2 = true; *(DWORD*)(*(DWORD*)BASEADDRESS + OFFSETLEVEL) = 200; *(DWORD*)(*(DWORD*)BASEADDRESS + OFFSETSTR) = 9999; *(DWORD*)(*(DWORD*)BASEADDRESS + OFFSETINT) = 9999; *(DWORD*)(*(DWORD*)BASEADDRESS + OFFSETDEX) = 9999; } else { activeMAXSTATUS2 = false; } } if (activeROLL) ROLL(); if (activeNSD) NSD(); if (activeMAXSTATUS2) MAXSTATUS(); Sleep(0); } return 0; }
As I said before:
and write to memory the same way.Where do you think these writes are going to go? It's not going to be in a different address space (at least not without calls to WPM or some other stuff).Code:*(DWORD*)(*(DWORD*)BASEADDRESS + OFFSETLEVEL) = 200; *(DWORD*)(*(DWORD*)BASEADDRESS + OFFSETSTR) = 9999; *(DWORD*)(*(DWORD*)BASEADDRESS + OFFSETINT) = 9999; *(DWORD*)(*(DWORD*)BASEADDRESS + OFFSETDEX) = 9999;
I don't have how to Process to game
Code:FILE *ConOut, *ConErr, *ConIn; AllocConsole(); freopen_s(&ConOut, "CONOUT$", "wb", stdout); freopen_s(&ConErr, "CONOUT$", "wb", stderr); freopen_s(&ConIn, "CONIN$", "rb", stdin);
i don't understand