• 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
      Learning to hack games!
       
      Feeling Normal
       
      Virushack's Avatar
      Join Date
      Jan 2013
      Posts
      12
      Thanks (-->)
      8
      Thanks (<--)
      0

      C++ Pointer Offset lv 1 Full

      Silent VPN
      Click image for larger version. 

Name:	1.jpg 
Views:	56 
Size:	89.8 KB 
ID:	2292

      #include <windows.h>
      #include <stdio.h>
      #include <d3dx9.h>
      #pragma comment(lib, "d3dx9.lib")
      #pragma warning(disable: 4700)
      DWORD dwI3EXEC, ofsMNZ1, dwBase, CheckProtection, Pelacurrrrrrrrr;
      //==============================Replace==========================================//
      DWORD Replace;
      //=================================Call Address ===============================//
      BOOL Memek(unsigned long ADRexec, int OFSexec, int PTRexec)
      {
      if (!IsBadWritePtr((void*)ADRexec, sizeof(unsigned long)))
      {
      if (!IsBadWritePtr((void*)(*(unsigned long*)ADRexec + OFSexec), sizeof(unsigned long)))
      {
      *(int*)(*(unsigned long*)ADRexec + OFSexec) = PTRexec;
      }
      }
      return (0);
      }
      int __fastcall ProtectShield(void)
      {
      return (0);
      }
      //=================================Call Pointer=========================//
      BOOL Kontollllll(unsigned long ADRexec, int OFSexec, int PTRexec)
      {
      if (!IsBadWritePtr((void*)ADRexec, sizeof(unsigned long)))
      {
      if (!IsBadWritePtr((void*)(*(unsigned long*)ADRexec + OFSexec), sizeof(unsigned long)))
      {
      *(int*)(*(unsigned long*)ADRexec + OFSexec) = PTRexec;
      }
      }
      return (0);
      }
      //==============================System Called==========================================//
      void KzK(DWORD B,DWORD A1,DWORD B1, DWORD C1, DWORD ISI)
      { DWORD A=0;
      if (IsBadHugeReadPtr((PDWORD)B,4)==0)
      { A=*(PDWORD)((DWORD)(B))+A1;
      if (IsBadHugeReadPtr((PDWORD)A,4)==0)
      { A=*(PDWORD)((DWORD)(A))+B1;
      if (IsBadHugeReadPtr((PDWORD)A,4)==0)
      { A=*(PDWORD)((DWORD)(A))+C1;
      if (IsBadHugeReadPtr((PDWORD)A,4)==0)
      {*(PDWORD)A=ISI;
      }}}}}
      //==============================System Protect==========================================//
      void Undetect(void *adr, void *ptr, int size)
      {
      DWORD CheckProtection;
      VirtualProtect(adr,size,PAGE_EXECUTE_READWRITE, &ofsMNZ1);
      RtlMoveMemory(adr,ptr,size);
      VirtualProtect(adr,size,CheckProtection, &dwBase);
      }
      int SS = 0;
      int BB = 0;
      int __fastcall HookUndetect(void)
      {
      return 0;
      }
      //=============================================================================
      DWORD WINAPI Speed(LPVOID param)
      {
      while(1)
      {
      //===================================Speed====================================//

      if(GetAsyncKeyState(0x58)&1){ //Key x
      DWORD Community = (DWORD)GetModuleHandleA("MAT.exe");
      for(int i=0; i<1; i++){ //the base offset value
      Kontollllll(Pelacurrrrrrrrr+(DWORD)0x0013F61C, 0x75 + (1*i), 0x03767E80);// speed can dance
      }}
      Sleep(0);
      }
      return(0);
      }
      //=============================================================================
      DWORD * FindDevice(VOID)
      {
      DWORD Base = (DWORD)LoadLibraryW(L"d3d9.dll");
      for(DWORD i = 0; i < 0x128000; i++ )
      {
      if ( (*(BYTE *)(Base+i+0x00))==0xC7
      && (*(BYTE *)(Base+i+0x01))==0x06
      && (*(BYTE *)(Base+i+0x06))==0x89
      && (*(BYTE *)(Base+i+0x07))==0x86
      && (*(BYTE *)(Base+i+0x0C))==0x89
      && (*(BYTE *)(Base+i+0x0D))==0x86 )
      return (DWORD *)(Base + i + 2);
      }
      return NULL;
      }
      bool __stdcall DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
      {
      DisableThreadLibraryCalls(hDll);
      if(dwReason == DLL_PROCESS_ATTACH) {
      CreateThread(0, 0, (LPTHREAD_START_ROUTINE)Speed, 0, 0, 0);
      }
      return true;
      }
      Last edited by Virushack; 12-21-2013 at 11:08 AM.

    2. #2
      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
      Please indent your code so it's readable.
      C++ Pointer Offset lv 1 Full

    3. Thanks Virushack thanked for this post
    4. #3
      Newbie
      Learning to hack games!
       
      Feeling Normal
       
      Virushack's Avatar
      Join Date
      Jan 2013
      Posts
      12
      Thanks (-->)
      8
      Thanks (<--)
      0
      This is i want change pointer offset lv 1 to pointer offset lv 2 how
      DWORD WINAPI Speed(LPVOID param)
      {
      while(1)
      {
      //===================================Speed====================================//
      if(GetAsyncKeyState(0x58)&1){ //Key x
      DWORD Community = (DWORD)GetModuleHandleA("MAT.exe");
      for(int i=0; i<1; i++){
      Kontollllll(Pelacurrrrrrrrr+(DWORD)0x0013F61C, 0x75 + (1*i), 0x03767E80);// speed can dance
      }}
      if(GetAsyncKeyState(0x43)&1){ //Key c
      DWORD Community = (DWORD)GetModuleHandleA("MAT.exe");
      for(int i=0; i<1; i++){
      Kontollllll(Pelacurrrrrrrrr+(DWORD)0x0013F61C, 0x75 + (1*i), 0x03767E78);// speed can jump
      }}
      if(GetAsyncKeyState(0x5A)&1){ //Key z
      DWORD Community = (DWORD)GetModuleHandleA("MAT.exe");
      for(int i=0; i<1; i++){
      Kontollllll(Pelacurrrrrrrrr+(DWORD)0x0013F61C, 0x75 + (1*i), 0x304);// close speed
      }}
      Sleep(0);
      }
      return(0);
      }

    5. #4
      Newbie
      Learning to hack games!
       
      Feeling Normal
       
      Virushack's Avatar
      Join Date
      Jan 2013
      Posts
      12
      Thanks (-->)
      8
      Thanks (<--)
      0
      How to make it work !
      Picture

    6. #5
      Newbie
      Learning to hack games!
       
      Feeling Normal
       
      Virushack's Avatar
      Join Date
      Jan 2013
      Posts
      12
      Thanks (-->)
      8
      Thanks (<--)
      0
      Am check it already now

    7. #6
      Newbie
      Learning to hack games!
       
      Feeling Normal
       
      Virushack's Avatar
      Join Date
      Jan 2013
      Posts
      12
      Thanks (-->)
      8
      Thanks (<--)
      0
      #hope you help me @c5

    8. #7
      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
      In all fairness none of your code makes any sense..

      You need to understand what those "multi level offsets" mean. You dereference one pointer and add an offset to the address you have acquired.

      Right now you are just looping i-dont-know-what
      C++ Pointer Offset lv 1 Full

    9. Thanks till0sch thanked for this post
    10. #8
      Newbie
      Learning to hack games!
       
      Feeling Normal
       
      Virushack's Avatar
      Join Date
      Jan 2013
      Posts
      12
      Thanks (-->)
      8
      Thanks (<--)
      0
      I got it already but i dont know how to write pointer offset lv 2

    11. #9
      The Angel Of Verdun
      Always More To Code!
       
      Lurking
       
      Nether's Avatar
      Join Date
      Dec 2013
      Location
      England, SW
      Posts
      299
      Thanks (-->)
      54
      Thanks (<--)
      188
      Silent VPN
      Quote Originally Posted by Virushack View Post
      I got it already but i dont know how to write pointer offset lv 2
      for use of multi-level pointers you can use my C++ memory class https://guidedhacking.com/showthread...ll=1#post19902
      it has everything you need with explanations on how to use the code.

    12. Thanks angahkechik11 thanked for this post

    Similar Game Hacker Threads

    1. [Help] How to find pointer and offset with ollydbg..?
      By Espaniol in forum C/C++
      Replies: 3
      Last Post: 04-27-2016, 08:41 AM
    2. [Help] Can't write to pointer with offset directly
      By petruherro in forum Hacking Help
      Replies: 4
      Last Post: 04-21-2016, 03:01 PM
    3. [Help] Write to pointer + offset
      By petruherro in forum Hacking Help
      Replies: 2
      Last Post: 04-20-2016, 01:50 PM
    4. [Help] find pointer and offset of process
      By kyriakos70 in forum C/C++
      Replies: 4
      Last Post: 02-13-2015, 02:16 PM
    5. [Help] Question about Base address , pointer and offset
      By SilBul in forum Hacking Help
      Replies: 7
      Last Post: 02-01-2015, 01:44 PM

    Tags for this Thread