Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > General Coding
You last visited: Today at 07:58

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Warcraft 3 Code!

Discussion on Warcraft 3 Code! within the General Coding forum part of the Coders Den category.

Reply
 
Old   #1
 
ken107's Avatar
 
elite*gold: 0
Join Date: Aug 2014
Posts: 115
Received Thanks: 8
Warcraft 3 Code!

halli hallo hallöle,

Ich versuche mich seid längerem daran ein maphack selber zu schreiben in c++
bin noch anfänger!

ich habe mich bei diesem code and die vorgänger gehalten weil es bei mir erst probleme gab mit dem compiler von MSVS 2010 bin ich auf MSVS Express 2012 umgestiegen.
Okay jetzt zum code oder zum eigentlichen fehler :

SourceCode:



#include <windows.h>



int main()

{

//Find wc3 windows

HWND hwar3=::FindWindow(NULL,"Warcraft III")



;HANDLE hcurrent = GetCurrentProcess();
HANDLE hToken;
BOOL bret=OpenProcessToken(hcurrent,40,&hToken);
LUID luid;
bret=LookupPrivilegeValue(NULL,"SeDebugPrivilege", &luid);
TOKEN_PRIVILEGES NewState,PreviousState;

DWORD ReturnLength;
NewState.PrivilegeCount =1;
NewState.Privileges[0].Luid =luid;
NewState.Privileges[0].Attributes=2;
bret=AdjustTokenPrivileges(hToken,FALSE,&NewState, 28,&PreviousState,&ReturnLength);



DWORD PID, TID;
TID = ::GetWindowThreadProcessId (hwar3, &PID);
//Open wc3 process
HANDLE hopen=OpenProcess( PROCESS_ALL_ACCESS|PROCESS_TERMINATE|PROCESS_VM_OP ERATION|PROCESS_VM_READ|
PROCESS_VM_WRITE,FALSE,PID);





//Write memory
//02661563 66:B9 0F00 - 0x66 0xB9 0x0F 0x00 MOV DI,0FF

DWORD data=0x66;
bret=WriteProcessMemory(hopen,(LPVOID)0x02661563,& data,1,0);
data=0xB9;
bret=WriteProcessMemory(hopen,(LPVOID)0x02661564,& data,1,0);
data=0x0F;
bret=WriteProcessMemory(hopen,(LPVOID)0x02661565,& data,1,0);
data=0x00;
bret=WriteProcessMemory(hopen,(LPVOID)0x02661566,& data,1,0);



//Close handle
bret=CloseHandle(hopen);
return 0;

}



okay ist durchgelaufen ohne probleme wollte dann mal gucken ob ich ihn an denn process anhängen kann (WARCRAFT 3 )und es ging nicht hab mir dann nix bei gedacht und exe erstellt.Habe dann die exe beim spiel gestartet dann kam kurz eine Schwarze console aufgeblinkt und nix ist passiert (ingame).
kann mir vllt jmd genaueres sagen?

vielen dank für die hilfe schonmal peace out!







ENGLISH:



hallihallo hallöle,

I try are prolonged it a Maphack himself to write in c ++
am still beginner!

I was kept in this code and the predecessor because there were only problems for me with the compiler of MSVS 2010, I switched to MSVS Express 2012 Design.
Okay now for the code or the actual error:



#include <windows.h>



int main()

{

//Find wc3 windows

HWND hwar3=::FindWindow(NULL,"Warcraft III")



;HANDLE hcurrent = GetCurrentProcess();
HANDLE hToken;
BOOL bret=OpenProcessToken(hcurrent,40,&hToken);
LUID luid;
bret=LookupPrivilegeValue(NULL,"SeDebugPrivilege", &luid);
TOKEN_PRIVILEGES NewState,PreviousState;

DWORD ReturnLength;
NewState.PrivilegeCount =1;
NewState.Privileges[0].Luid =luid;
NewState.Privileges[0].Attributes=2;
bret=AdjustTokenPrivileges(hToken,FALSE,&NewState, 28,&PreviousState,&ReturnLength);



DWORD PID, TID;
TID = ::GetWindowThreadProcessId (hwar3, &PID);
//Open wc3 process
HANDLE hopen=OpenProcess( PROCESS_ALL_ACCESS|PROCESS_TERMINATE|PROCESS_VM_OP ERATION|PROCESS_VM_READ|
PROCESS_VM_WRITE,FALSE,PID);





//Write memory
//02661563 66:B9 0F00 - 0x66 0xB9 0x0F 0x00 MOV DI,0FF

DWORD data=0x66;
bret=WriteProcessMemory(hopen,(LPVOID)0x02661563,& data,1,0);
data=0xB9;
bret=WriteProcessMemory(hopen,(LPVOID)0x02661564,& data,1,0);
data=0x0F;
bret=WriteProcessMemory(hopen,(LPVOID)0x02661565,& data,1,0);
data=0x00;
bret=WriteProcessMemory(hopen,(LPVOID)0x02661566,& data,1,0);



//Close handle
bret=CloseHandle(hopen);
return 0;

}



okay has passed without problems would then let's see if I can attach it to process because (WARCRAFT 3) and it was not then thought to myself nix at and exe erstellt.Habe then the exe started when play came just a black console and aufgeblinkt nothing has happened (in-game).
can vllt jmd accurate tell me?

many thanks for the help in advance peace out!













kk, found my fail
ty anyway











RE OPENED !!

















okay like i said i fix the problem! But now,everytime i restart the game the static address change
the first 200 times it didnt why?

example:
02661563 First this
02561253 than this

is there are way to read the binary and write to it ?
ken107 is offline  
Reply


Similar Threads Similar Threads
world of warcraft US time code
09/18/2014 - World of Warcraft Trading - 1 Replies
hello i sell time codes for US servers. i have a differnt prices if you want use only paypal, or you want to use also ebay with paypal only paypal: 30 days = $ 8 60 days = $ 15 90 days = $ 20 if you want use ebay, You need to consider a ebay commisions! and also the fact that I sell on spanish ebay!
[S] Warcraft III The Frozen Throne Code
12/13/2010 - elite*gold Trading - 10 Replies
What the Topic says :) Biete 50 e*gold für einen !
[VK] World of Warcraft Code
08/21/2010 - World of Warcraft Trading - 5 Replies
Hi Community, Was Wir verkauft? Ich verkaufe heute einen Wow 10 Day Code. Wer interesse hat kann mich in Skype adden : bash3r112 oder einfach hier mich anschreiben. Und wie geht das mit der Bezahlung?
Verkaufe Warcraft 3 code
01/02/2010 - Trading - 0 Replies
hey com ich habe noch einen warcraft 3 code also normale warcraft 3 und warcraft frozen throne (erweitrung) wer interesse daran hat schreibt hier rein mit angebot an PSC



All times are GMT +1. The time now is 07:58.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.