[Release][C++ Code] GM/AOE/Range

09/08/2012 15:02 audreyxp2012#241
wow i got already the code for AOE. its working fine now. but got stuck with the combo hack. can you share the code for combo hack please... thanks in advance...
09/08/2012 15:17 joci9#242
Quote:
Originally Posted by denz0892 View Post
Hey I just wanna ask on how can i compile the codes in visual c++? can someone give me some idea, i dont know where to save the file and make it like "cheat.dll" its just compiling and i dont know if the file is sucessfully save. -_- this makes my brain sick, since 8:35am i am trying to search look and find on how can i compile the codes and make it a .dll file
download visual c++,install it
make new project, select win 32 console application
enter your dll name, click OK
click next button
select DLL press finish
delete the dllmain.cpp at the left side


add this code:

#include "stdafx.h"

void Start();

BOOL APIENTRY DllMain(HMODULE hModule, DWORD ulReason, LPVOID lpReserved)
{
if (ulReason == DLL_PROCESS_ATTACH)
{
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)Start, 0, 0, 0);
}

return TRUE;
}

void Start()
{
//your code here
}


and press F7

if u do everything well u can look this in output:

1>------ Build started: Project: cheat01, Configuration: Debug Win32 ------
1> stdafx.cpp
1> cheat01.cpp
1> cheat01.vcxproj -> c:\users\hangya\documents\visual studio 2010\Projects\cheat01\Debug\cheat01.dll
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========


sry for my bad english :rolleyes:
09/08/2012 16:00 audreyxp2012#243
combo hack doesnt work... is the address for combo hack same with the old one?
09/08/2012 18:15 glemor1234#244
i cant make NSD work

Quote:
if (GetKeyState(VK_F7) < 0) // Turn On
{
int x = 0;
while(x == 0){
DWORD NODELAY = *(DWORD*)ADDR_BASE;
*(DWORD*)(NODELAY+OFFSET_NODELAY) = 1629697;
if (GetKeyState(VK_F8) < 0)
x = 1;
}
Sleep(1);
09/08/2012 19:54 Glenox#245
Quote:
Originally Posted by keypress14 View Post
#include <windows.h>

#define ADDR_GM 0x1076C40
#define ADDR_AOE 0x10C730C
#define ADDR_RANGE 0x10C62D8

void Start();

BOOL APIENTRY DllMain(HMODULE hModule, DWORD ulReason, LPVOID lpReserved)
{
if (ulReason == DLL_PROCESS_ATTACH)
{
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)Start, 0, 0, 0);
}

return TRUE;
}

void Start()
{
while (1)
{
if (GetKeyState(VK_F11) < 0) // Turn On
{
*(DWORD*)ADDR_GM = 2;
*(DWORD*)ADDR_AOE = 100;
*(DWORD*)ADDR_RANGE = 7;
}

if (GetKeyState(VK_F12) < 0) // Turn Off
{
*(DWORD*)ADDR_GM = 0;
*(DWORD*)ADDR_AOE = 0;
*(DWORD*)ADDR_RANGE = 0;
}

Sleep(1);
}
}

i compiled this code and inject but its not working
i got the address here

[Only registered and activated users can see links. Click Here To Register...]
inject the dll into cabalmain.exe!!! and the game Press F11 to On and Press F12 to Off!!
09/09/2012 13:24 keypress14#246
Quote:
Originally Posted by Glenox View Post
inject the dll into cabalmain.exe!!! and the game Press F11 to On and Press F12 to Off!!
ITS not woking..
I used Dev-C++ to compile this code..
09/09/2012 15:05 audreyxp2012#247
is the old address for combo hack same with the latest address?
09/09/2012 15:14 lowkey04#248
the combo offset didn't change in the latest ph update.
09/09/2012 15:19 denz0892#249
Quote:
Originally Posted by joci9 View Post
download visual c++,install it
make new project, select win 32 console application
enter your dll name, click OK
click next button
select DLL press finish
delete the dllmain.cpp at the left side


add this code:

#include "stdafx.h"

void Start();

BOOL APIENTRY DllMain(HMODULE hModule, DWORD ulReason, LPVOID lpReserved)
{
if (ulReason == DLL_PROCESS_ATTACH)
{
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)Start, 0, 0, 0);
}

return TRUE;
}

void Start()
{
//your code here
}


and press F7

if u do everything well u can look this in output:

1>------ Build started: Project: cheat01, Configuration: Debug Win32 ------
1> stdafx.cpp
1> cheat01.cpp
1> cheat01.vcxproj -> c:\users\hangya\documents\visual studio 2010\Projects\cheat01\Debug\cheat01.dll
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========


sry for my bad english :rolleyes:
thanks :)
09/09/2012 15:32 keypress14#250
who knows how to change ZOOM HACK VALUE USING THIS ADDRESS : 004E919E = 90 90 90
09/09/2012 15:35 lowkey04#251
zoom hack only works with a bypass.
09/09/2012 17:01 mannypacute#252
about the auto attack sir
09/09/2012 19:50 osyris124#253
Hello, I got this error when building..


1>------ Build started: Project: v3, Configuration: Debug Win32 ------
1> dllmain.cpp
1>v3.obj : error LNK2005: _DllMain@12 already defined in dllmain.obj
1>v3.obj : error LNK2005: "void __cdecl Start(void)" (?Start@@YAXXZ) already defined in dllmain.obj
1>C:\Users\ChiefInspector\Desktop\v3\Debug\v3.dll : fatal error LNK1169: one or more multiply defined symbols found
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


and this is my code..


#include "stdafx.h"
#include <stdio.h>
#include <stdlib.h>
#include <windows.h>

#define ADDR_GM 0x1076C40
#define ADDR_AOE 0x10C730C
#define ADDR_RANGE 0x10C7308

void Start();

BOOL APIENTRY DllMain(HMODULE hModule, DWORD ulReason, LPVOID lpReserved)
{
if (ulReason == DLL_PROCESS_ATTACH)
{
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)Start, 0, 0, 0);
}

return TRUE;
}

void Start()
{
while (1)
{
if (GetKeyState(VK_F11) < 0) // Turn On
{
*(DWORD*)ADDR_GM = 2;
*(DWORD*)ADDR_AOE = 100;
*(DWORD*)ADDR_RANGE = 7;
}

if (GetKeyState(VK_F12) < 0) // Turn Off
{
*(DWORD*)ADDR_GM = 0;
*(DWORD*)ADDR_AOE = 0;
*(DWORD*)ADDR_RANGE = 0;
}

Sleep(1);
}
}


Can anyone tell me whats the error? Thanks a lot.. I really want to learn this.. Thank you.
09/09/2012 20:43 AshCrocK#254
@UP delete dllmain.obj

I have a question... Why everytime I try to activate my injected .dll game closes?
09/09/2012 21:47 Glenox#255
Quote:
Originally Posted by osyris124 View Post
Hello, I got this error when building..


1>------ Build started: Project: v3, Configuration: Debug Win32 ------
1> dllmain.cpp
1>v3.obj : error LNK2005: _DllMain@12 already defined in dllmain.obj
1>v3.obj : error LNK2005: "void __cdecl Start(void)" (?Start@@YAXXZ) already defined in dllmain.obj
1>C:\Users\ChiefInspector\Desktop\v3\Debug\v3.dll : fatal error LNK1169: one or more multiply defined symbols found
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


and this is my code..


#include "stdafx.h"
#include <stdio.h>
#include <stdlib.h>
#include <windows.h>

#define ADDR_GM 0x1076C40
#define ADDR_AOE 0x10C730C
#define ADDR_RANGE 0x10C7308

void Start();

BOOL APIENTRY DllMain(HMODULE hModule, DWORD ulReason, LPVOID lpReserved)
{
if (ulReason == DLL_PROCESS_ATTACH)
{
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)Start, 0, 0, 0);
}

return TRUE;
}

void Start()
{
while (1)
{
if (GetKeyState(VK_F11) < 0) // Turn On
{
*(DWORD*)ADDR_GM = 2;
*(DWORD*)ADDR_AOE = 100;
*(DWORD*)ADDR_RANGE = 7;
}

if (GetKeyState(VK_F12) < 0) // Turn Off
{
*(DWORD*)ADDR_GM = 0;
*(DWORD*)ADDR_AOE = 0;
*(DWORD*)ADDR_RANGE = 0;
}

Sleep(1);
}
}


Can anyone tell me whats the error? Thanks a lot.. I really want to learn this.. Thank you.
learn C++