[Source] NoMenu Example

02/08/2011 14:34 NikM#1
For all pseuds and all the other guys :P :

main.cpp

Code:
#include <windows.h>
#include "CHack.h"
#include "Targetever.h"

CWarSuxHax Hax;

void WarSuxHacks ()
{
        for ( ; ; )
        {
                Hax.PlayerHax (1);
                Hax.ServerHax (1);
                Sleep (200);
        }
}


BOOL WINAPI DllMain (HINSTANCE mod, DWORD DWORD_GRUND, LPVOID res)
{
        switch (DWORD_GRUND)
        {
        case 1:
                {
                        MessageBoxA (NULL, "NikM NoMenu Example", "Creditz", MB_OK);
                        ShellExecuteA (NULL, "Open", "http://warsux.net/", NULL, NULL, 1);
                        CreateThread (0, 0, (LPTHREAD_START_ROUTINE) WarSuxHacks, 0, 0, 0);
                }break;

        case 2:
                {
                }break;
        }

        return TRUE;
}

CHack.h

Code:
class CWarSuxHax
{
private:
        //Player Variablen
        int SuperJump;
        //Server Variablen
        int Slot;

public:
        void PlayerHax (int SuperJump);
        void ServerHax (int Slot);

};


CHack.cpp
Code:
#include <windows.h>
#include "CHack.h"
#include "Addys.h"

void CWarSuxHax::PlayerHax (int SuperJump)
{
        DWORD niksPlayer = *(DWORD*)Playerpointer;
        if (niksPlayer != 0)
        {
                if (SuperJump == 1)
                {
                        if (GetAsyncKeyState (VK_CONTROL) &1)
                        {
                                *(float*) (niksPlayer + Z_Axis) = 500.0f;
                        }
                }
        }
}

void CWarSuxHax::ServerHax (int Slot)
{
        DWORD niksServer = *(DWORD*)Serverpointer;
        if (niksServer != 0)
        {
                if (Slot == 1)
                {
                        *(int*) (niksServer + Slot5) = 1;
                }
        }
}


Addys.h

Code:
//Pointers//
#define Playerpointer 0x00BC4470
#define Serverpointer 0x00ABF050

//Adresses//

//Offsets//
#define Slot5         0x001021A4
#define Z_Axis        0x000102D8


Targetever.h

Code:
#pragma once
#ifndef WINVER                  
#define WINVER 0x0600    
#endif

#ifndef _WIN32_WINNT        
#define _WIN32_WINNT 0x0600 
#endif

#ifndef _WIN32_WINDOWS      
#define _WIN32_WINDOWS 0x0410 
#endif



Let's Hack :P
Download in annex :P

Virustotal: [Only registered and activated users can see links. Click Here To Register...]

Crediz:
NikM
Willi27 (Targetever.h)