• 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 9 of 9
    1. #1
      Newbie
      br carai
       
      Feeling Normal
       
      erick_sx's Avatar
      Join Date
      Dec 2016
      Posts
      2
      Thanks (-->)
      0
      Thanks (<--)
      0

      Learning how to hack any game

      Silent VPN
      Hey friend (or someone who did and worked), o did C classes and C++ its a little different and i'm not fluent in english but i understand a lot of things of this tutorial BUT i think because i'm begginer on C and saw C++ i may did something wrong. Hope i could help me to find out where i did my mistakes. I think i know where they're but i don't know how to fix it. Please read. Thanks for attention.

      [SPOILER]
      Code:
      #include <iostream>
      #include <Windows.h>
      #include <string>
      #include <ctime>
      
      DWORD FindDmaAddy(int PointerLevel, HANDLE hProcHandle, DWORD Offsets[], DWORD BaseAddress);
      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 AmmoBaseAddres = {0x009EA0A0};
      DWORD AmmoOffsets[] = {0x384, 0x14, 0x0};
      
      // HEALTH VARS
      
      bool HealthStatus;
      BYTE HealthValue[] = {0x39, 0x5, 0X0, 0X0};
      DWORD HealthBaseAddres = {0x00509B74};
      DWORD HealthOffsets[] = {0xF8, 0x14, 0x0};
      
      int main (){
      	
      	HWND hGameWindow = NULL;
      	int timeSinceLastUpdate = clock();
      	int GameAvailTMR= clock ();
      	int onePressTMR = clock ();
      	DWORD dwProcID = NULL;
      	HANDLE hProcHandle = NULL;
      	UpdateOnNextRun = true;
      	std::string sAmmoStatus = "OFF";
      	std::string sHealthStatus = "OFF";
      	
      	while (!GetAsyncKeyState(VK_INSERT)){
      		
      		if(clock () = GameAvailTMR > 100){
      			GameAvailTMR = clock();
      			IsGameAvail = false;
      			
      			hGameWindow = FindWindow(NULL, LGameWindow);
      			
      			if (hGameWindow){
      				GetWindowThreadProcessId(hGameWindow, &dwProcID);
      				
      				if (dwProcID != 0){
      					hProcHandle = OpenProcess(PROCCESS_ALL_ACESS, FALSE, dwProcID);
      				
      					if(hProcHandle == INVALID_HANDLE_VALUE || hProcHandle == NULL){
      						GameStatus = "Failed to open process for 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::cout << std::endl;
      			std::cout "[F1] Unlimited Ammo ->" <<sAmmoStatus << " <- " std::endl << std::endl;
      			std::cout "[F2] Unlimited Health ->" <<sHealthStatus << " <- " std::endl << std::endl;
      			std::cout "[INSET] Exit " << std::endl;
      			UpdateOnNextRun = false;
      			timeSinceLastUpdate = clock ();
      		}
      		
      		if (IsGameAvai){
      			WriteToMemory(hProcHandle);
      		}
      	}
      	if (clock() - onePressTMR > 400){
      		if (IsGameAvail){
      			//AMMO
      			if(GetAsyncKeyState(VK_F1)){
      				onePressTMR = clock ();
      				AmmoStatus = !AmmoStatus;
      				UpdateOnNextRun = true;
      				if(AmmoStatus)sAmmoStatus = "ON";
      				else sAmmoStatus = "OFF";
      				//HEALTH
      			}else
      				if(GetAsyncKeyState(VK_F2)){
      				onePressTMR = clock ();
      				HealthStatus = !HealthStatus;
      				UpdateOnNextRun = true;
      				if(HealthStatus)sHealthStatus = "ON";
      				else sHealthStatus = "OFF";
      			}
      
      			}
      		}
      	}
      	CloseHandle(hProcHandle);
      	CloseHandle(hGameWindow);
      
      return ERROR_SUCCESS;
      
      }
      
      DWORD FindDmaAddy(int PointerLevel, HANDLE hProcHandle, DWORD Offsets[], DWORD BaseAddress){
      		DWORD pointer = BaseAddress;
      		DWORD pTemp;
      		
      		DWORD pointerAddr;
      		for (int  c = 0; c < PointerLevel; c++){
      			if (c == 0){
      				ReadProcessMemory(hProcHandle, (LPCVOID)pointer, &pTemp, sizeof(pTemp), NULL);
      			}
      			pointerAddr = pTemp + Offsets[c];
      			ReadProcessMemory(hProcHandle, (LPCVOID)pointerAddr, &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);
      	}
      }
      [/SPOILER]

      And when i compile show this:

      [SPOILER]Learning how to hack any game[/SPOILER]

    2. #2
      Administrator
      Hacked By Jesus
       
      Reversing
       
      [GH]Rake's Avatar
      Join Date
      Jan 2014
      Location
      USA
      Posts
      3,453
      Thanks (-->)
      803
      Thanks (<--)
      986
      Basically you have lots of typos. Download the source code from the attachment on the forum and use a file comparison program to compare your file against Fleeps and you will find all your errors

    3. #3
      Global Moderator
      Certified Asshole
       
      CodenzHub
       
      Traxin's Avatar
      Join Date
      Aug 2015
      Posts
      597
      Thanks (-->)
      104
      Thanks (<--)
      172
      @erick_sx

      You're missing the << in a bunch of the couts.

    4. #4
      Coder
      No problem.
       
      Coding
       
      r4z0r's Avatar
      Join Date
      Jul 2016
      Location
      Preußen
      Posts
      211
      Thanks (-->)
      15
      Thanks (<--)
      36
      learncpp.com

    5. #5
      Newbie
      Learning to hack games!
       
      Feeling Normal
       
      Lacapod's Avatar
      Join Date
      Dec 2016
      Posts
      11
      Thanks (-->)
      0
      Thanks (<--)
      0
      #include <iostream>
      #include <Windows.h>
      #include <string>
      #include <ctime>

      DWORD FindDmaAddy(int PointerLevel, HANDLE hProcHandle, DWORD Offsets[], DWORD BaseAddress);
      void WriteToMemory(HANDLE hProcHandle);

      std::string GameName = "AssaultCube";
      //LPCSTR LGameWindow = "AssaultCube"; //What the fuck
      std::string GameStatus;

      bool IsGameAvail;
      bool UpdateOnNextRun;

      bool AmmoStatus;
      BYTE AmmoValue[] = { 0xA3, 0x1C, 0X0, 0X0 };//Just 2 know, as something offtopic, this aint a value
      DWORD AmmoBaseAddres = 0x009EA0A0; //Keep this fucking normal, what's up with the godamn brackets?
      DWORD AmmoOffsets[] = { 0x384, 0x14, 0x0 };

      bool HealthStatus;
      BYTE HealthValue[] = { 0x39, 0x5, 0X0, 0X0 };
      DWORD HealthBaseAddres = 0x00509B74; //Again the fucking brackets
      DWORD HealthOffsets[] = { 0xF8, 0x14, 0x0 };

      int main(){
      HWND hGameWindow = NULL;
      int timeSinceLastUpdate = clock();
      int GameAvailTMR = clock();
      int onePressTMR = clock();
      DWORD dwProcID = NULL;
      HANDLE hProcHandle = NULL;
      UpdateOnNextRun = true;
      std::string sAmmoStatus = "OFF";
      std::string sHealthStatus = "OFF";
      while(!GetAsyncKeyState(VK_INSERT)) {
      if (clock() - GameAvailTMR > 100) {
      GameAvailTMR = clock();
      IsGameAvail = false;
      hGameWindow = FindWindow(NULL, L(GameName)); // Godamn paratheses
      if (hGameWindow) {
      GetWindowThreadProcessId(hGameWindow, &dwProcID);
      if (dwProcID != 0) {
      hProcHandle = OpenProcess(PROCESS_ALL_ACCESS, FALSE, dwProcID);//You can't spell (or more like read and copy) for shit
      if (hProcHandle == INVALID_HANDLE_VALUE || hProcHandle == NULL) {
      GameStatus = "Failed to open process for 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::cout << std::endl;
      std::cout << "[F1] Unlimited Ammo ->" << sAmmoStatus << " <- " << std::endl << std::endl;
      std::cout << "[F2] Unlimited Health ->" << sHealthStatus << " <- " << std::endl << std::endl;
      std::cout << "[INSET] Exit " << std::endl;
      //You missed a bunch of text here, stuff like '<<', '>>'
      UpdateOnNextRun = false;
      timeSinceLastUpdate = clock();
      }
      if (IsGameAvail) {
      WriteToMemory(hProcHandle);
      }
      }
      if (clock() - onePressTMR > 400) {
      if (IsGameAvail) {
      //AMMO
      if (GetAsyncKeyState(VK_F1)) {
      onePressTMR = clock();
      AmmoStatus = !AmmoStatus;
      UpdateOnNextRun = true;
      if (AmmoStatus)sAmmoStatus = "ON";
      else sAmmoStatus = "OFF";
      //HEALTH
      }
      else
      if (GetAsyncKeyState(VK_F2)) {
      onePressTMR = clock();
      HealthStatus = !HealthStatus;
      UpdateOnNextRun = true;
      if (HealthStatus)sHealthStatus = "ON";
      else sHealthStatus = "OFF";
      }

      }
      }
      CloseHandle(hProcHandle); //The handle wasn't global
      CloseHandle(hGameWindow); //Same ^
      return 0; //What to return outside the int main fuction
      }

      DWORD FindDmaAddy(int PointerLevel, HANDLE hProcHandle, DWORD Offsets[], DWORD BaseAddress) {
      DWORD pointer = BaseAddress;
      DWORD pTemp;

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

      return pointerAddr;
      }

      void WriteToMemory(HANDLE hProcHandle) {
      DWORD AddressToWrite;
      if (AmmoStatus) {
      AddressToWrite = FindDmaAddy(3, hProcHandle, AmmoOffsets, AmmoBaseAddres); //Spelled it wrong ffs
      WriteProcessMemory(hProcHandle, (BYTE*)AddressToWrite, &AmmoValue, sizeof(AmmoValue), NULL);
      }
      if (HealthStatus) {
      AddressToWrite = FindDmaAddy(1, hProcHandle, HealthOffsets, HealthBaseAddres); //Spelled it wrong too ffs
      WriteProcessMemory(hProcHandle, (BYTE*)AddressToWrite, &HealthValue, sizeof(HealthValue), NULL);
      }
      }


      I fixed your idiot fleep c&p cause idfc.
      GL at leeching, also, check my few comments maybe they will help making leeching easier for u.
      lern 2 write btw
      Last edited by Lacapod; 12-21-2016 at 03:08 PM.

    6. #6
      Coder
      No problem.
       
      Coding
       
      r4z0r's Avatar
      Join Date
      Jul 2016
      Location
      Preußen
      Posts
      211
      Thanks (-->)
      15
      Thanks (<--)
      36
      @Lacapod why being such an offensive pussy? Learn to write btw.

    7. Thanks defalt thanked for this post
    8. #7
      Newbie
      Learning to hack games!
       
      Feeling Normal
       
      Lacapod's Avatar
      Join Date
      Dec 2016
      Posts
      11
      Thanks (-->)
      0
      Thanks (<--)
      0
      Quote Originally Posted by r4z0r View Post
      @Lacapod why being such an offensive pussy? Learn to write btw.
      I have no idea what u mean lmao, but k

    9. #8
      Newbie
      br carai
       
      Feeling Normal
       
      erick_sx's Avatar
      Join Date
      Dec 2016
      Posts
      2
      Thanks (-->)
      0
      Thanks (<--)
      0
      Thanks. I'm not familiar as i thought i could be. Sorry by my mistakes - some of them like the Game Window it's like the video guy told to do - but specifically with your language, i'm not fluent. I'll try do my best next time. Thanks guys.

    10. #9
      I has a status
      I rage frequently
       
      Pawning
       
      PwndDepot's Avatar
      Join Date
      Nov 2014
      Location
      Colorado
      Posts
      181
      Thanks (-->)
      69
      Thanks (<--)
      32
      Silent VPN
      Quote Originally Posted by Lacapod View Post
      I have no idea what u mean lmao, but k
      Hey man, we all gotta start somewhere. He's obviously new, there's no need for that here. The name of the site is GUIDED Hacking for a reason.

    11. Thanks defalt thanked for this post

    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: 1
      Last Post: 04-18-2016, 08:27 PM
    2. [Help] Learning more?
      By OfficialHydrux in forum Hacking Help
      Replies: 2
      Last Post: 03-12-2016, 11:24 AM
    3. [VideoTutorial] C++ Counter Strike Game Hack External GDI ESP HACK TUTORIAL DIFFICULTY [5/10]
      By Fleep in forum GH Hack Video Tutorials
      Replies: 66
      Last Post: 01-16-2016, 11:34 AM
    4. [Help] AssaultCube hack help - Learning more about enemy information locations.
      By FankThuck in forum GH Tutorials Help
      Replies: 17
      Last Post: 12-17-2014, 09:21 PM
    5. [Series] Learning Memory For Game Hacking
      By Crazywink in forum Misc Coding
      Replies: 0
      Last Post: 10-16-2013, 06:50 PM