welcome to Stefan's c++ hack making guide
--------------------------------------------
The programs you will be needing
1. Visual Studio 2003
you can download at "http://******.net/ghb/index.php?act=attach&type=post&id=288"
--------------------------------------------
Download:
Board Message
---------------------------------------------
Step 1. getting to know the program
1)go to file/new/project/visual c++ Projects/.NET and press ok
2)now you have a basic template of the hack, that you can edit to what you like
3)Form1.cpp will control all of your functions like a warrok hook or message box
4)Form1.h is were you will be adding your coding for the hacks like stamina
5) assemblyinfo.cpp, stdafx.cpp, resource.h you dont need to worry about
-------------------------------------------------------------------------------------------
Step 2. starting the coding for your hack
1)What you want to do is add a new c++ header file. You can do that by clicking on in the upper left hand corner, and click on header file .h
2)once you have added it you need to link it with Form1.h and From1.cpp, by adding
#include "c++_header.h" under the
#pragma once in both files
3)this is were you will be adding exp. bool Hotkey( int iKey );
4)Now what you want to do is go to Form1.cpp and add these to help you out
CODE
void *data_process( void* pvAddress, void* pvBuffer, unsigned long m_iSize )
{
if( WarRock_Hook( ) )
{
DWORD dwDummy = 0;
if( WriteProcessMemory( hGameHandle, pvAddress, pvBuffer, m_iSize, &dwDummy ) == TRUE )
{
return pvAddress;
}
}
return 0;
}
HANDLE hkoolzhook = 0;
HWND hWnd = 0;
int WarRock_Hook()
{
DWORD proc_id = 0;
if( hnotterhook != NULL )return (int)hnotterhook;
hWnd = FindWindow( "WarRock", 0 );
if( hWnd == NULL )return NULL;
GetWindowThreadProcessId( hWnd, &proc_id );
return (int)OpenProcess( PROCESS_ALL_ACCESS, false, proc_id );
}
void message_box( char* sbText, char* sbCaption )
{
MessageBox( 0, sbText, sbCaption, MB_OK );
}
Then add this in the c++_header.h
CODE
<FONT color=#0000ff>void</FONT> *data_process( <FONT color=#0000ff>void</FONT>* pvAddress, <FONT color=#0000ff>void</FONT>* pvBuffer, <FONT color=#0000ff>unsigned long</FONT> m_iSize );<BR><FONT color=#0000ff>int</FONT> WarRock_Hook();<BR><FONT color=#0000ff>void</FONT> message_box( <FONT color=#0000ff>char</FONT>* sbText, <FONT color=#0000ff>char</FONT>* sbCaption );
5)Now go to Form1.h and you need to define the hack you will be making
CODE
struct hackVariables<BR>{<BR> <FONT color=#0000ff>bool</FONT> Stamina;<BR>};<BR><BR>hackVariables ghbvars;
-------------------------------------------------------------------------------------------
Step 3. Finishing the hack coding
1)Now go to Form1.h[Design], and add a Timer to the hack. then click on properties and set Enabled = true, and interval = 100 or 10
2)Bouble click on the timer and it will bring to to
CODE
private: System::Void timer1_Tick(System::Object * sender, System::EventArgs * e)<BR> {<BR> }
3) now you need to add the warrock hook
CODE
4)Now add the Stamina coding inside the Timer and warrock hook so it looks like this
CODE
private: System::Void timer1_Tick(System::Object * sender, System::EventArgs * e)<BR> {<BR> if( WarRock_Hook( ) )<BR> {<BR> <FONT color=#0000ff>if</FONT>( ghbvars.Stamina )<BR> {<BR> <FONT color=#0000ff>int</FONT> Staminavalue = 1120403456;<BR> data_process( ( <FONT color=#0000ff>void</FONT>* )ADDR_STAMINA, &Staminavalue, sizeof( <FONT color=#0000ff>int</FONT> ) );<BR> }<BR> }<BR> }
5)Now just add a check box to the Form1.h[Design] and double click it and add this code into it
CODE
ghbvars.stamina = !ghbvars.stamina;
-------------------------------------------------------------------------------------------
Step 4. Building the hack
1) go to Build/build testhack
2) Now you have just sucefully made a hack
-------------------------------------------------------------------------------------------
Extras
CODE
char 1 Byte = 8 Bit
short 2 Byte = 16 Bit
int 2 or 4 Byte = 16 Bit or 32 Bit
long 4 Byte = 32 Bit
float 4 Byte = 32 Bit
double 8 Byte = 64 Bit
long double 10 Byte = 80 Bit
bool 'True' or 'False'
void HEX or Text strings
char* char array (Text or strings)
*CREDITS*
Functions = s0biet
guide = stefan
Pleas thanks
