Jumat, 30 November 2012

C++ Hack Tutorial

welcome to Stefan's c++ hack making guide

--------------------------------------------

The programs you will be needing
1. Visual Studio 2003

you can download at http://d4rc.net

--------------------------------------------
Download:Attached File  ghb_Public_Source.rar (1.31MB)
---------------------------------------------

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 Posted Image 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



[color="#0000ff"]void[/color] *data_process( [color="#0000ff"]void[/color]* pvAddress, [color="#0000ff"]void[/color]* pvBuffer, [color="#0000ff"]unsigned long[/color] 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;
[color="#0000ff"]int[/color] WarRock_Hook()
{
DWORD proc_id = 0;
if( hnotterhook != NULL )return ([color="#0000ff"]int[/color])hnotterhook;
hWnd = FindWindow( "WarRock", 0 );
if( hWnd == NULL )return NULL;
GetWindowThreadProcessId( hWnd, &proc_id );
return (int)OpenProcess( PROCESS_ALL_ACCESS, false, proc_id );
}

[color="#0000ff"]void[/color] message_box( [color="#0000ff"]char[/color]* sbText, [color="#0000ff"]char[/color]* sbCaption )
{
MessageBox( 0, sbText, sbCaption, MB_OK );
}


Then add this in the c++_header.h

[color="#0000ff"]char[/color] 1 Byte = 8 Bit
[color="#0000ff"]short[/color] 2 Byte = 16 Bit
[color="#0000ff"]int[/color] 2 or 4 Byte = 16 Bit or 32 Bit
[color="#0000ff"]long[/color] 4 Byte = 32 Bit
[color="#0000ff"]float[/color] 4 Byte = 32 Bit
[color="#0000ff"]double[/color] 8 Byte = 64 Bit
[color="#0000ff"]long[/color] double 10 Byte = 80 Bit
[color="#0000ff"]bool[/color] 'True' or 'False'
[color="#0000ff"]void[/color] HEX or Text strings
[color="#0000ff"]char[/color]* char array (Text or strings)
 
*CREDITS*

Functions = s0biet

guide = me
      
       

Tidak ada komentar:

Posting Komentar