[Co-Admin] Aivee
Posts : 60 Join date : 2011-04-29 Age : 29 Location : casili,consolacion cebu city
| Subject: how to make your own hack DLL. Fri Dec 14, 2012 10:11 am | |
| I'm going to show you all how to make a NoMenu hack using Visual C++ 2008 Express Edition with Sp1. Download and Install Open C++, then make a new project File -> New -> Project Project types: Win32 Templates: Win32 Project Then type the name of your hack then click ok Application Type: DLL Additional Options: Empty Project Then click Finish 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 Now in the menu that shows up Click on "C++ File (.ccp)" Visual C++ -> C++ File (.cpp) Name it "Main" 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 #include 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 #include //--------------------------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
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!! | |
|
remrish2 Private
Posts : 2 Join date : 2013-04-12
| Subject: Re: how to make your own hack DLL. Thu Jul 18, 2013 5:27 am | |
| | |
|