Solved How to get WoW base address?

Hexui Undetected CSGO Cheats Sinkicheat PUBG Cheat

tyguy

Newbie
Full Member
Feb 10, 2016
22
94
0
I'm making an external hack and it's getting window etc all fine but I can't get the base address of Wow.exe.. I used EnumProcessModules and used the first result but it doesn't seem to be working.
 

mambda

headass
Escobar Tier VIP
Trump Tier Donator
Jun 25, 2014
2,297
37,938
269
edit: do this tutorial for perfect code


**PSEUDOCODE**

C++:
<function that takes program name here>
snap = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0)
PROCESSENTRY32 pe;
pe.size = sizeof(pe);
if( Process32First(snap, &pe))
{
  if( !_stricmp(pe.szExeName, processYouWantHere) ) { return pe.modBaseAddr; }
}
while( Process32Next(snap, &pe) )
{
do  the shit above
}
need some dank autoformatting on this, is there a plugin for that?

quick edit: modBaseAddr is for th32cs_snapmodule, which you can use if you just supply a PID, otherwise use the above code with th32MemoryBase, but that may just get you what they want to be loaded at, and not the actual locaiton in memory.
 
Last edited by a moderator:

PePPeRmix

Newbie
Full Member
Feb 14, 2016
5
244
0
maybe i do not understand question, but looks like solutions for c# below
C++:
myProcess = Process.GetProcesses();
Int64 procBase;

            for (int i=0;i<myProcess.Length;i++)
            {
                if (myProcess[i].ProcessName.IndexOf("Wow") != -1 || myProcess[i].ProcessName.IndexOf("World of Warcraft") != -1) 
                procBase = (Int64)myProcess[i].MainModule.BaseAddress;
            }
 

tyguy

Newbie
Full Member
Feb 10, 2016
22
94
0
Thank you to both of you for helping me :)

Edit: It just seems like it's getting the modules, but not getting the exe.
 
Last edited:

Khonnor

Newbie
Full Member
Mar 7, 2014
30
1,248
0
C++:
#include <tchar.h>
#include <tlhelp32.h>


//Usage:         DWORD Base = dwGetModuleBaseAddress(proc_id, _T("WoW.exe"));





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;
}
Something like this?
I use this in my externals to grab the base address of the module I want.
 
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