• 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 4 of 4
    1. #1
      Newbie
      Learning to hack games!
       
      Feeling Normal
       
      viperghost's Avatar
      Join Date
      Nov 2013
      Posts
      3
      Thanks (-->)
      0
      Thanks (<--)
      0

      Smile Make Code For Dll Inject

      Silent VPN
      Hello Fleep,
      first i wanna thx for the tutor, its very helpfull 4 me, btw i already watch how to make any hack game, & and i success to follow ur totur until finish..
      btw in ur tutor u make a console for hack & interface for DLL, but i just want to make an Hotkey for the DLL inject, not using a interface, iam sorry
      in this case iam a noob in C++ and making hack, i already change some code here but after i build and inject to game AssaultCube nothing happen, cant u help me
      whats wrong in that code?

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


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

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


      bool IsGameAvail;
      bool UpdateOnNextRun;

      //----------AMMO Base---------------
      bool AmmoStatus;
      BYTE AmmoValue[] = {0xA3, 0x1C, 0x0, 0x0 };
      DWORD AmmoBaseAddress = {0x00509B74};
      DWORD AmmoOffset[]= {0x384, 0x14, 0x0};

      //----------Helaty Base-----------
      bool HealthStatus;
      BYTE HealthValue[] = {0x39, 0x5, 0x0, 0x0 };
      DWORD HealthBaseAddress = {0x00509B74};
      DWORD HealthOffset[]= {0xF8};


      DWORD FindDmaAddy (int PointerLevel, HANDLE hProcHandle, DWORD Offset[], 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 + Offset[c];
      ReadProcessMemory(hProcHandle, (LPCVOID)pointerAddr, &pTemp, sizeof (pTemp), NULL);
      }
      return pointerAddr;
      }


      void WriteToMemory(HANDLE hProcHandle)
      {

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

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


      DWORD WINAPI Main_Thread (LPVOID lpParam)
      {
      HWND hGameWindow = NULL;
      int OnePressTMR = clock();

      if(IsGameAvail)


      if(clock() - OnePressTMR > 400)
      {
      if(GetAsyncKeyState(VK_F1)&1)
      {
      MessageBeep (100);
      OnePressTMR = clock();
      AmmoStatus = !AmmoStatus;
      }

      }
      return NULL;
      }


      bool APIENTRY DllMain(HMODULE hModule, DWORD dwReason, LPVOID lpvReserved)
      {
      if(dwReason == DLL_PROCESS_ATTACH)
      {
      CreateThread(NULL, NULL, (Main_Thread), NULL, NULL, NULL);
      }
      return TRUE;
      }

      thx 4 ur kindness to replay...
      Donate  

    2. #2
      Coder
      Kappa
       
      Hacking
       
      Szaka's Avatar
      Join Date
      Mar 2013
      Posts
      168
      Thanks (-->)
      1
      Thanks (<--)
      6
      main thread returns null just after being created. Your if(IsGameAvail) is messed, set to false jumps over you getasynckeystate loop and returns null

    3. #3
      Newbie
      Learning to hack games!
       
      Feeling Normal
       
      viperghost's Avatar
      Join Date
      Nov 2013
      Posts
      3
      Thanks (-->)
      0
      Thanks (<--)
      0
      thx for ur replay, btw can u gime me some example..?

    4. #4
      Kim Kong Trasher
      I don't have status.
       
      Raging
       
      c5's Avatar
      Join Date
      Jul 2012
      Location
      Mankei Iland
      Posts
      1,221
      Thanks (-->)
      97
      Thanks (<--)
      492
      Silent VPN
      Quote Originally Posted by viperghost View Post
      thx for ur replay, btw can u gime me some example..?
      I'd start off by learning programming before humping onto cheating
      Make Code For Dll Inject

    5. Thanks N/A thanked for this post

    Similar Game Hacker Threads

    1. [Help] I inject DLL but nothing happens
      By FloppyWhale in forum Assault Cube Hacks
      Replies: 5
      Last Post: 02-06-2016, 08:27 PM
    2. How do I access process threads - to inject code?
      By SICGames88 in forum Hacking Help
      Replies: 3
      Last Post: 09-13-2015, 04:28 PM
    3. [Help] Can't inject .dll twice??
      By heanz in forum C/C++
      Replies: 8
      Last Post: 06-08-2015, 11:28 AM
    4. C# inject to browser?
      By lolaap in forum C#
      Replies: 1
      Last Post: 01-14-2015, 01:14 PM

    Tags for this Thread