Jump to content
Welcome, Guest
Existing user? Sign In

Sign In



Sign Up
The MatriX
  • Welcome To Ghbsys
  • CS GO Streaming Version is released. Have fun streaming while cheating!
  • Have a Payment Issue? Send us a Support ticket.
  • Make a thread if you need support or join our discord for live support.
  • Have Suggestions? Make a thread and you'll earn Ghbsys Points for implemented suggestions.
  • Join our discord to stay well connected! Don't forget to integrate your discord to the site
  • Welcome to [GHB] - GAmEhAcKbAsTaRdS Forum

    Welcome to [GHB] - GAmEhAcKbAsTaRdS Forum, like most online communities you must register to view or post in our community, but don't worry this is a simple free process that requires minimal information for you to signup. Be apart of [GHB] - GAmEhAcKbAsTaRdS Forum by signing in or creating an account.
    • Start new topics and reply to others
    • Subscribe to topics and forums to get email updates
    • Get your own profile page and make new friends
    • Send personal messages to other members.

    C++ Hack Maker Tutorial By [ghb]


    Stefan
     Share

    Recommended Posts

    if( !r.Scope )

    {

    int Scopevalue = 1;

    data_process( ( void* )AScope, &Scopevalue, sizeof( Scopevalue ) );

    }

     

    try this

    Link to comment
    Share on other sites

    not sure but i think it's your function "data_process"... why you don't use Write/Read ProcessMemory?

    Link to comment
    Share on other sites

    PS:

    I haven't submit this part, because i recivied 108 errors:

    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 );
    }

    Link to comment
    Share on other sites

    use some functions

     

     

    HANDLE hProcess;

     

    void WriteLong(long addy, long value)

    {

    WriteProcessMemory(hProcess, (LPVOID*)(DWORD)addy, &value, sizeof(value);

    }

     

    void WriteFloat(long addy, float value)

    {

    WriteProcessMemory(hProcess, (LPVOID*)(DWORD)addy, &value, sizeof(value);

    }

     

    void LongPointer(long addy, short offset, long value)

    {

    long blah;

    long blaha;

    ReadProcessMemory(hProcess, (LPVOID*)(DWORD)addy, &blah, sizeof(blah);

    blaha = blah + offset;

    WriteProcessMemory(hProcess, (LPVOID*)(DWORD)blaha, &value, sizeof(value);

    }

    }

    Link to comment
    Share on other sites

    Ok, I write this:

    int Scopevalue=1;
    WriteProcessMemory("WarRock", (LPVOID*)(DWORD)AScope, &Scopevalue, sizeof(Scopevalue));

    but I recivied errors;

    LPVOID => How I write this?

    can you give me your msn by pm?

    I know c++, but only win32 application; Can you help me please? xD

    Link to comment
    Share on other sites

    • 2 weeks later...
    • 9 months later...
    • 1 month later...

    Hum i got so many error ...

    Look :

     

    1>e:\documents and settings\cyril\my documents\visual studio 2008\projects\hackdude\hackdude\Form1.h(105) : error C2059: erreur de syntaxe : 'if'
    1>e:\documents and settings\cyril\my documents\visual studio 2008\projects\hackdude\hackdude\Form1.h(106) : error C2334: jetons inattendus avant '{' ; corps apparent de la fonction ignoré
    1>e:\documents and settings\cyril\my documents\visual studio 2008\projects\hackdude\hackdude\Form1.h(74) : error C2039: 'timer1_Tick' : n'est pas membre de 'HackDude::Form1'
    1>        e:\documents and settings\cyril\my documents\visual studio 2008\projects\hackdude\hackdude\Form1.h(28) : voir la déclaration de 'HackDude::Form1'
    1>e:\documents and settings\cyril\my documents\visual studio 2008\projects\hackdude\hackdude\Form1.h(74) : error C2065: 'timer1_Tick' : identificateur non déclaré
    1>e:\documents and settings\cyril\my documents\visual studio 2008\projects\hackdude\hackdude\Form1.h(74) : error C3350: 'System::EventHandler' : un constructeur délégué attend 2 argument(s)
    1>e:\documents and settings\cyril\my documents\visual studio 2008\projects\hackdude\hackdude\Form1.h(121) : error C2039: 'stamina' : n'est pas membre de 'hackVariables'
    1>        e:\documents and settings\cyril\my documents\visual studio 2008\projects\hackdude\hackdude\Form1.h(4) : voir la déclaration de 'hackVariables'
    1>e:\documents and settings\cyril\my documents\visual studio 2008\projects\hackdude\hackdude\Form1.h(121) : error C2039: 'stamina' : n'est pas membre de 'hackVariables'
    1>        e:\documents and settings\cyril\my documents\visual studio 2008\projects\hackdude\hackdude\Form1.h(4) : voir la déclaration de 'hackVariables'
    1>.\HackDude.cpp(27) : error C2065: 'DWORD' : identificateur non déclaré
    1>.\HackDude.cpp(27) : error C2146: erreur de syntaxe : absence de ';' avant l'identificateur 'dwDummy'
    1>.\HackDude.cpp(27) : error C2065: 'dwDummy' : identificateur non déclaré
    1>.\HackDude.cpp(28) : error C2065: 'hGameHandle' : identificateur non déclaré
    1>.\HackDude.cpp(28) : error C2065: 'dwDummy' : identificateur non déclaré
    1>.\HackDude.cpp(28) : error C2065: 'TRUE' : identificateur non déclaré
    1>.\HackDude.cpp(28) : error C3861: 'WriteProcessMemory' : identificateur introuvable
    1>.\HackDude.cpp(37) : error C2146: erreur de syntaxe : absence de ';' avant l'identificateur 'hkoolzhook'
    1>.\HackDude.cpp(37) : error C4430: spécificateur de type manquant - int est pris en compte par défaut. Remarque : C++ ne prend pas en charge int par défaut
    1>.\HackDude.cpp(37) : error C4430: spécificateur de type manquant - int est pris en compte par défaut. Remarque : C++ ne prend pas en charge int par défaut
    1>.\HackDude.cpp(38) : error C2146: erreur de syntaxe : absence de ';' avant l'identificateur 'hWnd'
    1>.\HackDude.cpp(38) : error C4430: spécificateur de type manquant - int est pris en compte par défaut. Remarque : C++ ne prend pas en charge int par défaut
    1>.\HackDude.cpp(38) : error C4430: spécificateur de type manquant - int est pris en compte par défaut. Remarque : C++ ne prend pas en charge int par défaut
    1>.\HackDude.cpp(41) : error C2065: 'DWORD' : identificateur non déclaré
    1>.\HackDude.cpp(41) : error C2146: erreur de syntaxe : absence de ';' avant l'identificateur 'proc_id'
    1>.\HackDude.cpp(41) : error C2065: 'proc_id' : identificateur non déclaré
    1>.\HackDude.cpp(42) : error C2065: 'hnotterhook' : identificateur non déclaré
    1>.\HackDude.cpp(42) : error C2065: 'NULL' : identificateur non déclaré
    1>.\HackDude.cpp(42) : error C2065: 'hnotterhook' : identificateur non déclaré
    1>.\HackDude.cpp(43) : error C3861: 'FindWindow' : identificateur introuvable
    1>.\HackDude.cpp(44) : error C2065: 'NULL' : identificateur non déclaré
    1>.\HackDude.cpp(44) : error C2065: 'NULL' : identificateur non déclaré
    1>.\HackDude.cpp(45) : error C2065: 'proc_id' : identificateur non déclaré
    1>.\HackDude.cpp(45) : error C3861: 'GetWindowThreadProcessId' : identificateur introuvable
    1>.\HackDude.cpp(46) : error C2065: 'PROCESS_ALL_ACCESS' : identificateur non déclaré
    1>.\HackDude.cpp(46) : error C2065: 'proc_id' : identificateur non déclaré
    1>.\HackDude.cpp(46) : error C3861: 'OpenProcess' : identificateur introuvable
    1>.\HackDude.cpp(51) : error C2065: 'MB_OK' : identificateur non déclaré

     

    And thats the code :

    the .cpp

    // HackDude.cpp : fichier projet principal.
    
    #include "stdafx.h"
    #include "Form1.h"
    #include "c++_header.h"
    
    using namespace HackDude;
    
    [sTAThreadAttribute]
    int main(array<System::String ^> ^args)
    {
    // Activation des effets visuels de Windows XP avant la création de tout contrôle
    Application::EnableVisualStyles();
    Application::SetCompatibleTextRenderingDefault(false); 
    
    // Créer la fenêtre principale et l'exécuter
    Application::Run(gcnew Form1());
    return 0;
    
    
    }
    
    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 );
    }

     

     

    And the .h :

     

    #pragma once
    #include "c++_header.h"
    struct hackVariables
    {   
    bool Stamina;
    };
    hackVariables ghbvars;
    
    
    namespace HackDude {
    
    using namespace System;
    using namespace System::ComponentModel;
    using namespace System::Collections;
    using namespace System::Windows::Forms;
    using namespace System::Data;
    using namespace System::Drawing;
    
    /// <summary>
    /// Description résumée de Form1
    ///
    /// AVERTISSEMENT : si vous modifiez le nom de cette classe, vous devrez modifier la
    ///          propriété 'Nom du fichier de ressources' de l'outil de compilation de ressource managée
    ///          pour tous les fichiers .resx dont dépend cette classe. Dans le cas contraire,
    ///          les concepteurs ne pourront pas interagir correctement avec les ressources
    ///          localisées associées à ce formulaire.
    /// </summary>
    public ref class Form1 : public System::Windows::Forms::Form
    {
    public:
    	Form1(void)
    	{
    		InitializeComponent();
    
    
    	}
    
    protected:
    	/// <summary>
    	/// Nettoyage des ressources utilisées.
    	/// </summary>
    	~Form1()
    	{
    		if (components)
    		{
    			delete components;
    		}
    	}
    private: System::Windows::Forms::Timer^  timer1;
    private: System::Windows::Forms::CheckBox^  checkBox1;
    protected: 
    private: System::ComponentModel::IContainer^  components;
    
    private:
    	/// <summary>
    	/// Variable nécessaire au concepteur.
    	/// </summary>
    
    
    #pragma region Windows Form Designer generated code
    	/// <summary>
    	/// Méthode requise pour la prise en charge du concepteur - ne modifiez pas
    	/// le contenu de cette méthode avec l'éditeur de code.
    	/// </summary>
    	void InitializeComponent(void)
    	{
    		this->components = (gcnew System::ComponentModel::Container());
    		this->timer1 = (gcnew System::Windows::Forms::Timer(this->components));
    		this->checkBox1 = (gcnew System::Windows::Forms::CheckBox());
    		this->SuspendLayout();
    		// 
    		// timer1
    		// 
    		this->timer1->Tick += gcnew System::EventHandler(this, &Form1::timer1_Tick);
    		// 
    		// checkBox1
    		// 
    		this->checkBox1->AutoSize = true;
    		this->checkBox1->Location = System::Drawing::Point(66, 44);
    		this->checkBox1->Name = L"checkBox1";
    		this->checkBox1->Size = System::Drawing::Size(80, 17);
    		this->checkBox1->TabIndex = 0;
    		this->checkBox1->Text = L"checkBox1";
    		this->checkBox1->UseVisualStyleBackColor = true;
    		this->checkBox1->CheckedChanged += gcnew System::EventHandler(this, &Form1::checkBox1_CheckedChanged);
    		// 
    		// Form1
    		// 
    		this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
    		this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
    		this->ClientSize = System::Drawing::Size(292, 266);
    		this->Controls->Add(this->checkBox1);
    		this->Name = L"Form1";
    		this->Text = L"Form1";
    		this->Load += gcnew System::EventHandler(this, &Form1::Form1_Load);
    		this->ResumeLayout(false);
    		this->PerformLayout();
    
    	}
    #pragma endregion
    private: System::Void Form1_Load(System::Object^  sender, System::EventArgs^  e) 
    		 {
    		 }
    
    if( WarRock_Hook( ) )
    	{
              private: System::Void timer1_Tick(System::Object *  sender, System::EventArgs *  e)
    	{  
    			  if( WarRock_Hook( ) )
    			{
    				if( ghbvars.Stamina )  
    				  { 
    					  int Staminavalue = 1120403456;
    					  data_process( ( void* )ADDR_STAMINA, &Staminavalue, sizeof( int ) );
    				   }  
    			}  
    		   }
    }
    private: System::Void checkBox1_CheckedChanged(System::Object^  sender, System::EventArgs^  e) 
    		 {
    			 ghbvars.stamina = !ghbvars.stamina;
    		 }
    };
    }
    
    
    
    

     

    Help ?

    What's wrong ?

     

    ps : sorry but the error description are in french...

    I will reinstall it in english tomorow ...

    Edited by larta
    Link to comment
    Share on other sites

    • 1 month later...
    • 4 months later...
    • 3 weeks later...
    • 4 weeks later...

    Can someone PM me the Tut for coding hacks for Combat arms that would be really appreciated

     

    THX

    Link to comment
    Share on other sites

    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:ghb_Public_Source.rar

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

     

    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 cheaderfilexc3.png 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

    Link to comment
    Share on other sites

    • 1 month later...
    • 1 month later...
    • 1 month later...
    • 1 month later...
    • 4 weeks later...
    Guest
    This topic is now closed to further replies.
     Share

    • Recently Browsing   0 members

      • No registered users viewing this page.
    ×
    ×
    • Create New...