how to make your own hack DLL.
I'm going to show you all how to make a NoMenu hack using
Visual C++ 2008 Express Edition with Sp1.
Download and Install
Uploaded with
ImageShack.us
Open C++, then make a new project
File -> New -> Project
Uploaded with
ImageShack.us
Project types: Win32
Templates: Win32 Project
Then type the name of your hack then click ok
Uploaded with
ImageShack.us
Uploaded with
ImageShack.us
Application Type: DLL
Additional Options: Empty Project
Then click Finish
Uploaded with
ImageShack.us
Now, in the left menu your project will appear
Solution 'NameOfYourHack' (1 project)
- NameOfYourHack
* Header Files
* Resource Files
* Source Files
To start the base of the NoMenu hack
Right click the folder "Source Files"
Source Files -> Add -> New Item
Uploaded with
ImageShack.us
Now in the menu that shows up
Click on "C++ File (.ccp)"
Visual C++ -> C++ File (.cpp)
Name it "Main"
Uploaded with
ImageShack.us
Now a blank document will appear.
This is where the real NoMenu hack building starts
We start off defining some windows stuff
Code: Select Content
#include <windows.h>
#include <stdio.h>
Than we are going to define our hacks
Code: Select Content
//--------------------------Define Hacks--------------------------//
#define ADR_PlayerPointer 0x00
#define ADR_ServerPointer 0x00
//--------------------------End Define Addies--------------------------//
These are just the basic addies that you will allways need.
It makes it not include in the hack so you won't recieve errors for this.
It's most used to remember things for if you watch back later and you're like WTH did I do.
Beneath the addies define something for the "HackThread"
Code: Select Content
//--------------------------Define HackThread--------------------------//
DWORD *ingame= (DWORD*)Playerpointer;
DWORD *outgame= (DWORD*)Serverpointer;
//--------------------------End Define HackThread--------------------------//
Now First you create 2 sections, PlayerHacks and ServerHacks like this
Code: Select Content
//--------------------------Start Hacks--------------------------//
void PlayerHacks() // Start PlayerHacks
{
DWORD dwPlayerPtr = *(DWORD*)Playerpointer;
if(dwPlayerPtr != 0){
//(Remove this message and put your source here)
}} //End PlayerHacks
void ServerHacks() // Start ServerHacks
{
DWORD dwSrvrPtr=*(DWORD*)Serverpointer;
if(dwSrvrPtr!=0){
//(Remove this message and put your source here)
}} //End ServerHacks
//--------------------------End Hacks--------------------------//
Now we can put some hacks in. I'll take, Superjump, No Fall Damage and Visual Premium.
PlayerHacks: Superjump, No Fall Damage.
ServerHacks: Visual Premium.
This is what it should look like
Code: Select Content
//--------------------------Start Hacks--------------------------//
void PlayerHacks() // Start PlayerHacks
{
DWORD dwPlayerPtr = *(DWORD*)Playerpointer;
if(dwPlayerPtr != 0){
//Superjump
{
if(GetAsyncKeyState(VK_CONTROL) &1)
{
DWORD dwPlayerPtr = *(DWORD*)ADR_PlayerPointer;
*(float*)(dwPlayerPtr+OFS_Z) = 1500; //Height of SuperJumping
}
}
//No Fall Damage
{
DWORD dwPlayerPtr = *(DWORD*)ADR_PlayerPointer;
if(dwPlayerPtr != 0)
{
*(float*)(dwPlayerPtr+OFS_NFD) = -10000;
}
}
}} //End PlayerHacks
void ServerHacks() // Start ServerHacks
{
DWORD dwSrvrPtr=*(DWORD*)Serverpointer;
if(dwSrvrPtr!=0){
//Visual Premium
{
DWORD dwPlayerPtr = *(DWORD*)ADR_ServerPointer;
if(dwPlayerPtr != 0)
{
*(long*)(dwPlayerPtr+ADR_OFS_PREMIUM1) = 3, 10;
*(float*)(dwPlayerPtr+ADR_OFS_PREMIUM2) = 7; //Days of Visual Premium
}
}
}} //End ServerHacks
//--------------------------End Hacks--------------------------//
Now. We are going to add a hackthread.
Code: Select Content
//-------------------------HackThread--------------------------//
void HackThread()
{
for(;; )
{
if(*ingame)
{
PlayerHacks();
}
if(*outgame)
{
ServerHacks();
}
}
Sleep(200); //prevent for overloading the cpu
}
//--------------------------End HackThread--------------------------//
You see I included the hacks "superjump" and "nfd".
[q] What does a HackThread do?
[a] It includes the hacks you have added to your NoMenu hack. When you don't add them in the hackthread they will NOT work ingame.
[q] Why is there an ingame and outgame?
[a] The ingame is for Playerhacks like stamina, superjump, no fall damage etc. The outgame is for Serverhacks like Premium, Extra slot, Supermaster etc.
The end of the hack
Code: Select Content
//--------------------------End--------------------------//
BOOL WINAPI DllMain(HINSTANCE hModule, DWORD dwReason, LPVOID lpvReserved)
{
if(dwReason == DLL_PROCESS_ATTACH)
{
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)HackThread, 0, 0, 0);
}
return TRUE;
}
}
//--------------------------End--------------------------//
[q] What does this do?
[a] When you inject to warc0ck, this makes sure all you have put in the HackThread will be activated to warc0ck so it actually works. Alot of people forget to include Hackthread and say: "My hack doesn't work!".
IN THE END IT SHOULD LOOK LIKE THIS:
Code: Select Content
#include <windows.h>
#include <stdio.h>
//--------------------------Define Hacks--------------------------//
#define ADR_PlayerPointer 0x00
#define ADR_ServerPointer 0x00
#define OFS_NFD 0x00
#define OFS_PREMIUM1 0x00
#define OFS_PREMIUM2 0x00
//--------------------------End Define Addies--------------------------//
//--------------------------Define HackThread--------------------------//
DWORD *ingame= (DWORD*)Playerpointer;
DWORD *outgame= (DWORD*)Serverpointer;
//--------------------------End Define HackThread--------------------------//
//--------------------------Start Hacks--------------------------//
void PlayerHacks() // Start PlayerHacks
{
DWORD dwPlayerPtr = *(DWORD*)Playerpointer;
if(dwPlayerPtr != 0){
//Superjump
{
if(GetAsyncKeyState(VK_CONTROL) &1)
{
DWORD dwPlayerPtr = *(DWORD*)ADR_PlayerPointer;
*(float*)(dwPlayerPtr+OFS_Z) = 1500; //Height of SuperJumping
}
}
//No Fall Damage
{
DWORD dwPlayerPtr = *(DWORD*)ADR_PlayerPointer;
if(dwPlayerPtr != 0)
{
*(float*)(dwPlayerPtr+OFS_NFD) = -10000;
}
}
}} //End PlayerHacks
void ServerHacks() // Start ServerHacks
{
DWORD dwSrvrPtr=*(DWORD*)Serverpointer;
if(dwSrvrPtr!=0){
//Visual Premium
{
DWORD dwPlayerPtr = *(DWORD*)ADR_ServerPointer;
if(dwPlayerPtr != 0)
{
*(long*)(dwPlayerPtr+ADR_OFS_PREMIUM1) = 3, 10;
*(float*)(dwPlayerPtr+ADR_OFS_PREMIUM2) = 7; //Days of Visual Premium
}
}
}} //End ServerHacks
//--------------------------End Hacks--------------------------//
//-------------------------HackThread--------------------------//
void HackThread()
{
for(;; )
{
if(*ingame)
{
PlayerHacks();
}
if(*outgame)
{
ServerHacks();
}
}
Sleep(200); //prevent for overloading the cpu
}
//--------------------------End HackThread--------------------------//
//--------------------------BOOL WINAPI--------------------------//
BOOL WINAPI DllMain(HINSTANCE hModule, DWORD dwReason, LPVOID lpvReserved)
{
if(dwReason == DLL_PROCESS_ATTACH)
{
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)HackThread, 0, 0, 0);
MessageBoxA(NULL,"Made by: littlethug34","Warning!",MB_OK);
}
return TRUE;
}
}
//--------------------------END BOOL WINAPI--------------------------//
Now, change the Debug to Release.
Debug -> Release | Win32
Uploaded with
ImageShack.us
Now, press F7 to build the hack.
[q]Where i can see the my hack?
[a]My Documents -> Visual Studio 2008 -> Project -> (NameOfYourHack) -> Release -> (NameOfYourHack).dll
I HOPE THAT THIS WILL MAKE YOU CONTENTED!!!!!!!!!!
---------- Post added at 12:31 AM ---------- Previous post was at 12:30 AM ----------
DON'T FORGET TO PRESS THANKS!!