Solved Finding the base pointer

Hexui Undetected CSGO Cheats Sinkicheat PUBG Cheat

Rake

Cesspool Admin
Administrator
Jan 21, 2014
11,544
78,998
2,314
Your basepointer is:

game.exe + 0x002E79BC so yes, 0x002E79BC is the pointer.

game.exe + 0x002E79BC = 0x0D36A3E8

I hope this is clear and correct. Might be mistaken.

[hr][/hr]
Maybe this example makes it more clear if it wasn't yet.

uint address = mem.baseaddress( <Game.exe> ) + 0x002E79BC;

address = BitConverter.ToUInt32(BitConverter.GetBytes(mem.ReadPointer(address)), 0) + 0x4d0;
address = BitConverter.ToUInt32(BitConverter.GetBytes(mem.ReadPointer(address)), 0) + 0x3c;
address = BitConverter.ToUInt32(BitConverter.GetBytes(mem.ReadPointer(address)), 0) + 0x0;
address = BitConverter.ToUInt32(BitConverter.GetBytes(mem.ReadPointer(address)), 0) + 0x100;
address = BitConverter.ToUInt32(BitConverter.GetBytes(mem.ReadPointer(address)), 0) + 0x2cc;

uint Outcome = BitConverter.ToUInt32(BitConverter.GetBytes(mem.ReadPointer(address)), 0);
In your case, Outcome will hold 100 and will always be valid. So yes, 0x002E79BC is the pointer you are looking for. :)

Use this code:
https://guidedhacking.com/threads/rakes-baby-c-memory-class.13979/
 
Last edited:
  • Like
Reactions: Ryuuzaki L

Krayons

Newbie
Full Member
Oct 7, 2012
10
268
0
Thanks for the Help.

But I still don't seem to get it right.

Here is my cpp code.

DWORD FindscrapAddy(HANDLE hProcHandle){
DWORD base = 0x002E79BC;
DWORD pointer;
ReadProcessMemory(hProcHandle,(void*)base,&pointer, sizeof(pointer), 0);
cout << hex << pointer;
return pointer;
}
 

Rake

Cesspool Admin
Administrator
Jan 21, 2014
11,544
78,998
2,314
Sent you a PM. :)

p.s. You need to find the base address of the game.exe and add 0x002E79BC to that. Then add all the offsets, and you're all set.
 
Last edited by a moderator:

Krayons

Newbie
Full Member
Oct 7, 2012
10
268
0
Thanks to Magnificient, I have been able to come to a solution.

To find the base pointer check out this gist.
https://gist.github.com/a413289ca0eb3e7515e5

C++:
#include <windows.h>
#include <TlHelp32.h>
#include <iostream>
#include <TCHAR.H>


using namespace std;


DWORD dwGetModuleBaseAddress(DWORD dwProcessIdentifier, TCHAR *lpszModuleName)
{
   HANDLE hSnapshot = CreateToolhelp32Snapshot(TH32CS_SNAPMODULE, dwProcessIdentifier);
   DWORD dwModuleBaseAddress = 0;
   if(hSnapshot != INVALID_HANDLE_VALUE)
   {
      MODULEENTRY32 ModuleEntry32 = {0};
      ModuleEntry32.dwSize = sizeof(MODULEENTRY32);
      if(Module32First(hSnapshot, &ModuleEntry32))
      {
         do
         {
            if(_tcscmp(ModuleEntry32.szModule, lpszModuleName) == 0)
            {
               dwModuleBaseAddress = (DWORD)ModuleEntry32.modBaseAddr;
               break;
            }
         }
         while(Module32Next(hSnapshot, &ModuleEntry32));
      }
      CloseHandle(hSnapshot);
   }
   return dwModuleBaseAddress;
}


int main()
{
   HWND window = FindWindow(0, _T("FTL"));
   if( window == 0 ){
      cout << "Window not found!\n";
      char f;
      cin >> f;
      return 0;
   }


   DWORD pID = 0;
   GetWindowThreadProcessId(window, &pID);


   DWORD baseAddr = dwGetModuleBaseAddress(pID, _T("FTLGame.exe"));
   DWORD staticOffset = 0x002E79BC;


   HANDLE handle = OpenProcess(PROCESS_ALL_ACCESS, FALSE, pID);


   DWORD value;
   DWORD numBytesRead;
   ReadProcessMemory(handle, (LPCVOID)(baseAddr+staticOffset), &value, sizeof(DWORD), &numBytesRead);;


   CloseHandle(handle);
   cout << "Found value: " << hex << value;


   char f;
   cin >> f;
   return 0;
}
 

Rake

Cesspool Admin
Administrator
Jan 21, 2014
11,544
78,998
2,314
Glad to see that you've worked it out! :)

Have fun and good luck!
 
Attention! Before you post:

Read the How to Ask Questions Guide
99% of questions are answered in the Beginner's Guide, do it before asking a question.

No Hack Requests. Post in the correct section.  Search the forum first. Read the rules.

How to make a good post:

  • Fill out the form correctly
  • Tell us the game name & coding language
  • Post everything we need to know to help you
  • Ask specific questions, be descriptive
  • Post errors, line numbers & screenshots
  • Post code snippets using code tags
  • If it's a large project, zip it up and attach it

If you do not comply, your post may be deleted.  We want to help, please make a good post and we will do our best to help you.

Community Mods League of Legends Accounts