START INTO GAME HACKING!
Hi guys,
in this tutorial I will be trying to let newbies understand how to start into game hacking!
Here I will be using Microsoft Visual Studio 2015, so in my code there a header ( "stdafx.h" ) which won't be used by Eclipse users for example.in this tutorial I will be trying to let newbies understand how to start into game hacking!
Let's suppose we are playing TeknoMW3 and we wanna have a C++ code which allows us to have the custom classes: we could be in a iSnipe lobby without the possibilities to play with normal guns ( obviously ). This could be the situation:
http://imgur.com/fenprC9
As you can see I have only iSnipe classes and the custom classes are locked.
I basically want to unlock them using a C++ code done by myself.
We will have to act into an address which can be found somehow, but this ain't the goal of this tutorial so I will just tell you that the right address is 06BCE724 and the normal value ( classes locked is ) 1.401298464E-45 [ FLOAT ] and the value to have the classes unlocked is 0 [ FLOAT ].
However, here starts the tutorial, which ( I remember ) is for newbies ( pro hexors won't take much advantages here ):
Code:
#include "stdafx.h" #include <iostream> #include <Windows.h> using namespace std;
-----------------------------------------------------------------------------------------------------------------------------------------
Code:
int main() {
-----------------------------------------------------------------------------------------------------------------------------------------
Code:
HWND Window = FindWindow(NULL, L"Call of Duty®: Modern Warfare® 3 Multiplayer");
-----------------------------------------------------------------------------------------------------------------------------------------
Code:
if (!Window) {
cout << "Cannot find the window." << endl;
return 0;
}
-----------------------------------------------------------------------------------------------------------------------------------------
Code:
else {
DWORD pID;
GetWindowThreadProcessId(Window, &pID);
HANDLE Hproc = OpenProcess(PROCESS_ALL_ACCESS, FALSE, pID);
-----------------------------------------------------------------------------------------------------------------------------------------
Code:
if (!Hproc) {
cout << "Cannot open the process." << endl;
return 0;
}
-----------------------------------------------------------------------------------------------------------------------------------------
Code:
else {
cout << "Press F5 to activate/deactivate the FORCE CLASS." << endl;
cout << "Press F7 to exit from the FORCE CLASS program." << endl;
while(1) {
-----------------------------------------------------------------------------------------------------------------------------------------
Code:
if (GetAsyncKeyState(VK_F5)) {
float ForceClass;
float ClassesForced = 0;
float ClassesUnforced = 1.401298464E-45;
UINT_PTR ForceClassAddress = 0X06BCE724;
-----------------------------------------------------------------------------------------------------------------------------------------
Code:
ReadProcessMemory(Hproc, (LPVOID)(ForceClassAddress), &ForceClass, sizeof(ForceClass), NULL);
-----------------------------------------------------------------------------------------------------------------------------------------
Code:
if (ForceClass == ClassesUnforced) WriteProcessMemory(Hproc, (LPVOID)ForceClassAddress, &ClassesForced, sizeof(ClassesForced), NULL);
-----------------------------------------------------------------------------------------------------------------------------------------
Code:
else if (ForceClass == ClassesForced) WriteProcessMemory(Hproc, (LPVOID)ForceClassAddress, &ClassesUnforced, sizeof(ClassesUnforced), NULL); }
-----------------------------------------------------------------------------------------------------------------------------------------
Code:
if (GetAsyncKeyState(VK_F7)) return 0;
-----------------------------------------------------------------------------------------------------------------------------------------
Then of course you will have to close all the parenthesis that you've opened before and put " return 0 " before the parenthesis which closes the main, because mind that we've written " int main() ", therefore we are obliged to give a value at the end.
However this is the complete code ( I have added some functions and some stuffs which make the output more nice-looking ):
Code:
#include "stdafx.h"
#include <iostream>
#include <Windows.h>
using namespace std;
/* --> LAYOUT PROCEDURES <-- */
void SetColor(short Color) {
HANDLE hCon = GetStdHandle(STD_OUTPUT_HANDLE);
SetConsoleTextAttribute(hCon, Color);
}
void Clean() { system("CLS"); }
void SystemDimensions() { system("mode con lines=10"); system("mode con cols=52"); }
int main() {
SystemDimensions();
SetConsoleTitle(L"garupede-->FORCE_CLASS");
HWND Window = FindWindow(NULL, L"Call of Duty®: Modern Warfare® 3 Multiplayer");
if (!Window) {
cout << "Cannot find the window." << endl;
return 0;
}
else {
DWORD pID;
GetWindowThreadProcessId(Window, &pID);
HANDLE Hproc = OpenProcess(PROCESS_ALL_ACCESS, FALSE, pID);
if (!Hproc) {
cout << "Cannot open the process." << endl;
return 0;
}
else {
SetColor(11);
cout << "\tWelcome to the" << endl << "\t\tgarupede" << endl << "\t\t\tExtreme Switcher!" << endl;
SetColor(14);
cout << "Press F5 to activate/deactivate the FORCE CLASS." << endl;
cout << "Press F7 to exit from the FORCE CLASS program." << endl;
while(1) {
if (GetAsyncKeyState(VK_F5)) {
float ForceClass;
float ClassesForced = 0;
float ClassesUnforced = 1.401298464E-45;
UINT_PTR ForceClassAddress = 0X06BCE724;
ReadProcessMemory(Hproc, (LPVOID)(ForceClassAddress), &ForceClass, sizeof(ForceClass), NULL);
if (ForceClass == ClassesUnforced)
WriteProcessMemory(Hproc, (LPVOID)ForceClassAddress, &ClassesForced, sizeof(ClassesForced), NULL);
else if (ForceClass == ClassesForced)
WriteProcessMemory(Hproc, (LPVOID)ForceClassAddress, &ClassesUnforced, sizeof(ClassesUnforced), NULL);
}
if (GetAsyncKeyState(VK_F7))
return 0;
}
}
}
return 0;
}
http://imgur.com/IsG57xZ
And, as you can see in the pic below, our classes will be seriously unlocked and ingame we will be use them:
http://imgur.com/PJ67zvi
http://imgur.com/qbqYxq8
I hope you will appreciate this tutorial, for anything just comment below or directly contact me on skype or here in MPGH. See you



