Simple Hotkey Hack

Posts 1–9 of 9 · Page 1 of 1
Simple Hotkey Hack
Seems that several people here are incompetent and don't have the knowledge to either search the forum or read comments in other people's help threads.

So i decided to release a basic Hotkey Hack to help y'all.
Warning: I started C++ a few days ago, check my syntax.


This Xor code is not needed but helpful for coders who are learning to make menu's.


Xor.h
Code:
#ifndef _XOR_H
#define _XOR_H
template <int XORSTART, int BUFLEN, int XREFKILLER>

class XorStr
{
private:
    XorStr();
public:
    char s[ BUFLEN ];

    XorStr( const char * xs );

    ~XorStr()
    {
        for ( int i = 0; i < BUFLEN; i++ ) s[ i ]=0;
    }
};

template <int XORSTART, int BUFLEN, int XREFKILLER>
XorStr<XORSTART,BUFLEN,XREFKILLER>::XorStr( const char * xs )
{
    int xvalue = XORSTART;
    int i = 0;

    for ( ; i < ( BUFLEN - 1 ); i++ )
    {
        s[ i ] = xs[ i - XREFKILLER ] ^ xvalue;
        xvalue += 1;
        xvalue %= 256;
    }

    s[ BUFLEN - 1 ] = 0;
}
#endif
Strings.h
Code:
#define NxChamsOn /*SkelModelStencil 1*/XorStr<0x22,19,0x9A03721A>("\x71\x48\x41\x49\x6B\x48\x4C\x4C\x46\x78\x58\x48\x40\x4C\x59\x5D\x12\x02"+0x9A03721A).s
#define NxChamsOff /*SkelModelStencil 0*/XorStr<0xA2,19,0x1C073F31>("\xF1\xC8\xC1\xC9\xEB\xC8\xCC\xCC\xC6\xF8\xD8\xC8\xC0\xCC\xD9\xDD\x92\x83"+0x1C073F31).s

Core.cpp

Code:
#include <windows.h>
int HackOn = 0;
int HackMax = 10;
bool test = false;


void WINAPIV RunConsoleCommand( const char* cmd )
{
    _asm
    {
        PUSH cmd
        MOV EAX, 0x485E10
        CALL EAX
        ADD ESP, 0x4
    }
}

void Main (void)
{
    while(1)
    {
        if(GetAsyncKeyState(VK_NUMPAD1)&1)
        {
            test = (!test);
        }
        if(GetAsyncKeyState(VK_NUMPAD2)&1)
        {
            HackOn ++;
            if(HackOn == HackMax) HackOn = 0;
        }
       
        if(test){
            RunConsoleCommand(ChamsOn);
        }else{
            RunConsoleCommand(ChamsOff);
        }
    
Sleep(200);
    }
}
DWORD WINAPI Lesson (LPVOID)
{   
    Main();
    return 1;
}

BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
    DisableThreadLibraryCalls(hDll);

    if ( dwReason == DLL_PROCESS_ATTACH )
    {
        CreateThread(NULL, NULL, Lesson, NULL, NULL, NULL);
    }
return TRUE;

}


Credits:
@flameswor10-The Core.cpp(Edited By me)
@NOOB - Addresses

looks like everyone elses hotkey hack. nothing special on it except u crypt the strings.

i would add a sleep into ur while loop or ur cpu usage goes high and causes the game to lag.
this wont work will it???

i thought the console has to be called from a hooked function in the address space of the game....
Quote Originally Posted by Gordon` View Post
looks like everyone elses hotkey hack. nothing special on it except u crypt the strings.

i would add a sleep into ur while loop or ur cpu usage goes high and causes the game to lag.

@Gordon'
Thanks for the help but this is simply Flameswor10 base edited by me also if i added sound to the hotkey base would that make it more unique? Idk if that has been released here because Ive been here not to long?
P.S - Added the Sleep
nice now make it a hack
Quote Originally Posted by SoWhat View Post
nice now make it a hack
I am not here to release hacks, mainly just to learn. I might in the future when i full understand the concept of hacking. Honestly i haven't attempted finding my own addresses. Which means i have to rely on public releases and that's something i don't want to look forward to.
easy to under stand but

if this is for helping in comunity

u might want to add
"//"and tell what it does
just a recamondation
Nice, simple, easy to understand.
The only issue-
Wont work :P
Quote Originally Posted by _Fk127_ View Post
Nice, simple, easy to understand.
The only issue-
Wont work :P
exactly, your not calling console from within one of the games functions.

doesn't anybody test before release?
Posts 1–9 of 9 · Page 1 of 1
This thread is closed for replies.

Tags for this Thread

None

Talk with us