• 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
  • Page 2 of 2 FirstFirst 12
    Results 11 to 12 of 12
    1. #11
      Newbie
      Learning to hack games!
       
      Feeling Normal
       
      EugenioH's Avatar
      Join Date
      Apr 2016
      Posts
      1
      Thanks (-->)
      0
      Thanks (<--)
      0

      Red face Get Module Base

      Silent VPN
      I'm trying to get a base from a module, but it usually returns a value of type 10000000, a base and "mono.dll", and when I add "mono.dll" + 0x020A13C it is not a final basis of the address.

      Look here in the forum something about ASLR (Address Space Layout Randomization) is that this could be it?
      I just do not know what else to do.
      follow the code:

      Code:
      #include "stdafx.h"
      #include <windows.h>
      #include <iostream>
      #include <TlHelp32.h>
      #include <tchar.h>
      
      using namespace std;
      //-----------Prototipos ----------//
      DWORD dwGetModule(DWORD dwProcID, TCHAR *cModuleName);
      
      int main() {
      	LPCSTR GameName = "Cuphead";
      	HANDLE hProcHandle = NULL;
      	HWND hJanela = NULL;
      	DWORD dwProcID = NULL;
      	int valor = 1;
      	hJanela = FindWindow(NULL, GameName);
      	GetWindowThreadProcessId(hJanela, &dwProcID);
      
      	hProcHandle = OpenProcess(PROCESS_ALL_ACCESS, NULL, dwProcID);
      	DWORD BaseAddress = 0;
      	BaseAddress = dwGetModule(dwProcID, "mono.dll");
      
      	if (hProcHandle == INVALID_HANDLE_VALUE || hProcHandle == NULL)
      		cout << "Não foi possível abrir um handle válido" << endl;
      	else
      	{
      		cout << "Pronto para hackear!" << endl;
      		
      
      	};
      	cout << "Modulo " << hex << BaseAddress << endl;
      	cout << "Endereco FInal " << BaseAddress + 0x0020A13C << endl;
      
      	WriteProcessMemory(hProcHandle, (LPVOID*)BaseAddress + 0x0020A13C, &valor, sizeof(valor), NULL);
      	system("pause");
      
      
      
      }
      DWORD dwGetModule(DWORD dwProcID, TCHAR *cModuleName) {
      
      	DWORD dwModuleBase = 0;
      	HANDLE hSnapShot = CreateToolhelp32Snapshot(TH32CS_SNAPMODULE | TH32CS_SNAPMODULE32, dwProcID);
      
      		MODULEENTRY32 Me32;
      		Me32.dwSize = sizeof(MODULEENTRY32);
      
      		if (Module32First(hSnapShot, &Me32)) {
      			do
      			{
      				if (_tcsicmp(Me32.szModule, cModuleName) == 0) {
      					dwModuleBase = (DWORD)Me32.modBaseAddr;
      					break;
      				}
      			} while (Module32Next(hSnapShot, &Me32));
      		}
      
      		CloseHandle(hSnapShot);
      
      		return dwModuleBase;
      
      }

    2. #12
      Administrator
      Hacked By Jesus
       
      Reversing
       
      [GH]Rake's Avatar
      Join Date
      Jan 2014
      Location
      USA
      Posts
      3,529
      Thanks (-->)
      830
      Thanks (<--)
      1021

    Page 2 of 2 FirstFirst 12

    Similar Game Hacker Threads

    1. [Help] How to get WoW base address?
      By tyguy in forum Hacking Help
      Replies: 4
      Last Post: 02-20-2016, 08:05 PM
    2. [Help] Memory Address - Not in a module [Screenshot Provided]
      By Aleksander in forum Hacking Help
      Replies: 8
      Last Post: 11-20-2015, 01:30 PM
    3. [Help] Help me to beat a dynamic module base
      By Icew0lf in forum Hacking Help
      Replies: 14
      Last Post: 09-04-2015, 11:21 AM
    4. [Help] DLL - How to get address of module?
      By zepixx in forum Hacking Help
      Replies: 1
      Last Post: 10-29-2014, 04:56 AM
    5. [Help] Address to Module BaseName
      By Freak in forum C/C++
      Replies: 7
      Last Post: 04-04-2014, 10:49 AM

    Tags for this Thread