# Thread: Tutorial How To Make A Hack[Not Very Much Detailed]

1. ## Tutorial How To Make A Hack[Not Very Much Detailed]

Have you ever wondered how do we make hacks ?
Yea ..
So...
Lets start.!
Also you need to know about addys , offsets , string names , pointers , etc.
Ok guys ..
First of all if you really want to make a hack go to this link :

After you've done reading that ..
Go here :
Here !

Now all you have to do now is to make a base

For how to make a base go here :
How to make a base
Brimir has a complete tutorial on how to make a base on that link .

Now in your base you have this line :
(Detected .)
Code:
```while(1)
{
DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
DWORD pWeaponMgr = *(DWORD*)(CShell + WeaponMgr);
PDWORD Weapon = (PDWORD)(CShell + 0xADD0A8 );
DWORD Playerbasic = *(PDWORD)(CShell + 0xA75FA0);

}```
Right ? You have that right ?
Now below that you can put your hacks there .

Whether it's a PTC Function or a Memhack Function ..
PTC Function is Whitewalls , Whiteplayers , No World , etc.
Memhack Function is No Recoil , NO Reload , No Weapon Weight , Fast Knife , etc .

Now you need to know what structure you're going to use .

Here's for No Recoil ( Not mine )
Code:
```if(Weapon)
{
for(int i=0; i<598; i++)
{
DWORD wep = *(DWORD*)(Weapon+(4*i));
if(wep)
{
for(int y=0; y<10; y++)
{
*(float*)(wep + 0x0684+y*4) = 0;
*(float*)(wep + 0x051C+y*4) = 0;
*(float*)(wep + 0x1938+y*4) = 0;
*(float*)(wep + 0x1B14+y*4) = 0;
*(float*)(wep + 0x1FA0+y*4) = 0;
*(float*)(wep + 0x2108+y*4) = 0;
*(float*)(wep + 0x2270+y*4) = 0;
}
}
}
}```
Just change it

Now you need to bool your hacks before you insert the hack codes.

If you want your hack to be working go here :
How to make hacks work

Where do you bool hacks ?

So you have this line right ?
Code:
```void yourhackthreadname()
{

for(;;) {
or which ever line it is that has a void something
it's on the first part . of your base after your includes and stuffs .

Below that bool your hack ^^

like this :
Code:
`bool norecoil = true;`
Now be sure on your hack code the define is norecoil too .

Code:
```if (norecoil)
if ( WeaponMgr )
etc.etc.```
Now on your base be sure that the DLLMain you're using is not detected or the hack won't work .
Do not ask anymore on how to make a DLLMain you already studied C++

Now how do you add PTC ?

Just like memhack functions

Code:
```void __cdecl PushToConsole (char* command)
{
DWORD dwCShell = (DWORD)GetModuleHandleA("CShell.dll");
if(dwCShell != NULL)
{
DWORD *LTClient = (DWORD*) ((dwCShell + 0x3A5E9C));
void* CONoff = (void*)*(DWORD*)(*LTClient + 0x1FC);
_asm
{
push command;
call CONoff;
}
}
}```
Just change the offset of the LTClient

Now you're ready to go ^^
Go here :
Go here
Also the hack code of wallhack is
Code:
```if (GetAsyncKeyState(VK_NUMPAD4))
{
if (model == false) {
model = true;
PushToConsole("LightModels 1");
memcpy((VOID*)0x6D0644, "\x00\x00\x00\x00\x00\x00", 6);
}

else {
model = false;
PushToConsole("LightModels 0");
memcpy((VOID*)0x6D0644, "\x01\x01\x01\x01\x01\x01", 6);
}
}```
You can make that a memhack function if you want
That's a PTC

Good Luck guys !

Credits to all who made the said links COLOR] @Hero ? request sticky eih?
@zhanre for reminding me on something

Ok here's a full but detected base

Code:
```#include<windows.h>

#define NoChange   0x2654
#define NoRecoil1	 0x18DC
#define NoRecoil2	 0x18E0
#define NoRecoil3	 0x18E4
#define NoRecoil4	 0x2658
#define NoRecoil5	 0x1F48
#define NoRecoil6	 0x20B0
#define NoRecoil7        0x20B4
#define NoRecoil8        0x221C

void Hacks()
{

bool noRecoil = true;
bool change = true;

while(1)
{
DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
PDWORD Weapon = (PDWORD)(CShell + 0xA9BAE0 );
DWORD pWeaponMgr = *(DWORD*)(CShell + WeaponMgr);
//DWORD dwPlayerPointer = *(DWORD*)( CShell + PlayerPointer);

if (noRecoil)
if (pWeaponMgr){
for(int i=0; i<577; i++){
if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i)) ) != NULL){
DWORD pNoRecoil = *(DWORD*)(pWeaponMgr + (4*i));
for(int y=0; y<9; y++){
if(pNoRecoil){
*(float*)(pNoRecoil + (NoRecoil1 + (4*y))) = 0.0f;
*(float*)(pNoRecoil + (NoRecoil2 + (4*y))) = 0.0f;
*(float*)(pNoRecoil + (NoRecoil3 + (4*y))) = 0.0f;
*(float*)(pNoRecoil + (NoRecoil4 + (4*y))) = 0.0f;
*(float*)(pNoRecoil + (NoRecoil5 + (4*y))) = 0.0f;
*(float*)(pNoRecoil + (NoRecoil6 + (4*y))) = 0.0f;
*(float*)(pNoRecoil + (NoRecoil7 + (4*y))) = 0.0f;
}
}
}
}
}

f(change)
{
if (pWeaponMgr)
{
for(int i=0; i<560; i++)
{
if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i)) ) != NULL)
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + NoChange) = 100.0f;
}
}
}

if(fastknife)
{
if (pWeaponMgr)

for(int i=0 ; i<630 ; i++)

{
DWORD Wep = *(DWORD*)(*Weapon + 4*i);

if(Wep)
{
for(int y = 0; y<9; y++)
{
*(float*)( Wep + (0xA10 + (4*y))) = (float)2.0f;
*(float*)( Wep + (0XA58 + (4*y))) = (float)2.0f;
}
}
}
}

if(knifeOHK)
{
if (pWeaponMgr)

for(int i=0 ; i<601 ; i++)

{
DWORD Wep = *(DWORD*)(*Weapon + 4*i);

if(Wep)
{
for(int y = 0; y<9; y++)
{
*(float*)( Wep + (0xBBC + (4*y))) = (float)999;
*(float*)( Wep + (0xBA4 + (4*y))) = (float)999;

}
}

}
}

Sleep(100);
}
}

DWORD WINAPI Call(LPVOID)
{
Hacks();
return 1;
}
BOOL WINAPI DllMain(HMODULE hDll, DWORD dwReason, LPVOID lpReserved)
{
{
}
return 1;
}```

2. ## The Following User Says Thank You to Sprite For This Useful Post:

3. o________O

4. This line is not necessary in a wallhack function
Code:
`PushToConsole("LightModels 1");`
And like I said to you bools is not important if you will make it true XD bools are just for hotkeys for me haha

Anyway, good job

5. Originally Posted by Ryuzaki™
This line is not necessary in a wallhack function
Code:
`PushToConsole("LightModels 1");`
And like I said to you bools is not important if you will make it true XD bools are just for hotkeys for me haha

Anyway, good job
WTF????? I'm using that Line until now, i didn't know that, bool is a trash for Auto on features

6. Bool is an Auto Features O.o So that makes you easier to put auto on features

7. sir konting tulong d ko maintindihan kung panu gawin to http://www.mpgh.net/forum/242-crossf...make-base.html

8. guys can you give me only no recoil codes for cf ph.. complete code.. i like make a hack only no recoil and iwant to paste to c++ i mean copy paste

9. Originally Posted by lilemcy
guys can you give me only no recoil codes for cf ph.. complete code.. i like make a hack only no recoil and iwant to paste to c++ i mean copy paste
Don't just C+P, Learn how to do it.... I suggest to get some detected base and learn how it works! Just like @hanoke , Now he can code his own hack

10. ## The Following User Says Thank You to zhanre For This Useful Post:

hanoke (05-31-2012)

11. woah.... any video??

{
if (model == false) // i got error here . IntelliSense: identifier "model" is undefined any one help me ?

{
model = true;
PushToConsole("LightModels 1");
memcpy((VOID*)0x6D0644, "\x00\x00\x00\x00\x00\x00", 6);
}

else {
model = false;
PushToConsole("LightModels 0");
memcpy((VOID*)0x6D0644, "\x01\x01\x01\x01\x01\x01", 6);
}
}

13. Hey @zhanre I learned from a base too you gave me .. Why U No Mention me x)

---------- Post added at 09:06 PM ---------- Previous post was at 09:00 PM ----------

@Hero can you stuck this ?

14. @jhadd4 you need to define it "bool model = false;" @Sprite Sorry bout that XD

15. Originally Posted by Sprite
Hey @zhanre I learned from a base too you gave me .. Why U No Mention me x)

---------- Post added at 09:06 PM ---------- Previous post was at 09:00 PM ----------

@Hero can you stuck this ?
binasa ko na eh ano ung problem ?

---------- Post added at 09:47 PM ---------- Previous post was at 09:43 PM ----------

Originally Posted by zhanre
@jhadd4 you need to define it "bool model = false;" @Sprite Sorry bout that XD
ah thanks po .

saan ko naman po to ilalagay ?

void __cdecl PushToConsole (char* command)
{
DWORD dwCShell = (DWORD)GetModuleHandleA("CShell.dll");
if(dwCShell != NULL)
{
DWORD *LTClient = (DWORD*) ((dwCShell + 0x3A5E9C));
void* CONoff = (void*)*(DWORD*)(*LTClient + 0x1FC);
_asm
{
push command;
call CONoff;
}
}
}

16. [/QUOTE]

Originally Posted by zhanre
Don't just C+P, Learn how to do it.... I suggest to get some detected base and learn how it works! Just like @hanoke , Now he can code his own hack
hindi naman ako matuto kung d niyo ko tinulungan sa source code kaya malaki parn pasamalat ko sa inyo ni sir xmen and sa mga coders ng ph at saka nakakahiya tlga kung d ako makakagawa hehehe linya pa naman ng course ko ang programming xD

Originally Posted by lilemcy
woah.... any video??
di po makakatulong ang video sa pag cocode lalo na pag dating sa mga error pag nag compile ka.

17. Fuuck! @jhadd4 I said read right ? baka binasa mo lang ung codes ?

Page 1 of 2 1 2 Last