How to make a Simple Hack

Posts 46–60 of 173 · Page 4 of 12
Quote Originally Posted by flameswor10 View Post
1. Open Microsoft Visual Studio, or Visual C++ Express:
2. Go to File > New > Project.
3. Select 'Win32 Project' as your project type.
4. In the next dialog, go to setting and check 'DLL', and 'Empty Project'.
5. Write your code.
6. Go to Build > Build Solution.

Code:
//includes all nessecary files to this source
#include <windows.h>
//End of includes
//This is what you call globals.
int HackOn = 0;
//Define HackOn as a number, and that numebr is zero.
int HackMax = 10;
//Define HackMax as a number, and that number is ten.
bool test = false;
//Define test as a true/false. "Boolean"
#define ADDR_SBULLLETS			0x374BBF16 
//The definition of ADDR_SBULLETS
//End of Globals
void Main (void)
{
	while(1)
		//Makes an infinite loop. One that doesn't end.
	{
		if(GetAsyncKeyState(VK_NUMPAD1)&1)
			//When Numpad1 Gets Pressed
		{
			test = (!test);
			//if test = false, turn to true and vice versa
		}
		if(GetAsyncKeyState(VK_NUMPAD2)&1)
			//When Numpad2 Gets Pressed.
		{
			HackOn ++;
			//Adds +1 to the variable, "HackOn"
			if(HackOn == HackMax) HackOn = 0;
			//When Hackon Reaches the number HackMax, it resets HackOn to 0
		}
		if(test)
			//if test is true
		{
			memcpy( (PBYTE)ADDR_SBULLLETS, (PBYTE)"\x33\xC0\x90", 3 );
			//look in globals for the definition of ADDR_SBULLETS
			//Basically, it edits the bytes of the memory to "\x33\xC0\x90".
			//The number at the end, tells you how many bytes you are editing.
			//The first part, ADDR_SBULLETS Shows the code which part of the memory we are editing.
		}else{
			//if test is not true
			memcpy(  (PBYTE)ADDR_SBULLLETS, (PBYTE)"\x0F\x94\xC0", 3 );
			//look in globals for the definition of ADDR_SBULLETS
			//Basically, it edits the bytes of the memory to "\x0F\x94\xC0".
			//The number at the end, tells you how many bytes you are editing.
			//The first part, ADDR_SBULLETS Shows the code which part of the memory we are editing.
		}
	}
}
DWORD WINAPI Lesson (LPVOID)
// This is just a dummy function that will be the code activate the main thread
{	
	Main();
	//Call the thread called Main
	return 1;
	//Finish of the thread.
}

BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
// DllMain is an optional function for you to declare.
// It serves as the entry point for any DLL
{
	DisableThreadLibraryCalls(hDll);
	// Make a call to DisableThreadLibraryCalls with the hModule variable
	// as its argument; Doing this is an optimization trick to prevent
	// needless thread attach/detach messages from triggering further calls
	// to our DllMain function.
	if ( dwReason == DLL_PROCESS_ATTACH )
	{
		//When this dll is injected into the process. this is what the dll is supposed to do.
		// Null, in C Plus Plus, nothing. It is defined as 0
		CreateThread(NULL, NULL, Lesson, NULL, NULL, NULL);
		//It creates the thread called "Lesson" which is defined a few lines up. DWORD WINAPI Lesson (LPVOID)
	}
return TRUE;
// Although the return value doesn't actually matter. You return the value TRUE or FALSE indicatinng success or failure.

}
Have fun nubs.
The Super Bullets Addy is updated + correct

I wrote this tutorial for a friend of mine, but i decided to share it.
I commented on each line, and each bit to make it easier to understand what each and everything is doing.

Request Sticky?
just curious why you coded superbullets as sbulllets with 3 L's
Quote Originally Posted by draku1 View Post
just curious why you coded superbullets as sbulllets with 3 L's

Ask my keyboard
Nice share.. Had error but managed to Fix em now
Quote Originally Posted by Xmagz View Post
Nice share.. Had error but managed to Fix em now
There should be no errors
@NOOB where do you get the Addresses for the hacks? and how do I make it work now? casue its patched right?
how do u make hack look so heart not easy thought

do you have any video how to make hack man so heart make 1 hmmm
Honestly the way you do, "Is hack on or off" is kinda more complicated than it needs to be. Now i haven't coded in awhile so this could be wrong/detected. I also edited this via Notepad LOL so there could be syntax errors.
Credits:
FLAMESWOR10 !!!!!!!!!!!!!!!!!!!

Updated:
- Updated the Superbullets Address thread.
- Easier way to declare if a key is pressed.
- Warning: This way may be detected.


Code:
//includes all nessecary files to this source
#include <windows.h>
//End of includes
//This is what you call globals.
bool test = false;
bool test2 = false
//Define test as a true/false. "Boolean"
#define ADDR_SBULLLETS			0x373D5D26 
//The definition of ADDR_SBULLETS
//End of Globals

void Main (void)
{
	while(1)
		//Makes an infinite loop. One that doesn't end.
	{
		
if(GetAsyncKeyState(VK_NUMPAD1)&1)
			//When Numpad1 Gets Pressed
		{
			test = (!test);
			//if test = false, turn to true and vice versa
		}
		
if(GetAsyncKeyState(VK_NUMPAD2)&1)
			//When Numpad2 Gets Pressed.
		{
			test = (!test);
			
		}

		
if(test)
			//if test is true
		{
			memcpy( (PBYTE)ADDR_SBULLLETS, (PBYTE)"\x33\xC0\x90", 3 );
			//look in globals for the definition of ADDR_SBULLETS
			//Basically, it edits the bytes of the memory to "\x33\xC0\x90".
			//The number at the end, tells you how many bytes you are editing.
			//The first part, ADDR_SBULLETS Shows the code which part of the memory we are editing.
		}else{
			//if test is not true
			memcpy(  (PBYTE)ADDR_SBULLLETS, (PBYTE)"\x0F\x94\xC0", 3 );
			//look in globals for the definition of ADDR_SBULLETS
			//Basically, it edits the bytes of the memory to "\x0F\x94\xC0".
			//The number at the end, tells you how many bytes you are editing.
			//The first part, ADDR_SBULLETS Shows the code which part of the memory we are editing.
		}
	}
}


if(test2)
	{
// Put another Address Hack Or PTC here!

}
	

DWORD WINAPI Lesson (LPVOID)
// This is just a dummy function that will be the code activate the main thread
{	
	Main();
	//Call the thread called Main
	return 1;
	//Finish of the thread.
}

BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
// DllMain is an optional function for you to declare.
// It serves as the entry point for any DLL
{
	DisableThreadLibraryCalls(hDll);
	// Make a call to DisableThreadLibraryCalls with the hModule variable
	// as its argument; Doing this is an optimization trick to prevent
	// needless thread attach/detach messages from triggering further calls
	// to our DllMain function.
	if ( dwReason == DLL_PROCESS_ATTACH )
	{
		//When this dll is injected into the process. this is what the dll is supposed to do.
		// Null, in C Plus Plus, nothing. It is defined as 0
		CreateThread(NULL, NULL, Lesson, NULL, NULL, NULL);
		//It creates the thread called "Lesson" which is defined a few lines up. DWORD WINAPI Lesson (LPVOID)
	}
return TRUE;
// Although the return value doesn't actually matter. You return the value TRUE or FALSE indicatinng success or failure.

}
can u guy post video that teach us how to make hack so heart to make 1 this day
Help
Im getting these errors:

Error 2 error LNK1120: 1 unresolved externals C:\Users\Alan Jr\Documents\Visual Studio 2010\Projects\Ca hack\Debug\Ca hack.dll Ca hack

Error 1 error LNK2001: unresolved external symbol __DllMainCRTStartup@12 C:\Users\Alan Jr\Documents\Visual Studio 2010\Projects\Ca hack\Ca hack\LINK Ca hack


Please help Im just seeing if i can make one
Quote Originally Posted by traiphoenix View Post
can u guy post video that teach us how to make hack so heart to make 1 this day
No video?
And wut is a heart :/
Quote Originally Posted by traiphoenix View Post
can u guy post video that teach us how to make hack so heart to make 1 this day
Life is hard, use common sence and Google exactly what you need, or youtube it. Life isn't going to be handed to you.
WoW not detailed enough... Add some links to The ENGLISH c++ download
nice tut man... and i dont need it
Don't listen to what they say... Its a fine tutorial! You explain it well!

Also, shouldn't you add a GameStatus check and check if cshell, clientfx and d3d9.dll are not 0.. This prevents crashing... (d3d9.dll not needed though)..
Posts 46–60 of 173 · Page 4 of 12
This thread is closed for replies.

Tags for this Thread

None

Talk with us