 |
[TUT][ How to create game DLL's ]
| C / C++ Discuss, [TUT][ How to create game DLL's ] at Programmers Lounge forum; Build A Hack In C++ 6
Which call a DLL
Originally Posted by Dittiox
Comment:
As example is here used ... |
| Notices | Welcome to the Gamerz Needs forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |  | | 
07-04-2008, 03:32 AM
|  | Double Silver Axe | | | Last Online: 11-29-2008 10:26 AM Join Date: May 2008 Location: Netherlands Age: 14
Posts: 115
Thanks: 8
Thanked 83 Times in 19 Posts
Nominated 0 Times in 0 Posts TOTW/F/M Award(s): 0
Latest Blog:
Rep Power: 2 Points: 40,182.58 Bank: 0.00 Total Points: 40,182.58 | | | [TUT][ How to create game DLL's ] Build A Hack In C++ 6 Which call a DLL Quote: |
Originally Posted by Dittiox Comment:
As example is here used the game "WarRock" | Need:
* Brain (Not a dumb one !)
* Basic Knowledge Of C++
* Visual C++ 6 Stage:
* Code a Dll with our hack functions included:
* 1. Stamina();
* 2. Teleport(x, y, z);
* Create a new MFC project with features:
* 1. Load our Dll
* 2. Define & Export functions from the Dll
* 3. Stamina Timer
* 4. Teleport choosen location Get To Work(Dll) !
* Create a new Win32 Dynamic-Link Library Project, Call it ("LH1337DLL")
* Choose A simple DLL project
* Add 3 new file to the project: {Text File, "LH1337DLL.def"} {Source, "functions"} {Header, "functions"}
* Add this code into functions.cpp: Code: #include "stdafx.h"
#include "functions.h"
DWORD dfgiddfg;
HANDLE dfgdsgdsg;
void OpenMemory()
{
HWND frgss = FindWindow(0, "WarRock");
GetWindowThreadProcessId(frgss, &dfgiddfg);
dfgdsgdsg = OpenProcess(PROCESS_ALL_ACCESS|PROCESS_VM_OPERATION|PROCESS_VM_READ|PROCESS_VM_WRITE|PROCESS_QUERY_INFORMATION, FALSE, dfgiddfg);
}
void Stamina()
{
int t=1120403456;
OpenMemory();
WriteProcessMemory(dfgdsgdsg,(LPVOID*)(DWORD)0x8B9B04, &t , 4,NULL);
}
void Teleport(float x, float y, float z)
{
long raddyx, raddyy, raddyz; // Real address of coordinates
long readxyz; // Read base address
ReadProcessMemory(dfgdsgdsg,(LPVOID*)(DWORD)0x1279280, &readxyz, 4,NULL);
raddyx = readxyz + 0x174;
raddyy = readxyz + 0x17C;
raddyz = readxyz + 0x178;
WriteProcessMemory(dfgdsgdsg,(LPVOID*)(DWORD)raddyx, &x , 4,NULL);
WriteProcessMemory(dfgdsgdsg,(LPVOID*)(DWORD)raddyy, &y , 4,NULL);
WriteProcessMemory(dfgdsgdsg,(LPVOID*)(DWORD)raddyz, &z , 4,NULL);
}
* Add this code into functions.h: Code:
#pragma once
void Stamina();
void Teleport(float x, float y, float z);
* Add this code into LH1337DLL.def: Code: LIBRARY LH1337DLL
EXPORTS
Stamina
Teleport
DLL Finished !!! Get To Work(Exe) !
* Create a MFC Project, call it ("LH1337EXE")
* Choose, Dialog based.
* Add 2 button {Refill Stamina, Teleport}
* Add 3 Edit Box. (X, Y, Z)
* Make 3 new member variable. {X->m_cox} {Y->m_coy} {Z->m_coz}
* Add this code in LH1337EXEDlg.cpp at top after all '#include': Code:
HINSTANCE hDLL = NULL;
// 1) Teleport
typedef void (*STAMINA)();
STAMINA Stamina;
// 2) Teleport
typedef void (*TELEPORT)(float x, float y, float z);
TELEPORT Teleport;
* Go to the OnInitDialog() function and add this code: Code: hDLL = AfxLoadLibrary("LH1337DLL");
if( hDLL == NULL )
{
MessageBox("Could not load LH1337DLL.dll");
}
else
{
Stamina = (STAMINA)GetProcAddress(hDLL, "Stamina");
Teleport = (TELEPORT)GetProcAddress(hDLL, "Teleport");
}
* Now, add a BN_CLICKED event the Refill Stamina button and add this code: * Now, add a BN_CLICKED event the Teleport button and add this code: Code:
UpdateData(1);
Teleport(m_cox, m_coy, m_coz);
Hack is finished !
Source Code: Download
Binary: Download Credits: [D X T]LegendaryHacker1337[D X T]
Copyright ® D X T Team - MPGH Forums | | The Following 5 Users Say Thank You to Dittiox For This Useful Post: | | 
07-04-2008, 07:03 AM
|  | Registered Users + | | | Last Online: Today 12:03 PM Join Date: Nov 2006 Location: Location:
Posts: 2,064
Thanks: 230
Thanked 221 Times in 145 Posts
Nominated 0 Times in 0 Posts TOTW/F/M Award(s): 0
Latest Blog:
Rep Power: 11 Points: 1,091.40 Bank: 110,398.61 Total Points: 111,490.01 | |
That....was.....AWESOME!
It works perfectly And I read through All the Code.
But Good look Bypassing WriteProcessMemory In Kernel and Usermode
too bad this tutorial isn't in Delphi
ohh well I know how to do this anyway
__________________ Ha I'm back whatever | 
07-06-2008, 11:42 AM
|  | Diamond Hole | | | Last Online: Today 05:09 PM Join Date: Jan 2007 Location: California
Posts: 756
Thanks: 144
Thanked 100 Times in 51 Posts
Nominated 6 Times in 3 Posts TOTW/F/M Award(s): 0
Latest Blog: blahh!!!
Rep Power: 6 Points: 1,606.00 Bank: 95,830.04 Total Points: 97,436.04 | | |
whats the point of creating dll's that you call functions out of, when you could just hardcode it into the exe in the first place? and why not just create a dll that directly writes to memory?
| 
07-07-2008, 05:33 AM
|  | Silver Dragon | | | Last Online: 11-06-2008 09:08 AM Join Date: Feb 2006 Location: The Netherlands
Posts: 1,141
Thanks: 154
Thanked 541 Times in 126 Posts
Nominated 1 Time in 1 Post TOTW/F/M Award(s): 0
Latest Blog:
Rep Power: 9 Points: 2,057.86 Bank: 380.82 Total Points: 2,438.68 | | |
You might want to explain your code, or at least comment it.
__________________ If I did help you, please don't press the rep/thanks button. I did it because I did want to help you, not to gain rep/thanks! | 
07-07-2008, 08:02 AM
|  | Registered Users + | | | Last Online: Today 12:03 PM Join Date: Nov 2006 Location: Location:
Posts: 2,064
Thanks: 230
Thanked 221 Times in 145 Posts
Nominated 0 Times in 0 Posts TOTW/F/M Award(s): 0
Latest Blog:
Rep Power: 11 Points: 1,091.40 Bank: 110,398.61 Total Points: 111,490.01 | | |
He doesn't know programming all hi did was release the tutorial made from Team D X T
__________________ Ha I'm back whatever | 
07-09-2008, 08:01 AM
| | 1k Points Wasted | | | Last Online: Yesterday 02:08 PM Join Date: Aug 2006 Location: over there
Posts: 2,219
Thanks: 48
Thanked 172 Times in 134 Posts
Nominated 0 Times in 0 Posts TOTW/F/M Award(s): 0
Latest Blog: Very random blog entries (based on time)
Rep Power: 13 Points: 6,003.76 Bank: 89,660.72 Total Points: 95,664.48 | | |
I decided I wanted to learn this but I found out it was MFC so too bad (Just going to learn WinAPI for now, it's so hard to remember xD)
__________________
Dam my other one won't animate for some reason o_O | 
07-09-2008, 12:05 PM
| | Chick | | | Last Online: 07-11-2008 02:51 AM Join Date: Jul 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Nominated 0 Times in 0 Posts TOTW/F/M Award(s): 0
Latest Blog:
Rep Power: 0 Points: 38.00 Bank: 0.00 Total Points: 38.00 | |
Hmm i really like it !.! -----------------This post was merged together. In future use the edit button.-----------------
But I programing Wery much Its Easy
I maked a game Self It was online And Beta!I think i gonna add it Later
Last edited by togamezone; 07-09-2008 at 12:06 PM..
Reason: Automerged Doublepost
| 
07-09-2008, 02:19 PM
| | 1k Points Wasted | | | Last Online: Yesterday 02:08 PM Join Date: Aug 2006 Location: over there
Posts: 2,219
Thanks: 48
Thanked 172 Times in 134 Posts
Nominated 0 Times in 0 Posts TOTW/F/M Award(s): 0
Latest Blog: Very random blog entries (based on time)
Rep Power: 13 Points: 6,003.76 Bank: 89,660.72 Total Points: 95,664.48 | | Quote:
Originally Posted by togamezone Hmm i really like it !.! -----------------This post was merged together. In future use the edit button.-----------------
But I programing Wery much Its Easy
I maked a game Self It was online And Beta!I think i gonna add it Later | Games with C++? Because that's hard, you will need to learn DirectX as well as a lot of C++, but with RPG maker or Game Maker... then that's just easy xD
__________________
Dam my other one won't animate for some reason o_O | 
07-10-2008, 01:58 AM
| | Chick | | | Last Online: 07-11-2008 02:51 AM Join Date: Jul 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Nominated 0 Times in 0 Posts TOTW/F/M Award(s): 0
Latest Blog:
Rep Power: 0 Points: 38.00 Bank: 0.00 Total Points: 38.00 | | |
Yay I use c++ Its very hard!
If someone Have A pROGRAMER oR GAME MAKER jobb for me free I take it
| 
07-25-2008, 01:32 PM
| | The Legend | | | Last Online: 08-12-2008 04:52 PM Join Date: Jul 2008 Location: Stalkers...
Posts: 94
Thanks: 20
Thanked 61 Times in 19 Posts
Nominated 0 Times in 0 Posts TOTW/F/M Award(s): 0
Latest Blog:
Rep Power: 0 Points: 949.70 Bank: 0.00 Total Points: 949.70 | | |
@togamezone Learn some English and improve your grammer, 2nd people wont do free jobs, get it threw that mind of yours. Sorry for being harsh...
|  | | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Linear Mode |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | | |