GameCheetah

Go Back   GameCheetah > Coding > Programming > Programming Tutorials

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-31-2008, 03:43 PM
Banned With Sight
 
Join Date: Feb 2007
Location: 90% MODs @ GCF suk get free thanks by postin in general discussion or gunz
Posts: 1,128
Thanks: 185
Thanked 25 Times in 19 Posts
My Mood:
Rep Power: 0
Total Rep: 2
Send a message via MSN to AncienthackerV2
Default Making YOUR OWN! Dynamic Library Link (Dll) from C

Note: Mods, if you find an error in my quick tut, feel free to edit it idc.
Credit: i copied the codes from somewhere..... who know where...
Another note: this is how bud taught me, so heres how ill teach you.

Why did i make this? So leechers can start making their dlls instead of leeching its like a whole new world when you know how to make your own hacks like pos 2 pos sg spams ( u probaly never heard of it)
What you Might want to know..or need.

Basic undestanding of C
A compiler for compiling a dll
Windows Minesweeper v5.1
Cheat Engine v5.3+
Working Dll injector (hundreds out there, search on forum)
Link to files down there

1. First, go to your IDE and go to File>New>Project. Select the DLL icon and select C project. u will need to include C++ runtime library if your doing it in C++

2. Close the .h file not save it, u will see something like this
Code /* Replace "dll.h" with the name of your header */
#include "dll.h"
#include <windows.h>
#include <stdio.h>
#include <stdlib.h>

DLLIMPORT void HelloWorld ()
{
MessageBox (0, "Hello World from DLL!\n", "Hi", MB_ICONINFORMATION);
}


BOOL APIENTRY DllMain (HINSTANCE hInst /* Library instance handle. */ ,
DWORD reason /* Reason this function is being called. */ ,
LPVOID reserved /* Not used. */ )
{
switch (reason)
{
case DLL_PROCESS_ATTACH:
break;

case DLL_PROCESS_DETACH:
break;

case DLL_THREAD_ATTACH:
break;

case DLL_THREAD_DETACH:
break;
}

/* Returns TRUE on success, FALSE on failure */
return TRUE;
}


every program has it's entry point, 4 dlls is
code BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) {
return TRUE;
}

it has 3 perimiters
code HINSTANCE hInst: The current hinstance of the DLL.
DWORD reason: States the reason for the entry point to be called
LPVOID reserved: This paramter is reserved for later use / Windows Vista

Dword reason can have 4 values
condom DLL_PROCESS_ATTACH: The DLL injected/attached to the process
DLL_PROCESS_DETACH: Unloaded
DLL_THREAD_ATTACH: attached to a thread
DLL_THREAD_DETACH: detached from a thread


k, your almost done!
now, ill be doing DLL_PROCESS_ATTACH only.
Ill now make a DLL tat when injected will display a msg box.
code //DLL TEST
#include <windows.h>

BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) {
if(callReason == DLL_PROCESS_ATTACH)
MessageBox(0, "Dll Injection Successful! ", "Dll Injector", MB_ICONEXCLAMATION | MB_OK);
return TRUE;
}


tat does nothing directly to the process...sooo now we need to find sum game variables/offsets aka addresses of the variables.

windows minesweeper has a timer... use Cheat Engine to find the offset for the time.

1.open up minesweeper then open up CE n click on the top left icon and find the process of the game. So rite now, it wud b winmine.exe and press K.
2.below the '1st Scan' button, there is a edit 4 the value. Enter 0 (dis is the current time of Minesweeper) and press '1st Scan'. a list of addresses will appear on the left hand side. 1 of these is the address of our timer.
3.on Minesweeper, strt the game by clikin on 1 of the squares. The timer will strt.
4.Go bck 2 CE and below "value' should be 'Exact Value' change that 2 'Changed Value' and press 'Next Scan'.
5On the left, sum of the addresses will be constantly changing. Find the address tat has a value closest to the currrent time on Minesweeper.

Now we know our address/offset, we will need 2 make our DLL, so change it. first make a pointer to the address like dis
code int *time = (int*)0x0100579C; //Offset for time.

den somewhere in ur program, u will need 2 dereference your pointer.that offset was for v5.1 of Minesweeper, you may have a different offset for your version.

Your Minesweeper hack should end up somethin like dis.
code
//Preprocessor files
#include <windows.h>

//Define variables
DWORD ThreadID;
int *time = (int*)0x0100579C; //Offset for time.

DWORD WINAPI changeTime(LPVOID lParam) {
while(1)
*time = 0;

ExitThread(0);
}

//DllMain
BOOL APIENTRY DllMain(HINSTANCE hDll, DWORD callReason, LPVOID lpReserved) {
if(callReason == DLL_PROCESS_ATTACH) {
MessageBox(0, "Dll Injection Successful! ", "Dll Injector", MB_ICONEXCLAMATION | MB_OK);
CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)&changeTime, 0, 0, &ThreadID);
}

return 1;
}

from compiling this, you should obtain a dll.
u need 2 inject dis into Minesweeper using your DLL Injector. 4 dis example, I will use the classic injec-tor
Open up Injec-TOR and load the DLL.
Open up Windows Minesweeper.
Locate winmine in Injec-TOR.
Press the 'Inject' button.

AND YOUR DONE!
NOW APPLY WHAT YOUVE LEARNED HERE, and do it to gunz! and add a bypass and stuff

Download Link
I dunno if this still works, 2 lazy to test but (talkin bout link here) but this was the link givin to me by meh friend for the files like 4 months ago

I will see your dll soon right? pss you mite need a bypass >)

Press thnx if i helped!
__________________
[COLOR="White"][I]A man who dares to waste one hour of time has not discovered the value of life.[/I][/COLOR] [B]~[/B] [B][I]Charles Darwin[/I][/B]
HEY, IM GIVING FREE THANKS TO WHOEVER I DON't hate! (thats alot of people) so just post in the spam section and ill thank you no matter what it is :P

Last edited by AncienthackerV2; 12-31-2008 at 07:33 PM.
Reply With Quote
The Following User Says Thank You to AncienthackerV2 For This Useful Post:
  #2 (permalink)  
Old 01-01-2009, 07:00 AM
Member
 
Join Date: Mar 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Total Rep: 0
Default

*note to self* learn some coding languages.
Reply With Quote
  #3 (permalink)  
Old 01-01-2009, 01:29 PM
Banned With Sight
 
Join Date: Feb 2007
Location: 90% MODs @ GCF suk get free thanks by postin in general discussion or gunz
Posts: 1,128
Thanks: 185
Thanked 25 Times in 19 Posts
My Mood:
Rep Power: 0
Total Rep: 2
Send a message via MSN to AncienthackerV2
Default

Quote:
Originally Posted by haxor2256 View Post
*note to self* learn some coding languages.
uhm ok, u go do that
__________________
[COLOR="White"][I]A man who dares to waste one hour of time has not discovered the value of life.[/I][/COLOR] [B]~[/B] [B][I]Charles Darwin[/I][/B]
HEY, IM GIVING FREE THANKS TO WHOEVER I DON't hate! (thats alot of people) so just post in the spam section and ill thank you no matter what it is :P
Reply With Quote
  #4 (permalink)  
Old 01-07-2009, 07:54 PM
Member
 
Join Date: Jan 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Total Rep: 0
Default

i looked at it......and got....how can i put this........CONFUSED OUT OF MY FREAKING MIND!!!! XD!! SOMEONE HELP ME PLZ.. LOLim not that really good at understanding "hacking language" XD
Reply With Quote
  #5 (permalink)  
Old 01-09-2009, 10:17 PM
Banned With Sight
 
Join Date: Feb 2007
Location: 90% MODs @ GCF suk get free thanks by postin in general discussion or gunz
Posts: 1,128
Thanks: 185
Thanked 25 Times in 19 Posts
My Mood:
Rep Power: 0
Total Rep: 2
Send a message via MSN to AncienthackerV2
Default

Quote:
Originally Posted by purekill500 View Post
i looked at it......and got....how can i put this........CONFUSED OUT OF MY FREAKING MIND!!!! XD!! SOMEONE HELP ME PLZ.. LOLim not that really good at understanding "hacking language" XD
starting from where?
__________________
[COLOR="White"][I]A man who dares to waste one hour of time has not discovered the value of life.[/I][/COLOR] [B]~[/B] [B][I]Charles Darwin[/I][/B]
HEY, IM GIVING FREE THANKS TO WHOEVER I DON't hate! (thats alot of people) so just post in the spam section and ill thank you no matter what it is :P
Reply With Quote
  #6 (permalink)  
Old 01-10-2009, 07:10 PM
g'd-up's Avatar
Honorable Member
 
Join Date: Mar 2007
Posts: 417
Thanks: 9
Thanked 14 Times in 12 Posts
My Mood:
Rep Power: 4
Total Rep: 92
Default

is this for ijji? or international?
__________________
Posts
10 [$]
50 [$]
100[$]
150[$]
250[$]
300[$]
400[ ]
500[ ]


::: (\(\
*: (=' :') :*
•.. (,('')('')¤°
☆¸.•*¨*`•.☆G'd-Up☆¸.•*¨*`•.¸☆
☆cσρчяιgђτ ©2009 G'd-Up™☆
☆đση'т ¢σρу, вє σяιgιคℓ☆

------------------------------------------------------------

☆¸.•*¨*`•.☆YoUnG MoOoLa BaBy☆¸.•*¨*`•.¸☆
Reply With Quote
  #7 (permalink)  
Old 01-12-2009, 05:13 PM
Banned With Sight
 
Join Date: Feb 2007
Location: 90% MODs @ GCF suk get free thanks by postin in general discussion or gunz
Posts: 1,128
Thanks: 185
Thanked 25 Times in 19 Posts
My Mood:
Rep Power: 0
Total Rep: 2
Send a message via MSN to AncienthackerV2
Default

anywhere.... you just need a bypass. If your just learning... do this to a private server so no bypass in most cases, or international. International has a SUPER WEAK security system, like it doesnt exsist. Just make a fake replacement of xtrap. However, ijji's is another case...
__________________
[COLOR="White"][I]A man who dares to waste one hour of time has not discovered the value of life.[/I][/COLOR] [B]~[/B] [B][I]Charles Darwin[/I][/B]
HEY, IM GIVING FREE THANKS TO WHOEVER I DON't hate! (thats alot of people) so just post in the spam section and ill thank you no matter what it is :P
Reply With Quote
  #8 (permalink)  
Old 01-30-2009, 11:02 PM
Honorable Member
 
Join Date: Oct 2008
Posts: 494
Thanks: 6
Thanked 8 Times in 7 Posts
Rep Power: 3
Total Rep: 133
Default

Wrong Section I'm gonna move it and infract you sorry =/
__________________
Meh Wants Dev team
To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.
Reply With Quote
  #9 (permalink)  
Old 01-31-2009, 06:37 AM
Powerful Member
 
Join Date: Mar 2007
Posts: 943
Thanks: 24
Thanked 29 Times in 21 Posts
My Mood:
Rep Power: 6
Total Rep: 95
Default

And, why do you need a Bypass?
__________________
My awesome collection of Infractions!
To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.
Reason: Inappropriate Language 0 Points ~ By
To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.
Reason: Insultive/Abusive Behaviour (General) 3 Points ~ By
To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.
Reason: Wrong Section 0 Points ~ By
To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.
Reason: Pontless Spam/Post 0 Points ~ By
To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.
Reason: Gravedigging 0 Points ~ By
To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.

N/A Reason: Gravedigging 2 Points ~ By
To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.
Reason: Gravedigging 0 Points ~ By
To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.
Reason: Pointless Spam/Post 2 Points ~ By
To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.

N/A Reason: Pointless Spam/Post 2 Points ~ By
To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
GC Dynamic Signature Nicod3mus News 11 11-17-2008 11:24 AM
Dynamic Signatures not working? Loup Combat Arms 1 10-11-2008 12:44 AM
odin on a dynamic domain Alex Private Servers 0 06-16-2008 04:28 PM
{request}uptodate UCE making link graham MapleStory 2 02-16-2008 03:27 PM
Dynamic EMS V0.28 CEM-CEA-CT dynamic MapleStory 5 09-16-2007 06:18 AM


All times are GMT -5. The time now is 02:00 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
Copyright 2007 InfoMedia, Inc.
All rights reserved world wide.