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

Posts 1–15 of 24 · Page 1 of 2
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 :

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 adding hacks #

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(;;) {
	__asm pushad;
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

Just add this below your includes and stuffs .
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;
			add esp, 4;
		}
	}
}
Just change the offset of the LTClient

Now you're ready to go ^^
If you want to know more about Pointers,Addys,Offsets,Weaponlog , etc.
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>
bool LogIn = false;



#define WeaponMgr	 0xADD0A8
#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)
{
	if(GetModuleHandleA("CShell.dll") && GetModuleHandleA("ClientFx.fxd") && !LogIn)
	{
		LogIn = true;
		CreateThread(0,0,(LPTHREAD_START_ROUTINE)Call,0,0,0);
		DisableThreadLibraryCalls(hDll);
	}
	return 1;
}
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
Quote Originally Posted by Ryuzaki2 View Post
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
Bool is an Auto Features O.o So that makes you easier to put auto on features
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
Quote Originally Posted by lilemcy View Post
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
woah.... any video??
[/QUOTE]

Quote Originally Posted by zhanre View Post
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

Quote Originally Posted by lilemcy View Post
woah.... any video??
di po makakatulong ang video sa pag cocode lalo na pag dating sa mga error pag nag compile ka.
if (GetAsyncKeyState(VK_NUMPAD4))
{
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);
}
}
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 ----------

Oh .. @jhadd4 did you read my thread ? go back and read it .

@Hero can you stuck this ?
Quote Originally Posted by Sprite View Post
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 ----------

Oh .. @jhadd4 did you read my thread ? go back and read it .

@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 ----------

Quote Originally Posted by zhanre View Post
@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;
add esp, 4;
}
}
}
@jhadd4 you need to define it "bool model = false;" @Sprite Sorry bout that XD
Fuuck! @jhadd4 I said read right ? baka binasa mo lang ung codes ?
Posts 1–15 of 24 · Page 1 of 2

Post a Reply

Similar Threads

Tags

None

Talk with us