• 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 5 of 5
    1. #1
      Banned
      Learning to hack games!
       
      Feeling Normal
       
      Spamer's Avatar
      Join Date
      Feb 2014
      Location
      Ukraine
      Posts
      29
      Thanks (-->)
      0
      Thanks (<--)
      3

      Question C++ HOW TO HACK any game TUTORIAL Pt 7 Trainer Final AmmoCrash

      Silent VPN
      When I'm pressing F1 game Falls down.
      C++ HOW TO HACK any game TUTORIAL Pt 7 Trainer Final AmmoCrash
      When I'm pressing F2 Health changes and everything is ok.
      The Debugger shows that it is falling when we are writing to memory ( WriteProcessMemory(hProcHandle,(BYTE*)AddressToWri te,&AmmoValue,sizeof(AmmoValue),NULL); )

      Here is the code

      #include <iostream>
      #include <Windows.h>
      #include <string>
      #include <ctime>

      DWORD FindDmaAddy(int PointerLevel, HANDLE hProcHandle, DWORD Offset[], DWORD BaseAddres);
      void WriteTomemory(HANDLE hProcHandle);

      std::string GameName = "AssaultCube";
      LPCSTR LGameWindow = "AssaultCube";
      std::string GameStatus;

      bool IsGameAvail;
      bool UpdateOnNextRun;

      //Ammo Vars
      bool AmmoStatus;
      BYTE AmmoValue[] = {0xA3,0x1C,0x0,0x0};
      DWORD AmmoBaseAddress = 0x00508B74;
      DWORD AmmoOffsets[] = {0x384,0x14,0x0};

      //Health Vars
      bool HealthStatus;
      BYTE HealthValue[] = {0x39,0x5,0x0,0x0};
      DWORD HealthBaseAddress = 0x00508B74;
      DWORD HealthOffsets[] = {0xF8};

      int main()
      {
      HWND hGameWindow = NULL;
      int timeSinceLastUpdate = clock();
      int GameAvailTIMER = clock();
      int onePressTIMER = clock();
      DWORD dwProcID = NULL;
      HANDLE hProcHandle = NULL;
      UpdateOnNextRun = true;
      std::string sAmmoStatus = "OFF";
      std::string sHealthStatus = "OFF";

      while(!GetAsyncKeyState(VK_INSERT))
      {
      if(clock() - GameAvailTIMER > 100)
      {
      GameAvailTIMER = clock();

      IsGameAvail = false;
      hGameWindow = FindWindow(NULL,LGameWindow);

      if(LGameWindow)
      {
      GetWindowThreadProcessId(hGameWindow,&dwProcID);
      if(dwProcID)
      {
      hProcHandle = OpenProcess(PROCESS_ALL_ACCESS,NULL,dwProcID);
      if(hProcHandle == INVALID_HANDLE_VALUE || hProcHandle == NULL)
      {
      GameStatus = "Failed to open process fod valid handle";
      }
      else
      {
      GameStatus = "AssaultCube Ready to hack";
      IsGameAvail = true;

      }
      }
      else
      {
      GameStatus = "Failed to get process ID ";
      }
      }
      else
      {
      GameStatus = "AssaultCube not found";
      }

      if(UpdateOnNextRun || clock() - timeSinceLastUpdate > 5000)
      {
      system("cls");
      std::cout << ".................................................." << std::endl;
      std::cout << " AssaultCube memory Hacker"<<std::endl;
      std::cout << ".................................................." << std::endl << std::endl;
      std::cout << "Game Status:"<< GameStatus << std::endl << std::endl;
      std::cout << "[F1] Unlimited Ammo -> " << sAmmoStatus << " <--" << std::endl << std::endl;
      std::cout << "[F2] unlimited Health ->" << sHealthStatus << " <--" << std::endl << std::endl;
      std::cout << "[INSERT] Exit " << std::endl;

      UpdateOnNextRun = false;
      timeSinceLastUpdate = clock();

      }

      if(IsGameAvail)
      {
      WriteTomemory(hProcHandle);
      }

      }
      if(clock() - onePressTIMER > 400)
      {
      //ammo
      if(GetAsyncKeyState(VK_F1))
      {
      onePressTIMER = clock();
      AmmoStatus = !AmmoStatus;
      UpdateOnNextRun = true;
      if(AmmoStatus)
      sAmmoStatus= "ON";
      else sAmmoStatus = "OFF";
      }
      //health
      if(GetAsyncKeyState(VK_F2))
      {
      onePressTIMER = clock();
      HealthStatus = !HealthStatus;
      UpdateOnNextRun = true;
      if(HealthStatus)
      sHealthStatus= "ON";
      else sHealthStatus = "OFF";
      }
      }
      }
      //CloseHandle(hProcHandle);
      //CloseHandle(hGameWindow);
      return 0;
      }
      DWORD FindDmaAddy(int PointerLevel, HANDLE hProcHandle, DWORD Offset[], DWORD BaseAddres)
      {
      DWORD pointer = BaseAddres;
      DWORD pTemp;

      DWORD pointerAddr;
      for(int c = 0 ; c < PointerLevel ; c++)
      {
      if(c == 0)
      {
      ReadProcessMemory(hProcHandle,(LPCVOID)pointer,&pTemp,sizeof(pTemp),NULL);
      }
      pointerAddr = pTemp+Offset[c];
      ReadProcessMemory(hProcHandle,(LPCVOID)pointer,&pTemp,sizeof(pTemp),NULL);

      }
      return pointerAddr;
      }
      void WriteTomemory(HANDLE hProcHandle)
      {
      DWORD AddressToWrite;

      if(AmmoStatus)
      {
      AddressToWrite = FindDmaAddy(3,hProcHandle,AmmoOffsets,AmmoBaseAddress);
      WriteProcessMemory(hProcHandle,(BYTE*)AddressToWrite,&AmmoValue,sizeof(AmmoValue),NULL);

      }
      if(HealthStatus)
      {
      AddressToWrite = FindDmaAddy(1,hProcHandle,HealthOffsets,HealthBaseAddress);
      WriteProcessMemory(hProcHandle,(BYTE*)AddressToWrite,&HealthValue,sizeof(HealthValue),NULL);
      }
      }

    2. #2
      Banned
      Learning to hack games!
       
      Feeling Normal
       
      Spamer's Avatar
      Join Date
      Feb 2014
      Location
      Ukraine
      Posts
      29
      Thanks (-->)
      0
      Thanks (<--)
      3
      A little bit laggy
      Finding static pointer
      Hacking Health and crashing when writing to bullet var memory
      https://youtu.be/IrSnEvOJud8

    3. #3
      Newbie
      Learning to hack games!
       
      Feeling Normal
       
      SASteve's Avatar
      Join Date
      Feb 2014
      Posts
      3
      Thanks (-->)
      0
      Thanks (<--)
      1
      Have you tried running it with a different compiler? If not, try compiling the code with Dev C++.

    4. #4
      Coder
      C++(Qt)/C# Coder
       
      Coding
       
      Cyrion's Avatar
      Join Date
      Dec 2013
      Location
      Canada,Québec
      Posts
      110
      Thanks (-->)
      6
      Thanks (<--)
      16
      Why do you use a "OnePressTimer" ? Just make your condition like this " if(GetAsyncKeyState(VK_F1) &1)"
      Last edited by Cyrion; 02-11-2014 at 10:55 AM.

      Actual project in progress :
      - Cloud File storage using Qt (In the same style as Dropbox)

      C++ HOW TO HACK any game TUTORIAL Pt 7 Trainer Final AmmoCrash

    5. #5
      Coder
      C++(Qt)/C# Coder
       
      Coding
       
      Cyrion's Avatar
      Join Date
      Dec 2013
      Location
      Canada,Québec
      Posts
      110
      Thanks (-->)
      6
      Thanks (<--)
      16
      Silent VPN
      Hahaha , that fail. Edited my post.

      Actual project in progress :
      - Cloud File storage using Qt (In the same style as Dropbox)

      C++ HOW TO HACK any game TUTORIAL Pt 7 Trainer Final AmmoCrash

    Similar Game Hacker Threads

    1. [VideoTutorial] Game Hacker Tutorial - CoM Zombies Fly Hack for any Game
      By binomi in forum Binomi's Android Hacking
      Replies: 2
      Last Post: 10-08-2017, 03:46 AM
    2. [VideoTutorial] C++ HOW TO HACK any game TUTORIAL [Trainer & DLL Injection] DIFFICULTY [2/10]
      By Fleep in forum GH Hack Video Tutorials
      Replies: 303
      Last Post: 09-21-2017, 06:27 PM
    3. [VideoTutorial] How to Make a TRAINER C# LEARN TO HACK TUTORIAL DIFFICULTY [1/10]
      By Fleep in forum GH Hack Video Tutorials
      Replies: 29
      Last Post: 11-13-2015, 06:38 AM
    4. [Help] Errors.. TUT number 7 final Trainer! Help!!!
      By torgomanz10 in forum GH Tutorials Help
      Replies: 8
      Last Post: 02-01-2014, 12:24 PM
    5. Regarding the 'Hack any Game Tutorial'
      By Birdy in forum Hacking Help
      Replies: 7
      Last Post: 08-11-2012, 10:12 PM

    Tags for this Thread