• Amused
  • Angry
  • Annoyed
  • Awesome
  • Bemused
  • Cocky
  • Cool
  • Crazy
  • Crying
  • Down
  • Drunk
  • Embarrased
  • Enraged
  • Friendly
  • Geeky
  • Godly
  • Happy
  • Hateful
  • Hungry
  • Innocent
  • Meh
  • Piratey
  • Poorly
  • Sad
  • Secret
  • Shy
  • Sneaky
  • Tired
  • Wtf
  • At Work
  • CodenzHub
  • Coding
  • Deejaying
  • Donating
  • Drinking
  • Eating
  • Editing
  • Hacking
  • Hate Mailing
  • Jamin'
  • Lagging
  • Live Streaming
  • Lurking
  • No Status
  • Pawning
  • PC Gaming
  • PS Gaming
  • Raging
  • Reversing
  • Sleeping
  • Steam Gaming
  • Trolling
  • TwitchStreamer
  • Vodka!
  • Watching TV/Movie
  • Xbox Gaming
  • Youtuber
  • Zombies
  • Results 1 to 2 of 2
    1. #1
      Newbie
      Learning to hack games!
       
      Feeling Normal
       
      fdsasdf's Avatar
      Join Date
      Mar 2014
      Posts
      2
      Thanks (-->)
      0
      Thanks (<--)
      0

      HackProcess.h for CS:GO (supports server.dll)

      Silent VPN
      Here is a version of HackProcess.h modified so that works for CS:GO. It supports server.dll, which seems to be where the static address for the number of players in the game is located in.

      HackProcess.h :
      #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 __dwordServer;
      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("csgo.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(__dwordVGui == 0x0) __dwordVGui = GetModuleNamePointer("vguimatsurface.dll", __gameProcess.th32ProcessID);
      while(__dwordServer == 0x0)__dwordServer = GetModuleNamePointer("server.dll", __gameProcess.th32ProcessID);
      __HWNDCsgo = FindWindow(NULL, "Counter-Strike: Global Offensive");
      }
      };

      extern CHackProcess fProcess;


      I hope you guys enjoyed this HackProcess.h file

    2. #2
      Newbie
      On MVSE 2013
       
      Feeling Normal
       
      hackgen's Avatar
      Join Date
      Feb 2014
      Posts
      38
      Thanks (-->)
      5
      Thanks (<--)
      3
      Silent VPN
      Thank you for this much better version of fleep's HackProcess.h

    Similar Game Hacker Threads

    1. [Help] HackProcess.h and VAC
      By Clarityworld in forum AntiCheat - AntiDebug
      Replies: 1
      Last Post: 02-27-2016, 11:45 AM
    2. [Help] Please I couldnt do it!!(HackProcess.h)
      By hacker27cw in forum Other Game Hacks
      Replies: 8
      Last Post: 01-31-2016, 08:41 AM
    3. [Help] [SOLVED] hackProcess.h to get exe instead of dll ?
      By gayden in forum Hacking Help
      Replies: 3
      Last Post: 08-10-2015, 09:57 AM
    4. [Help] Hackprocess.h It's not good.
      By MiDOM in forum Hacking Help
      Replies: 7
      Last Post: 07-25-2014, 08:23 AM

    Tags for this Thread