Results 1 to 9 of 9
  1. #1
    OBrozz's Avatar
    Join Date
    May 2011
    Gender
    male
    Posts
    820
    Reputation
    65
    Thanks
    813

    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

    Last edited by OBrozz; 05-23-2011 at 01:29 PM.

  2. The Following User Says Thank You to OBrozz For This Useful Post:

    Lunatic (06-29-2011)

  3. #2
    Gordon`'s Avatar
    Join Date
    Dec 2007
    Gender
    male
    Posts
    283
    Reputation
    24
    Thanks
    325
    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.


  4. #3
    c0ke187's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Posts
    13
    Reputation
    10
    Thanks
    6
    this wont work will it???

    i thought the console has to be called from a hooked function in the address space of the game....

  5. #4
    OBrozz's Avatar
    Join Date
    May 2011
    Gender
    male
    Posts
    820
    Reputation
    65
    Thanks
    813
    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
    Last edited by OBrozz; 05-23-2011 at 01:29 PM.

  6. #5
    SoWhat's Avatar
    Join Date
    Mar 2011
    Gender
    male
    Posts
    1,271
    Reputation
    15
    Thanks
    59
    My Mood
    In Love
    nice now make it a hack
    Aim : SowhatYowann@aim.com
    Xfire : yowann
    Msn : yowann_10@hotmail.com
    Skype :mmo wned66 (no space)
    Gmail : Yowannsowaht@gmail.com
    (i know theres an error in my gmail xd)

    Co Owner OF MLD!
    SoWhat(Founder)
    [MPGH]Ravallo
    EliteHakz
    SoWhat Backup
    OBrozz
    [MPGH]Nitehawk772
    CADealer
    [MPGH]Bombsaway707
    Official CA Nexon Spy™
    Hemp
    NO ONE ELSE IS IN THIS GROUP.






    Quote Originally Posted by Jigsaw View Post
    Right now we made a deal and was successfully, without errors or attempts to scam each other. Just reporting he's trusted enough,

    Quote Originally Posted by Robert. View Post
    Trusted member, negotiating pro, legit.

    Quote Originally Posted by iCheetosPaypal View Post
    And I Also Vouch For SoWhat was like a 5 second Transaction and will trade more in the future

  7. #6
    OBrozz's Avatar
    Join Date
    May 2011
    Gender
    male
    Posts
    820
    Reputation
    65
    Thanks
    813
    Quote Originally Posted by $0WhaT ? 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.

  8. #7
    speedforyou's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    741
    Reputation
    -59
    Thanks
    108
    My Mood
    Happy
    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

    steel o-o's sig =
    = Done , = Not Done

    Leecher 0 =
    Newbie 25 =
    Member 50 =
    Advanced Member 100 =
    H4X0R Member 150 =
    Dual-Keyboard Member 250 =
    Expert Member 500 =
    's Trainer 750 =
    MPGH Expert 1000 =
    Synthetic Hacker 1250 =
    Blackhat Hacker 1500 =
    Whitehat Hacker 2000 =
    's Guardian 2500 =
    Upcoming MPGHiean 3000 =
    MPGH Addict 3500 =
    MPGHiean 4000 =
    MPGH Knight 4500 =
    MPGH Lord 5000 =
    MPGH Champion 5500 =
    MPGH King 6000 =
    MPGH Legend 6500 =
    MPGH God 7000 =
    MPGH God II 7500 =
    MPGH God III 8000 =
    MPGH God IV 8500 =
    MPGH God V 9000 =
    Arun's Slave 9500 =
    Dave's Slave 10000 =

  9. #8
    _Fk127_'s Avatar
    Join Date
    Nov 2010
    Gender
    male
    Posts
    724
    Reputation
    16
    Thanks
    208
    My Mood
    Bitchy
    Nice, simple, easy to understand.
    The only issue-
    Wont work :P



    Put this image in your signature if you support HTML5 development!

  10. #9
    swatfx's Avatar
    Join Date
    Apr 2009
    Gender
    male
    Posts
    661
    Reputation
    20
    Thanks
    108
    My Mood
    Mellow
    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?