Giriş yap
En iyi yollayıcılar
Hello EMO | ||||
EMO | ||||
eMoStyLe | ||||
BesimBICER | ||||
GameKinG | ||||
Crysis | ||||
~>!.DεvιLρяιεsт.!<~ | ||||
MeTaL | ||||
TrueCrime | ||||
djhayal3t |
Istatistikler
Toplam 203 kayıtlı kullanıcımız varSon kaydolan kullanıcımız: crayzboy76
Kullanıcılarımız toplam 1186 mesaj attılar bunda 862 konu
Arama
Sosyal yer imi
Sosyal bookmarking sitesinde Emo, Emo nedir, Emo resimleri, Emo Kıyafetleri, Emo Sözleri, Emo Oyunları, EmoTurkey, Emo Nickler, Emo Avatarları, Punk, Punk Resimleri, Punk Avatarları, Rock, Rock Resimleri, Rock Avatarları, Msn Nickleri, Msn Avatarları, Müzik adresi saklayın ve paylaşın
Sosyal bookmarking sitesinde EMO Style ForumPro - Hos Geldiniz adresi saklayın ve paylaşın
Kimler hatta?
Toplam 2 kullanıcı online :: 0 Kayıtlı, 0 Gizli ve 2 Misafir Yok
Sitede bugüne kadar en çok 217 kişi C.tesi Tem. 29, 2017 1:46 am tarihinde online oldu.
En son konular
Reklam
How to make a Dll
1 sayfadaki 1 sayfası
How to make a Dll
[quote name='attilathedud' timestamp='1158871021' post='1055']
Although Dll's are probably overkill for a basic money hack, if you can't do them, you will never be able to be a very effective coder. So let's start shall we?
In this example I'm going to show you how to make a dll hack that gives you 50000 minerals whenever you press 'm' in Starcraft 1.13f(was to lazy to ever download the patch).
Before we go rushing into this let's think a little first. Dll stands for Dynamic Link Library, and in most basic terms, allows you to,when injected into the target, have complete and utter control.:lol:
Now, before I rush into anything, I always think over what the code will do in my head. When I did this, it looked something like this:
That doesn't look to confusing, now does it?
Okay, now open up whatever compiler your using(I use MCVS 6.0) and select the win32 Dynamic Link Library, or something of that nature, then make a simple project.
Hopefully by now, your code will look something like this:
Now unfortutantly, we can't copy that code, but it's not to hard to translate to C.
For 'function minerals' it's going to look a little something like this:
For the actual code inside, it's very similar to the psuedo:
If you haven't learned about pointers yet, you're probably confused by the *. According to the ever right wikipedia a pointer is Basically that line in English would be
Now comes to the while(true) loop. All this in itself does is to keep on executing the code over and over again.
Next comes the actual keypress. Now this make look a little odd, so let's examine it.
Now for the code inside:
Now to the last part of the code(on the last strech, hooray)!
We need to call the minerals function now, which is actually quite easy:
And wallah, that's it. Hopefully by now you have something like this:
Finally comes injected it. As it is a Dll, you will need a Dll injector to make it work. There are many easily found both online and on bwhacks.com for Starcraft.
Hopefully you learned something from this, and didn't just copy the code from the bottom. Hope you had fun!
ShoutOuts:
Pandas
[/quote]
Although Dll's are probably overkill for a basic money hack, if you can't do them, you will never be able to be a very effective coder. So let's start shall we?
In this example I'm going to show you how to make a dll hack that gives you 50000 minerals whenever you press 'm' in Starcraft 1.13f(was to lazy to ever download the patch).
Before we go rushing into this let's think a little first. Dll stands for Dynamic Link Library, and in most basic terms, allows you to,when injected into the target, have complete and utter control.:lol:
Now, before I rush into anything, I always think over what the code will do in my head. When I did this, it looked something like this:
- Kod:
function minerals
{
int offset = (adress)
while 'm' down == true
{
offset = 50000
}
}
function main
{
call minerals
}
That doesn't look to confusing, now does it?
Okay, now open up whatever compiler your using(I use MCVS 6.0) and select the win32 Dynamic Link Library, or something of that nature, then make a simple project.
Hopefully by now, your code will look something like this:
- Kod:
#include "stdafx.h"
BOOL APIENTRY DllMain( HANDLE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved
)
{
return TRUE;
}
- Kod:
function minerals
{
int offset = (adress)
while 'm' down == true
{
offset = 50000
}
}
Now unfortutantly, we can't copy that code, but it's not to hard to translate to C.
For 'function minerals' it's going to look a little something like this:
- Kod:
DWORD WINAPI minerals( LPVOID lpParam ); DWORD WINAPI minerals( LPVOID lpParam){
For the actual code inside, it's very similar to the psuedo:
- Kod:
DWORD OldProt;
int *offset = (int*)0x515240;
while(true)
{
while(!(GetAsyncKeyState(0x4D))) Sleep(100);
VirtualProtect(offset, 4, PAGE_EXECUTE_READWRITE, &OldProt);
*offset = 50000;
VirtualProtect(offset, 4, OldProt, &OldProt);
}
return 0;
}
If you haven't learned about pointers yet, you're probably confused by the *. According to the ever right wikipedia a pointer is Basically that line in English would be
- Kod:
integer offset point to adress value 515240(Starcraft's mineral value)
Now comes to the while(true) loop. All this in itself does is to keep on executing the code over and over again.
Next comes the actual keypress. Now this make look a little odd, so let's examine it.
- Kod:
while(!(GetAsyncKeyState(0x4D)))
Now for the code inside:
- Kod:
Sleep(100);
VirtualProtect(offset, 4, PAGE_EXECUTE_READWRITE, &OldProt);
*offset = 50000;
VirtualProtect(offset, 4, OldProt, &OldProt);
Now to the last part of the code(on the last strech, hooray)!
- Kod:
function main
{
call minerals
}
- Kod:
BOOL APIENTRY DllMain( HANDLE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved
)
{
return TRUE;
}
We need to call the minerals function now, which is actually quite easy:
- Kod:
if (ul_reason_for_call == DLL_PROCESS_ATTACH) {
CreateThread(
NULL,
NULL,
(LPTHREAD_START_ROUTINE)minerals,
NULL,
NULL,
NULL
);
}
else{
return TRUE;
};
And wallah, that's it. Hopefully by now you have something like this:
- Kod:
#include <stdafx.h>
DWORD WINAPI minerals( LPVOID lpParam ); DWORD WINAPI minerals( LPVOID lpParam){DWORD OldProt;
int *offset = (int*)0x515240;
while(true)
{
while(!(GetAsyncKeyState(0x4D))) Sleep(100);
VirtualProtect(offset, 4, PAGE_EXECUTE_READWRITE, &OldProt);
*offset = 50000;
VirtualProtect(offset, 4, OldProt, &OldProt);
}
return 0;
}
BOOL APIENTRY DllMain( HANDLE hModule, DWORD ul_reason_for_call, LPVOID lpReserved )
{
if (ul_reason_for_call == DLL_PROCESS_ATTACH) {
CreateThread(
NULL,
NULL,
(LPTHREAD_START_ROUTINE)minerals,
NULL,
NULL,
NULL
);
}
else{
return TRUE;
};
return TRUE;
}
Finally comes injected it. As it is a Dll, you will need a Dll injector to make it work. There are many easily found both online and on bwhacks.com for Starcraft.
Hopefully you learned something from this, and didn't just copy the code from the bottom. Hope you had fun!
ShoutOuts:
Pandas
[/quote]
Similar topics
» Make Your Own UCE
» [1.298, 1.310/1.351/2.0] Make use of the 'K' symbol.
» How To Make Dll With Source [EASY]
» How to make the standard D3D wallhack
» [Tut]Make your frist D3D hack
» [1.298, 1.310/1.351/2.0] Make use of the 'K' symbol.
» How To Make Dll With Source [EASY]
» How to make the standard D3D wallhack
» [Tut]Make your frist D3D hack
1 sayfadaki 1 sayfası
Bu forumun müsaadesi var:
Bu forumdaki mesajlara cevap veremezsiniz
Cuma Ağus. 29, 2014 8:33 am tarafından Hello EMO
» goldenchase.net maden yaparak para kazanma
Cuma Ağus. 29, 2014 8:18 am tarafından Hello EMO
» etichal hacker görsel egitim seti
Çarş. Ağus. 06, 2014 4:57 am tarafından Hello EMO
» KO TBL Source C#
Ptsi Ara. 09, 2013 6:36 am tarafından Hello EMO
» x86 Registers
C.tesi Ağus. 24, 2013 5:02 am tarafından Hello EMO
» [Tutorial] Pegando Address, Pointers de WYD
Çarş. Tem. 10, 2013 7:25 am tarafından Hello EMO
» [Tutorial] Pegando Address, Pointers de CS Metodo²
Çarş. Tem. 10, 2013 7:23 am tarafından Hello EMO
» [Tutorial] Aprendendo basico deASM OLLYDBG
Çarş. Tem. 10, 2013 7:22 am tarafından Hello EMO
» Basic C# DLL injector
Ptsi Tem. 08, 2013 7:48 am tarafından Hello EMO