Solved Hi this is my trigger bot howerver its not working can you help me

Hexui Undetected CSGO Cheats Sinkicheat PUBG Cheat

tocogames

Newbie
Full Member
May 24, 2016
15
74
0
#include <windows.h>
#include <iostream>
#include "ProcMem.h"


using namespace std;

int main()
{

Mem.Process("csgo.exe");
DWORD ClientDLL = Mem.Module
// FXHAX Offsets
const DWORD PlayerBase = 0xA68A14;
const DWORD entityBase = 0x4A0B0C4;
const DWORD crosshairOffset = 0x23F8;

const DWORD teamOffsets = 0xF0
const DWORD healthOffsets = 0xFC;
const DWORD EntLoopDist = 0x10;

//Player
DWORD LocalPlayer = Mem.Read<DWORD>(ClientDLL) + PlayerBase);

int LocalTeam = Mem.Read<int>(LocalPlayer + teamOffsets);

int crosshairOffset = Mem.Read<int>(LocalPlayer + crosshairOffset);


{
while(true)
{
Trigger();
void Trigger()
{
DWORD EnemyInCH = Mem.Read<DWORD>(ClientDLL + EntityBase + ((CrossHairID - 1) * EntLoopDist));
int EnemyHealth = Mem.Read<int>(EnemyInCH + healthOffset);
int EnemyTeam = Mem.Read<int>(EnemyInCH + teamOffset);


if (LocalPlayer != EnemyTeam)
{
if (LocalTeam != EnemyTeam && EnemyHealth > 0)



void Trigger()
{
DWORD EnemyInCH = Mem.Read<DWORD>(ClientDLL + EntityBase + ((CrossHairID - 1) * EntLoopDist));
int EnemyHealth = Mem.Read<int>(EnemyInCH + healthOffset); s
int EnemyTeam = Mem.Read<int>(EnemyInCH + teamOffset);
if (LocalTeam != EnemyTeam && EnemyHealth > 0)
{

mouse_event(MOUSEEVENTF_LEFTDOWN, NULL, NULL, NULL, NULL);

mouse_event(MOUSEEVENTF_LEFTUP, NULL, NULL, NULL, NULL)
}





}



if(10!=8){
cout <<"CSGO HACK RUNNING!!!\n";
}


//HAX Welcome
cout << "Welcome To FxHax CSGO Loader Active...\n";
cout << "Coded By DJHacker!...\n";
//HAX Activation
int a;
int b;
int sum;

cout << "enter a number please!\n";
cout << "To check You not a Robot";
cin >> a;

cout << "Enter another number\n";
cin >> b;

sum = a+b;
cout << "Thanks for the activation take the robot test " << sum << endl;

return 0;
}
 

Rake

Cesspool Admin
Administrator
Jan 21, 2014
12,101
78,998
2,374
If you haven't noticed, noone is responding to your posts because you are not making an effort. I will delete all your threads to keep the forum clean.

You can wrap your source code in c++ tags like this:


Please read the rules and read this post Solved - (Read before posting) How to ask questions.


Also here is the code you want
C++:
#include <iostream>
#include <vector>
#include <Windows.h>
#include "proc.h"

int main()
{
    DWORD procId = GetProcId(L"csgo.exe");

    HANDLE handle = OpenProcess(PROCESS_ALL_ACCESS, NULL, procId);

    uintptr_t modulebase = GetModuleBaseAddress(procId, L"client.dll");

    uintptr_t localPlayerAddrPtr = modulebase + 0xC5B85C;

    std::cout << "localPlayerAddrPtr = " << "0x" << std::hex << localPlayerAddrPtr << std::endl;

    uintptr_t ForceAttackptr = modulebase + 0x30797A8;

    std::cout << "force Attack = " << "0x" << std::hex << ForceAttackptr << std::endl;

    std::vector<unsigned int> CrosshairOffset = { 0xB2B8 };

    uintptr_t InCrosshairAddr = FindDMAAddy(handle, localPlayerAddrPtr, CrosshairOffset);

    int attackflag = 0;
    int crosshairId = 0;

    while (true)
    {
        ReadProcessMemory(handle, (BYTE*)InCrosshairAddr, &crosshairId, sizeof(crosshairId), 0);

        std::cout << "crosshair id = " << crosshairId;

        if (crosshairId != 0)
        {
            attackflag = 5;
            WriteProcessMemory(handle, (BYTE*)ForceAttackptr, &attackflag, sizeof(attackflag), 0);
        }

        else
        {
            attackflag = 4;
            WriteProcessMemory(handle, (BYTE*)ForceAttackptr, &attackflag, sizeof(attackflag), 0);
        }
    }
    return 0;
}
 
Last edited:

tocogames

Newbie
Full Member
May 24, 2016
15
74
0
and here is my hack process



#pragma once

#include <Windows.h>
#include <TlHelp32.h>

//THIS FILE SIMPLY DOES MOST OF THE BACKEND WORK FOR US,
//FROM FINDING THE PROCESS TO SETTING UP CORRECT ACCESS FOR US
//TO EDIT MEMORY
//IN MOST GAMES, A SIMPLER VERSION OF THIS CAN BE USED, or if you're injecting then its often not necessary
//This file has been online for quite a while so credits should be shared but im using this from NubTIK
//So Credits to him and thanks

class CHackProcess
{
public:

PROCESSENTRY32 __gameProcess;
HANDLE __HandleProcess;
HWND __HWNDCsgo;
DWORD __dwordClient;
DWORD __dwordEngine;
DWORD __dwordOverlay;
DWORD __dwordVGui;
DWORD __dwordLibCef;
DWORD __dwordSteam;
DWORD FindProcessName(const char *__ProcessName, PROCESSENTRY32 *pEntry)
{
PROCESSENTRY32 __ProcessEntry;
__ProcessEntry.dwSize = sizeof(PROCESSENTRY32);
HANDLE hSnapshot = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0);
if (hSnapshot == INVALID_HANDLE_VALUE) return 0; if (!Process32First(hSnapshot, &__ProcessEntry))
{
CloseHandle(hSnapshot);
return 0;
}
do{if (!_strcmpi(__ProcessEntry.szExeFile, __ProcessName))
{
memcpy((void *)pEntry, (void *)&__ProcessEntry, sizeof(PROCESSENTRY32));
CloseHandle(hSnapshot);
return __ProcessEntry.th32ProcessID;
}} while (Process32Next(hSnapshot, &__ProcessEntry));
CloseHandle(hSnapshot);
return 0;
}


DWORD getThreadByProcess(DWORD __DwordProcess)
{
THREADENTRY32 __ThreadEntry;
__ThreadEntry.dwSize = sizeof(THREADENTRY32);
HANDLE hSnapshot = CreateToolhelp32Snapshot(TH32CS_SNAPTHREAD, 0);
if (hSnapshot == INVALID_HANDLE_VALUE) return 0;

if (!Thread32First(hSnapshot, &__ThreadEntry)) {CloseHandle(hSnapshot); return 0; }

do {if (__ThreadEntry.th32OwnerProcessID == __DwordProcess)
{
CloseHandle(hSnapshot);
return __ThreadEntry.th32ThreadID;
}} while (Thread32Next(hSnapshot, &__ThreadEntry));
CloseHandle(hSnapshot);
return 0;
}

DWORD GetModuleNamePointer(LPSTR LPSTRModuleName, DWORD __DwordProcessId)
{
MODULEENTRY32 lpModuleEntry = {0};
HANDLE hSnapShot = CreateToolhelp32Snapshot( TH32CS_SNAPMODULE, __DwordProcessId);
if(!hSnapShot)
return NULL;
lpModuleEntry.dwSize = sizeof(lpModuleEntry);
BOOL __RunModule = Module32First( hSnapShot, &lpModuleEntry );
while(__RunModule)
{
if(!strcmp(lpModuleEntry.szModule, LPSTRModuleName ) )
{CloseHandle( hSnapShot );
return (DWORD)lpModuleEntry.modBaseAddr;
}
__RunModule = Module32Next( hSnapShot, &lpModuleEntry );
}
CloseHandle( hSnapShot );
return NULL;
}

void runSetDebugPrivs()
{
HANDLE __HandleProcess=GetCurrentProcess(), __HandleToken;
TOKEN_PRIVILEGES priv;
LUID __LUID;
OpenProcessToken(__HandleProcess, TOKEN_ADJUST_PRIVILEGES, &__HandleToken);
LookupPrivilegeValue(0, "seDebugPrivilege", &__LUID);
priv.PrivilegeCount = 1;
priv.Privileges[0].Luid = __LUID;
priv.Privileges[0].Attributes = SE_PRIVILEGE_ENABLED;
AdjustTokenPrivileges(__HandleToken, false, &priv, 0, 0, 0);
CloseHandle(__HandleToken);
CloseHandle(__HandleProcess);
}



void RunProcess()
{
//commented lines are for non steam versions of the game
runSetDebugPrivs();
while (!FindProcessName("hl2.exe", &__gameProcess)) Sleep(12);
while (!(getThreadByProcess(__gameProcess.th32ProcessID))) Sleep(12);
__HandleProcess = OpenProcess(PROCESS_ALL_ACCESS, false, __gameProcess.th32ProcessID);
while(__dwordClient == 0x0) __dwordClient = GetModuleNamePointer("client.dll", __gameProcess.th32ProcessID);
while(__dwordEngine == 0x0) __dwordEngine = GetModuleNamePointer("engine.dll", __gameProcess.th32ProcessID);
//while(__dwordOverlay == 0x0) __dwordOverlay = GetModuleNamePointer("gameoverlayrenderer.dll", __gameProcess.th32ProcessID);
while(__dwordVGui == 0x0) __dwordVGui = GetModuleNamePointer("vguimatsurface.dll", __gameProcess.th32ProcessID);
//while(__dwordLibCef == 0x0) __dwordLibCef = GetModuleNamePointer("libcef.dll", __gameProcess.th32ProcessID);
// while(__dwordSteam == 0x0) __dwordSteam = GetModuleNamePointer("steam.dll", __gameProcess.th32ProcessID);
__HWNDCsgo = FindWindow(NULL, "Counter-global offensive");
}
};

extern CHackProcess fProcess;
 
Last edited:
Attention! Before you post:

Read the How to Ask Questions Guide
99% of questions are answered in the Beginner's Guide, do it before asking a question.

No Hack Requests. Post in the correct section.  Search the forum first. Read the rules.

How to make a good post:

  • Fill out the form correctly
  • Tell us the game name & coding language
  • Post everything we need to know to help you
  • Ask specific questions, be descriptive
  • Post errors, line numbers & screenshots
  • Post code snippets using code tags
  • If it's a large project, zip it up and attach it

If you do not comply, your post may be deleted.  We want to help, please make a good post and we will do our best to help you.

Community Mods