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

11/04/2012 13:04 botetebalila#331
Quote:
Originally Posted by gaijinz View Post
OUTDATED PLZ CLOSED
Nope... Its not outdated. brains will be outdated if you dont know how to explore and code. XD...
11/04/2012 13:43 ou812#332
anybody wanna share perfect combo addys?? TIA :D
11/09/2012 14:56 keypress14#333
Quote:
Originally Posted by keypress14 View Post
Anyone can debug this? bm2 cooldown this code make may PC freeze. tnx!!!
#include "stdafx.h"
#include <windows.h>

#define ADDR_BASE 0x0B87170
#define OFFSET_A 0x20
#define OFFSET_B 0x4A1C
#define OFFSET_BM2 0x124


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_DELETE) < 0) // Turn On
{
DWORD BM2 = *(DWORD*)ADDR_BASE;
*(DWORD*)(BM2+OFFSET_A);
*(DWORD*)(BM2+OFFSET_BM2);
*(DWORD*)(BM2+OFFSET_B)=0;
}

Sleep(10);
}
}
NEED HELP
11/09/2012 15:37 spinx09#334
how 2 download
11/09/2012 16:02 summoner01#335
Successfully compiled. At first I had issues since I'm not used to C++ at all, but after reading some posts, I figured it out.

Compiler:
Microsoft Windows Studio Express 2012 for Windows Desktop
Download: [Only registered and activated users can see links. Click Here To Register...]

DLL Creation Process:
  1. New Project
  2. Win32 Console Application
  3. Name your project --> Hit OK
  4. Click Next
  5. Change Application Type: to DLL
  6. Check the box, Empty Project under Additional Options --> Hit Finish
  7. Look on the right side of the screen for Source Files
  8. Right click on Source Files and click Add --> New Item
  9. In the Add New Item - your application name window, select C++ File(.cpp). Give it a name, and hit Add
  10. Click on the new .cpp file you just added under Source Files.
  11. To the left of your screen is where you have to put the Code.
  12. Copy and paste the Code Below, and change stdafx.h to windows.h
  13. Hit File at the top left of your screen, and hit Save All
  14. Click BUILD --> Build Solution
  15. DLL creation complete.

Original Code:
Code:
#include "stdafx.h"

#define    ADDR_GM      0x1075C48
#define    ADDR_AOE     0x10C62FC
#define    ADDR_RANGE   0x10C62F8

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);
    }
}

Altered Code to make it compile:
Code:
#include "windows.h"

#define    ADDR_GM      0x1075C48
#define    ADDR_AOE     0x10C62FC
#define    ADDR_RANGE   0x10C62F8

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);
    }
}
11/09/2012 22:11 Acid#336
#moved & sticked
11/10/2012 05:57 dark23650431#337
I can't find the C++ in google... and I don't even know what it really looks like.... (I want to learn how to create Cabal NA hacks)
11/10/2012 06:06 genesisVI#338
its not c++ its visual studio
c++ is a language u nid a compiler
11/10/2012 08:36 dark23650431#339
damn creating a hack is really hard to process... takes time to make a code and most of all finding the addresses..... :( (Lots of time going to be taken when making hacks)
11/10/2012 11:42 Hanfsalat#340
Quote:
Originally Posted by summoner01 View Post
Successfully compiled. At first I had issues since I'm not used to C++ at all, but after reading some posts, I figured it out.

Compiler:
Microsoft Windows Studio Express 2012 for Windows Desktop
Download: [Only registered and activated users can see links. Click Here To Register...]

DLL Creation Process:
  1. New Project
  2. Win32 Console Application
  3. Name your project --> Hit OK
  4. Click Next
  5. Change Application Type: to DLL
  6. Check the box, Empty Project under Additional Options --> Hit Finish
  7. Look on the right side of the screen for Source Files
  8. Right click on Source Files and click Add --> New Item
  9. In the Add New Item - your application name window, select C++ File(.cpp). Give it a name, and hit Add
  10. Click on the new .cpp file you just added under Source Files.
  11. To the left of your screen is where you have to put the Code.
  12. Copy and paste the Code Below, and change stdafx.h to windows.h
  13. Hit File at the top left of your screen, and hit Save All
  14. Click BUILD --> Build Solution
  15. DLL creation complete.
Very nice Tutorial! But if i Inject the DLL into cabalmain.exe and press F11, Cabal simply closes.
11/11/2012 06:53 dark23650431#341
someone share some C++ code for Cabal NA please :D even if it's just AOE
11/11/2012 23:37 feliz009#342
its the same code .. you only change the addys . correct me if im wrong :D
11/12/2012 00:29 bartbilf#343
@dark23650431
feliz009 is right, this is sample code, you need to have the base address and offsets for NA and code those in

PS this thread deserves to be a sticky!:D
11/12/2012 02:19 demons_2100#344
Quote:
Originally Posted by bartbilf View Post
@dark23650431
feliz009 is right, this is sample code, you need to have the base address and offsets for NA and code those in

PS this thread deserves to be a sticky!:D
sir could u share the code c++ for multi-level pointer...
referrence...
base:A9B820
offset1:738
offset2:2A0
offset3:3C8

thanks...:D
11/12/2012 08:11 thugslife#345
i have no raseon for that