wc3edit.net
https://forum.wc3edit.net/

nothing about tools , about memory modify
http://forum.wc3edit.net/useful-tools-f69/nothing-about-tools-about-memory-modify-t18439.html
Page 1 of 1

Author:  chinapop [ August 16th, 2010, 4:31 am ]
Post subject:  nothing about tools , about memory modify

firstly thanks for all the useful tools!

As everyone knows an map hacker just simply modify the war3.exe memory like this.


Spoiler:
Code:
#include <windows.h>

void EnableDebugPriv();


int main()
{
    //We have to set debug privileges for our app to be allowed to OpenProcess (war3.exe)
    EnableDebugPriv();

    //Get a Handle on Warcraft III window
    HWND hwar3 = FindWindow("Warcraft III",NULL);

    if (!hwar3) //If we can't find the window...
    {
        MessageBox(0, "Run Warcarft III First!", "", MB_OK);         
        return false;
    }

    DWORD pid;
    GetWindowThreadProcessId(hwar3, &pid);     
    HANDLE hopen = OpenProcess(PROCESS_ALL_ACCESS, false, pid);

    if (!hopen) //Can't open Warcarft III's process.. Must be a PID error.
    {
  MessageBox(0, "Your getting a PID error, use LoaderZ.", "", MB_OK);
  return false;
    }

    //Now we're ready to change the memory!   
    //We remember:  6F2A3B91   66:BF 0F00     MOV DI,0x0F     
    BYTE data[] = {0xBF,0x0F,0x00};     

    bool success = WriteProcessMemory(hopen,(LPVOID)0x6F2A3B92, &data,3, NULL);   

              if(success)//Everything worked
     {
                  MessageBox(NULL, "Hack Loaded - Remember to Vist http://www.SkillHackerZ.com", "", MB_OK);
     }
              else//There was an error!
     {
                  MessageBox(NULL, "Couldn't load hack", "", MB_OK);
     }

 

    // Remember to be clean
     CloseHandle(hopen);
    //Done!
    return true; 
}   

 

 

 

void EnableDebugPriv()
{     

    HANDLE hToken;     

    LUID sedebugnameValue;     

    TOKEN_PRIVILEGES tkp;

    OpenProcessToken(GetCurrentProcess(), TOKEN_ADJUST_PRIVILEGES | TOKEN_QUERY, &hToken);

    LookupPrivilegeValue(NULL, SE_DEBUG_NAME, &sedebugnameValue);

    tkp.PrivilegeCount = 1;     

    tkp.Privileges[0].Luid = sedebugnameValue;     

    tkp.Privileges[0].Attributes = SE_PRIVILEGE_ENABLED;

    AdjustTokenPrivileges(hToken, false, &tkp, sizeof tkp, NULL, NULL);

    CloseHandle(hToken); 
}



but how can you know where to path?

you can use CheatEngine (http://www.cheatengine.org/)and some assembly language skill is needed, of cause.

you can move your hero and search the memory ,then move again search again, again and again.finally you find an address then you find out what access the memory then path the mem-access function. that's it.

but i don't know how to find the address of minimap and the invisible units, illusions.

does anyone know it ,can you tell me how ?

Author:  quosai [ August 16th, 2010, 12:50 pm ]
Post subject:  Re: nothing about tools , about memory modify

Interesting sound..
i wonder how u get it.
can u provide the tool u use to open it?

Author:  haxorico [ August 16th, 2010, 4:58 pm ]
Post subject:  Re: nothing about tools , about memory modify

grr hurts my eyes.. tag in [code ] and [spoiler ] please.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/