[TUT]How to make memory hack

Posts 1–15 of 30 · Page 1 of 2
[TUT]How to make memory hack
Hello

Title says it all

Let's get started .

###

First open up Visual Studio 2010 / 2008 ( Any version you have there )
Then create a new project name it to any name u want . ( Should be Win32 Project )
Then a new window will come out
Click "Next" then pick DLL and click "Finish"

Now for the coding ..

###
( If you C+P this just give credits okay ? ^^ )
Just edit ..
This base has No Change and No Recoil just edit the addies

dllmain.cpp
Code:
#include<windows.h>
#include <iostream>




#define WeaponMgr	 0x??????

using namespace std;










void Hacks()
{

		for(;;) {
	__asm pushad;





//Memory
bool change = true;
bool norecoil = true;





while(true)
{
DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
DWORD pWeaponMgr = *(DWORD*)(CShell + WeaponMgr);
PDWORD Weapon = (PDWORD)(CShell + 0x?????? ); 




     




        


			}
        }


//Memory Functions
if (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))) + 0x0000) = 100.0f;
	   }
   }
}


if(norecoil)
				   {
					   if (pWeaponMgr) 

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

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

							   if(Wep)
							   {
								   for(int y = 0; y<9; y++)
								   {
									   
									   *(float*)( Wep + (0x0000 + (4*y))) = (float)0;
									   *(float*)( Wep + (0x0000 + (4*y))) = (float)0;
									   *(float*)( Wep + (0x0000 + (4*y))) = (float)0;
									   *(float*)( Wep + (0x2000 + (4*y))) = (float)0;
									   *(float*)( Wep + (0x0000 + (4*y))) = (float)0;
									   *(float*)( Wep + (0x2000 + (4*y))) = (float)0;
									   

								   }
							   } 

						   } 
}


 
 









			


Sleep(100);
}
__asm popad;
}

 }
 
//Put your DLLMain below
###

Now your done ^^
Just compile and see ..

I did not created this tut just for you to C+P it's for you to learn .

If you want some source codes .. just use @DaRk 's Stickied thread.

You can add more features like See Ghost

but first you need to go back to the bools part
you have this right ?

Code:
bool norecoil = true;
bool change = true;
Now below bool change add this :

Code:
bool SeeGhost = true;
Source Code of see ghost is :

Code:
if(Playerbasic) {
	*(float*)(Playerbasic + 0x??) = (float)1.0;
	*(float*)(Playerbasic + 0x??) = (float)1.0;
	*(float*)(Playerbasic + 0x??) = (float)1.0;
}
That's all for today //

Good Luck guys !
I think this lines are useless in this base:
Code:
#include <iostream>
using namespace std;
And check your loops, some readers might confuse upon reading.

Anyway, Good job (I thought you put my dll main I was so nervous)

Edit:
Haha I thought you put the whole code but I just checked it, it has errors leecher proof
@Ryuzaki2 ..

They're going to learn in that base I swear
Quote Originally Posted by Sprite View Post
Hello

Title says it all

Let's get started .

###

First open up Visual Studio 2010 / 2008 ( Any version you have there )
Then create a new project name it to any name u want .
Then a new window will come out
Click "Next" then pick DLL and click "Finish"

Now for the coding ..

###
( If you C+P this just give credits okay ? ^^ )
Just edit ..
This base has No Change and No Recoil just edit the addies

dllmain.cpp
Code:
#include<windows.h>
#include <iostream>




#define WeaponMgr	 0x??????

using namespace std;










void Hacks()
{

		for(;;) {
	__asm pushad;





//Memory
bool change = true;
bool norecoil = true;





while(true)
{
DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
DWORD pWeaponMgr = *(DWORD*)(CShell + WeaponMgr);
PDWORD Weapon = (PDWORD)(CShell + 0x?????? ); 




     




        


			}
        }


//Memory Functions
if (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))) + 0x0000) = 100.0f;
	   }
   }
}


if(norecoil)
				   {
					   if (pWeaponMgr) 

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

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

							   if(Wep)
							   {
								   for(int y = 0; y<9; y++)
								   {
									   
									   *(float*)( Wep + (0x0000 + (4*y))) = (float)0;
									   *(float*)( Wep + (0x0000 + (4*y))) = (float)0;
									   *(float*)( Wep + (0x0000 + (4*y))) = (float)0;
									   *(float*)( Wep + (0x2000 + (4*y))) = (float)0;
									   *(float*)( Wep + (0x0000 + (4*y))) = (float)0;
									   *(float*)( Wep + (0x2000 + (4*y))) = (float)0;
									   

								   }
							   } 

						   } 
}


 
 









			


Sleep(100);
}
__asm popad;
}

 }
 
//Put your DLLMain below
###

Now your done ^^
Just compile and see ..

I did not created this tut just for you to C+P it's for you to learn .

If you want some source codes .. just use @DaRk 's Stickied thread.

Hope you guys learn ^^
Hey @Zombiekillere I'm dumb in these stuff but I was wondering. If This get detected What to do? :3
Quote Originally Posted by potatomaniac View Post
Hey @Zombiekillere I'm dumb in these stuff but I was wondering. If This get detected What to do? :3

You need to learn C++ in some cases is very easy just change the structure of your hack like while(true) whit while(1) same thing but it was not detected

The best way is to learn from old detected bases and then make your own don't C+P it i make my own base and i don't update it at least form 4 Xtrap pattches and still undetected the hack's on the forum are detected ... God Luck
Quote Originally Posted by Sprite View Post
@potatomaniac That's why you should learn C++
Umm.. What Should I Do Where To Start Where To Look And Where To Ask?
Sorry,i edit something and got an error" i is undeclared identifier",please help!
fixed
Why so hard?
You can make it much easyer!
It's for them to learn @Swag
Quote Originally Posted by Sprite View Post
It's for them to learn @Swag
Lol, why so hard xd
They don't understand asm
Quote Originally Posted by Swag View Post
Lol, why so hard xd
They don't understand asm
Hmm ..

That's why they need to know C++ and ASM xD
Quote Originally Posted by Sprite View Post


Hmm ..

That's why they need to know C++ and ASM xD
Whaha okay, this is the most simple way of asm so good job
@Sprite you are nice and one positive thing you don't post your hook nice many other people post there hook and then there more leecher without credits
Posts 1–15 of 30 · Page 1 of 2

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?