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.

    Make A C++ Mfc.exe Trainer


    Krypto
     Share

    Recommended Posts

    How to make C++ trainers for Warrock

    By cobra

     

     

     

    1)Open C++,Goto file/new/ MFC app wisard.exe

    Make Project name: example = (My trainer), then hit ok

    Now it asks you what type of application you want to make(clcik dialog based),hit next

    now it asks what features would you like to include(leave same)Next

    it asks what other support(Unclick ActiveX Controls),Hit next and finish,it opens a new window, hit ok

     

    We now have our trainer template (or better known as Dialog)

     

    2)Remove the crap on the Dialog(buttons,text,etc.)

    Resize if needed

    Lets make our trainer load warrock process

    Right Click on the dialog,hit Class wizard,new window will open,hit edit code

     

    This is were all the codeing goes

    Scroll to the top of code look for this

     

    Code:

    // my trainerDlg.cpp : implementation file

    //

     

    #include "stdafx.h"

    #include "my trainer.h"

    #include "my trainerDlg.h"

     

    #ifdef _DEBUG

    #define new DEBUG_NEW

    #undef THIS_FILE

    static char THIS_FILE[] = __FILE__;

    #endifRight under #endif put this code

     

     

    Code:

    DWORD proc_id;

    HANDLE hProcess;

     

    void memory()

    {

    HWND hWnd = FindWindow(0, "WarRock");

    GetWindowThreadProcessId(hWnd, &proc_id);

    hProcess = OpenProcess(PROCESS_ALL_ACCESS|PROCESS_VM_OPERATION|PROCESS_VM_READ|PROCESS_VM_W

    ITE|PROCESS_QUERY_INFORMATION, FALSE, proc_id);

    }This is what it should look like

     

     

    Code:

    // my trainerDlg.cpp : implementation file

    //

     

    #include "stdafx.h"

    #include "my trainer.h"

    #include "my trainerDlg.h"

     

    #ifdef _DEBUG

    #define new DEBUG_NEW

    #undef THIS_FILE

    static char THIS_FILE[] = __FILE__;

    #endif

    DWORD proc_id;

    HANDLE hProcess;

     

    void memory()

    {

    HWND hWnd = FindWindow(0, "WarRock");

    GetWindowThreadProcessId(hWnd, &proc_id);

    hProcess = OpenProcess(PROCESS_ALL_ACCESS|PROCESS_VM_OPERATION|PROCESS_VM_READ|PROCESS_VM_W

    ITE|PROCESS_QUERY_INFORMATION, FALSE, proc_id);

    }We have now set the process to warrock(you can use this on any game,just change the warrock to whatever game process)

     

    Lets move on

     

    Go back to your Dialog(Hit window button (next to help button up top),hit My trainer(dialog)

     

    Add a button(click on a button,drag it to dialog)

    right click it,hit properties(change the caption,this is the name of the button)

    Lets make it Scope On

    Now right click it again and hit Class Wizard

     

    chow2ez0.jpg

     

     

    When you Highlight BN_CLICKED(Hit add Function button)

    replace the highlight part only!!!!!!!(OnButton1),only change Button1 to ScopeOn

    so it will look like this(OnScopeOn)

    now while we are here in the function for ScopeOn button,lets set the code for our button.Hit teh ( Im too stupid to write "the" ) ( Im too stupid to write "the" ) ( Im too stupid to write "the" ) ( Im too stupid to write "the" ) ( Im too stupid to write "the" ) edit code button

     

    it takes you to this wich is highlighted

    // TODO: Add your control notification handler code here

    we will replace this with our code,notice its inbetween 2 astereks or w/e they are

     

    Code:

    void CMytrainerDlg::OnScopeOn()

    {

    // TODO: Add your control notification handler code here

    }This is what it should look like

     

    Code:

    void CMytrainerDlg::OnScopeOn()

    {

    Writelong(0x943A16, 1);

    }EDIT:Forgot Functions

    ok above the last bit of codeing add this for writelong function

    (just add some space above your last bit of codeing)

     

     

    Code:

    void Writelong(long addy, long value)

    {

    memory();

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

     

    }

    void WritePointerFloat(long addy, short offset, float value)

    {

    long maddy;

    long saddy;

    memory();

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

    saddy = maddy + offset;

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

    }

    NOW,lets build our trainer

    first we must compile so lets rebiuld (goto the build button,hit rebuild all,uptop)

    to see if we have any errors

    if you did everything correct as shown(you shouldnt get any errors)

    If you get no errors then go back to build button/hit build my trianer.exe

    your project will be located in your C++ folder,in my projects.

     

     

    now we have made a simple scope hack(I know buttons arnt good for scope,this was just to show you how to do it in C++(all the functions are there to make any hack that doesnt need a timer to freese it.

    • Upvote 1
    Link to comment
    Share on other sites

    • 1 month later...

    Is this for C++ 6.0 or for another version? Because I get errors...

     

    Edit: I already found the wrong part, you wrote this:

     

    DWORD proc_id;
    HANDLE hProcess;
    
    void memory()
    {
    HWND hWnd = FindWindow(0, "WarRock");
    GetWindowThreadProcessId(hWnd, &proc_id);
    hProcess = OpenProcess(PROCESS_ALL_ACCESS|PROCESS_VM_OPERATION|PROCESS_VM_READ|PROCESS_VM_W
    ITE|PROCESS_QUERY_INFORMATION, FALSE, proc_id);

     

    and it has to be this:

    {
    HWND hWnd = FindWindow(0, "WarRock");
    GetWindowThreadProcessId(hWnd, &proc_id);
    hProcess = OpenProcess(PROCESS_ALL_ACCESS|PROCESS_VM_OPERATION|PROCESS_VM_READ|PROCESS_VM_WRITE|PRO
    ESS_QUERY_INFORMATION, FALSE, proc_id);
    }

    Edited by DutchDominator
    Link to comment
    Share on other sites

    • 2 months later...

    what does MFC stand for..?? just a different file type??

    Link to comment
    Share on other sites

    Is this for C++ 6.0 or for another version? Because I get errors...

     

    Edit: I already found the wrong part, you wrote this:

     

    DWORD proc_id;
    HANDLE hProcess;
    
    void memory()
    {
    HWND hWnd = FindWindow(0, "WarRock");
    GetWindowThreadProcessId(hWnd, &proc_id);
    hProcess = OpenProcess(PROCESS_ALL_ACCESS|PROCESS_VM_OPERATION|PROCESS_VM_READ|PROCESS_VM_W
    ITE|PROCESS_QUERY_INFORMATION, FALSE, proc_id);

     

    and it has to be this:

    {
    HWND hWnd = FindWindow(0, "WarRock");
    GetWindowThreadProcessId(hWnd, &proc_id);
    hProcess = OpenProcess(PROCESS_ALL_ACCESS|PROCESS_VM_OPERATION|PROCESS_VM_READ|PROCESS_VM_WRITE|PRO
    ESS_QUERY_INFORMATION, FALSE, proc_id);
    }

    look closer it allready is that but the text just stands next to it lol
    Link to comment
    Share on other sites

    Guest
    This topic is now closed to further replies.
     Share

    • Recently Browsing   0 members

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