Assault Cube Internal Hack Source

WoodenFloorBoard

New Member
Messages
16
Points
3
Hi guys! Whilst learning some new ways about doing this, I decided to try and I've successfully made a hack using classes! I hope you enjoy!
Code:
#include <Windows.h>
#include <iostream>

using namespace std;

bool healthStatus = false;
bool armourStatus = false;

class myPlayer;

class myPlayer
{
public:
    char pad_0x0000[0xF8]; //0x0000
    __int32 health; //0x00F8 
    __int32 armour; //0x00FC 

};//Size=0x0100

myPlayer * localPlayer = (myPlayer*)*(DWORD*)(0x50F4F4);

DWORD AyyLmao()
{
    while (true)
    {
        if (GetAsyncKeyState(VK_F1))
            healthStatus != healthStatus;

        if (GetAsyncKeyState(VK_F2))
            armourStatus != armourStatus;

        if (GetAsyncKeyState(VK_F12))
            MessageBoxA(NULL, "[F1] -> Freeze Health\n[F2] -> Freeze Armour", "CONTROLS", MB_OK);


        if (healthStatus)
            localPlayer->health = 999;
        else
            localPlayer->health = 100;


        if (armourStatus)
            localPlayer->armour = 999;
        else
            localPlayer->armour = 100;

        Sleep(150);
    }
}

BOOL WINAPI DllMain(HINSTANCE hModule, DWORD dwReason, LPVOID lpReserved)
{
    switch (dwReason)
    {
    case DLL_PROCESS_ATTACH:
        CreateThread(0, 0, (LPTHREAD_START_ROUTINE)AyyLmao, 0, 0, 0);
    }
    return TRUE;
}
NOTE: In order to use this source, you need to be able to compile it using an IDE such as Visual Studio, etc...
 
Top