• 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
      Newbie
      Learning to hack games!
       
      Feeling Normal
       
      silentm's Avatar
      Join Date
      Dec 2012
      Posts
      4
      Thanks (-->)
      1
      Thanks (<--)
      0

      help retrieving base address of game

      Silent VPN
      I've been googling and trying code for the last 4 hours and I'm getting no where. None of the provided "solutions" on any site will compile. Latest method I've tried is GetModuleBaseExtern();

      Code:
      DWORD GetModuleBaseExtern(const DWORD dwProcessId, const char *szModuleName)
      {
      if ((!dwProcessId) || (!szModuleName)) return 0;
      
      HANDLE hSnap = CreateToolhelp32Snapshot(TH32CS_SNAPMODULE, dwProcessId);
      if (!hSnap) return 0;
      
      MODULEENTRY32 me;
      me.dwSize = sizeof(MODULEENTRY32);
      
      DWORD dwReturn = 0;
      
      if (Module32First(hSnap, &me)) {
      while (Module32Next(hSnap, &me)) {
      if (lstrcmpi(me.szModule, szModuleName) == 0) {
      dwReturn = (DWORD)me.modBaseAddr;
      break;
      }
      }
      }
      
      CloseHandle(hSnap);
      
      return dwReturn;
      }
      I get about 14 different errors in compilation like:
      syntax error : missing ')' before 'const'
      'GetModuleBaseExtern' : function does not take 0 arguments (even though I'm calling it with GetModuleBaseExtern( dwProcId, "iw3mp.exe")
      'lstrcmpiA' : cannot convert parameter 2 from 'const char' to 'LPCSTR'


      So is there any other methods of getting the base address of the game when it's dynamic?
      Donate  

    2. #2
      Coder
      Learning to hack games!
       
      Feeling Normal
       
      AlexSleyore's Avatar
      Join Date
      Oct 2012
      Location
      http://fadedengine.wordpress.com/
      Posts
      101
      Thanks (-->)
      3
      Thanks (<--)
      10
      the section of code you provided will not provide a solution, your issue is with the code you wrote. Please provide the section of your code that calls the GetModuleBase function.

    3. #3
      Newbie
      Learning to hack games!
       
      Feeling Normal
       
      silentm's Avatar
      Join Date
      Dec 2012
      Posts
      4
      Thanks (-->)
      1
      Thanks (<--)
      0
      after another 4 hours of trial and error I got it to compile and it seems to work... ugh. I guess I now need to figure out how to find an offset for something simple like local player name and try to apply it and get it to output to console, :|

    4. #4
      Coder
      Learning to hack games!
       
      Feeling Normal
       
      AlexSleyore's Avatar
      Join Date
      Oct 2012
      Location
      http://fadedengine.wordpress.com/
      Posts
      101
      Thanks (-->)
      3
      Thanks (<--)
      10
      That is usually your best bet is getting each piece to work little by little, Else if something is wrong its a real pain to figure out what it is unless you really know what your doing.

    5. #5
      Jr.Coder
      Learning to hack games!
       
      Feeling Normal
       
      NubTIK's Avatar
      Join Date
      Dec 2012
      Posts
      61
      Thanks (-->)
      1
      Thanks (<--)
      40
      Silent VPN
      Alright so what you tried to do was finding a function online where you could get the module base of a dll?..... Oh well:

      Best way: Learn how it works and try to create your own functioon for that.
      Working way: Here ill give you my function for getting the module base of a dll.

      Code:
      DWORD GetModuleBaseFromDLL(LPSTR mName, DWORD procId)
      { 
       
      	
      	MODULEENTRY32 mEntry = {0};
         HANDLE hSnapShot = CreateToolhelp32Snapshot( TH32CS_SNAPMODULE, procId);
         if(!hSnapShot)
            return NULL;
         mEntry.dwSize = sizeof(mEntry);
         BOOL runModule = Module32First( hSnapShot, &mEntry );
           while(runModule)
         {
            	   if(!strcmp(mEntry.szModule, mName) )
            {CloseHandle( hSnapShot );
               return (DWORD)mEntry.modBaseAddr;
      	  }
            runModule = Module32Next( hSnapShot, &mEntry );
         }
         CloseHandle( hSnapShot );
         
         return NULL;
      }
      Btw.. If youre trying to get the module base of "OverlayRenderer.dll" In CSS You know it changed name to lowercase only letters. May be helpful

      EDIT : Wops.. Didnt know that you got it to work, Oh well anyways ill keep this post here for anyone who needs it
      Last edited by NubTIK; 12-26-2012 at 09:08 AM.
      ≧◔◡◔≦

    6. Thanks Fleep thanked for this post

    Similar Game Hacker Threads

    1. [Help] Finding Base Address?
      By Prometheus in forum Counter-Strike: Source Hacks
      Replies: 15
      Last Post: 08-24-2016, 07:01 AM
    2. [Help] Coordinate to Base Address
      By voilence in forum Hacking Help
      Replies: 3
      Last Post: 03-26-2016, 06:26 AM
    3. [Help] How to get WoW base address?
      By tyguy in forum Hacking Help
      Replies: 4
      Last Post: 02-20-2016, 08:05 PM
    4. [Help] Getting base address from client.dll
      By GozarD in forum Hacking Help
      Replies: 3
      Last Post: 05-11-2015, 11:30 PM
    5. [Help] Player Base Address
      By __Steven in forum GH Tutorials Help
      Replies: 1
      Last Post: 03-31-2014, 10:29 AM

    Tags for this Thread