Outdated C++ - Counter Strike - How to Make TriggerBot Hack Tutorial

  • WARNING: You are viewing the Legacy Fleep section which contains old and badly explained tutorials. You should not use these old tutorials. Our best, new tutorials are posted here and here.
Hexui Undetected CSGO Cheats Sinkicheat PUBG Cheat
Status
Not open for further replies.

Rake

Cesspool Admin
Administrator
Jan 21, 2014
12,073
78,998
2,371
Hey Guys here is the TriggerBot tutorial, hopefully you will enjoy making it as much as I did.



==============================================
This video is discontinued and has been unlisted on Youtube
==============================================

Watch this video series instead:

- Video Tutorial - C++ CSGO Triggerbot Tutorial External Parts 1-2-3




Updated for 2019
Projects re-created & tested working in VS 2017
Tested working on Windows 10
Attachment updated
Code & Project cleaned up and then zipped using SolZipper
Offsets updated - You will need to update the offsets again if the game updates




All Fleep Tutorials require special compiler settings

If you make a new project from scratch, you must set these project properties:

-Switch from Unicode to Multi Byte Character Set
-Set C++ -> All Options -> Permissive Conformance Mode: NO
-Linker -> Manifest File -> Require Administrator
-C++-> Precompiled Header -> Not Using Precompiled Headers
-C++ -> Add Preprocessor directive: _CRT_SECURE_NO_WARNINGS

Alternatively, download the attachment and use the pre-made project.



As usual I really appreciate your opinions, thanks for watching and leave a Like :). The next tutorial coming up is the CSS C++ aimbot.

Here we go


Final solution with Comments Found in attachments

Thats it i hope you enjoyed the tutorial.

If you have completed the tutorial and have problems then I recommend you download the source code and compare to your own.

Updates offsets are below, here is what int main() looks like:
C++:
#include <Windows.h>
#include <iostream>
#include "HackProcess.h"

using namespace std;

CHackProcess fProcess;

//Player base = address of local player object
const DWORD Player_Base = 0x4C6708; //
const DWORD dw_Attack = 0x4F3B48;//client
const DWORD dw_mTeamOffset = 0x9C;//client
const DWORD dw_crosshairOffs = 0x14F0;//Client.dll //

//this is the entity list
const DWORD EntityPlayer_Base = 0x4D3904; //0x4E3934
const DWORD dw_PlayerCountOffs = 0x5EF6BC;//Engine.dll //
const DWORD EntityLoopDistance = 0x10; //How far in memory is each enemy data //
int NumOfPlayers = 32;

//Here we overwrite the value for +ATTACK1 and -ATTACK1
int i_Shoot = 5;
int i_DontShoot = 4;
bool b_ShotNow = false;

struct MyPlayer_t
{
    //Player base
    DWORD CLocalPlayer;
    int Team;
    int CrosshairEntityID;
    void ReadInformation()
    {
        ReadProcessMemory(fProcess.__HandleProcess, (BYTE*)(fProcess.__dwordClient + Player_Base), &CLocalPlayer, sizeof(DWORD), 0);
        ReadProcessMemory(fProcess.__HandleProcess, (BYTE*)(CLocalPlayer + dw_mTeamOffset), &Team, sizeof(int), 0);
        ReadProcessMemory(fProcess.__HandleProcess, (BYTE*)(CLocalPlayer + dw_crosshairOffs), &CrosshairEntityID, sizeof(int), 0);
        ReadProcessMemory(fProcess.__HandleProcess, (BYTE*)(fProcess.__dwordEngine + dw_PlayerCountOffs), &NumOfPlayers, sizeof(int), 0);
    }
}MyPlayer;

//Stores our enemy data
struct PlayerList_t
{
    DWORD CBaseEntity;
    int Team;

    void ReadInformation(int Player)
    {
        ReadProcessMemory(fProcess.__HandleProcess, (BYTE*)(fProcess.__dwordClient + EntityPlayer_Base + (Player * EntityLoopDistance)),
            &CBaseEntity, sizeof(DWORD), 0);
        ReadProcessMemory(fProcess.__HandleProcess, (BYTE*)(CBaseEntity + dw_mTeamOffset), &Team, sizeof(int), 0);
    }
}PlayerList[32];

void TriggerBot()
{
    //disable the ATTACK1 so we can shoot again next time
    if (!b_ShotNow)
    {
        WriteProcessMemory(fProcess.__HandleProcess, (int*)(fProcess.__dwordClient + dw_Attack), &i_DontShoot, sizeof(int), NULL);
        b_ShotNow = !b_ShotNow;
    }

    //If we are not aiming at anyone or an unwanted entity such as a barrel then return
    if (MyPlayer.CrosshairEntityID == 0)
        return;

    //If player is on the same team, skip.  -1 because in game the crosshair entity Id's start from 1 instead of 0
    if (PlayerList[MyPlayer.CrosshairEntityID - 1].Team == MyPlayer.Team)
        return;

    //if entity in crosshair is greater than OUR NUMBER of players it means its not an enemy
    if (MyPlayer.CrosshairEntityID > NumOfPlayers)
        return;

    //good target, shoot now
    if (b_ShotNow)
    {
        WriteProcessMemory(fProcess.__HandleProcess, (int*)(fProcess.__dwordClient + dw_Attack), &i_Shoot, sizeof(int), NULL);
        b_ShotNow = !b_ShotNow;
    }
}

int main()
{
    fProcess.RunProcess(); // Waiting for CSS......
    cout << "Game found! Running Triggerbot..." << endl;

    //Exit if the F6 key is pressed
    while (!GetAsyncKeyState(VK_F6))
    {
        //Read player information into our struct so we know the player
        MyPlayer.ReadInformation();

        //Loop through all our players and retrieve their information
        for (int i = 0; i < NumOfPlayers; i++)
        {
            PlayerList[i].ReadInformation(i);
        }
        TriggerBot();
    }
}
Download the full source for everything in the attachments
-FleepHacks
 

Attachments

Last edited:

TheUnknown

Newbie
Full Member
Nobleman
Feb 19, 2013
51
418
0
Thanks... This one i wait for! Hope i have a time to watch this video.
Thanks again and waiting for the css aimbot c++ for me it's interesting.
 

xeltic

Newbie
Apr 19, 2013
12
184
0
Can you write a tut on how to make sure it only activates on head or body? and how to convert into DLL?
 

JohnIrvin77

Newbie
Full Member
Jan 4, 2014
5
122
0
What do you when there is no player base sinds I am trying to use a memory Tiggerbot For a mmorpg that Uses Guns?

Like you set your tigget bot one 32, And the player base can be around 80-200...
 
Last edited:

till0sch

Respected Hacker
Dank Tier VIP
Dank Tier Donator
Oct 14, 2012
1,104
12,593
51
What do you when there is no player base sinds I am trying to use a memory Tiggerbot For a mmorpg that Uses Guns?

Like you set your tigget bot one 32, And the player base can be around 80-200...
You could try hooking functions which affect every player and get their base by that..
 

noobhacky

Jr.Coder
Full Member
Nobleman
Dec 16, 2012
71
608
0
Fleep, noone is answered so far.

Why this works on bots ( still online just own server)

But when I join multi-player, secure or insecure don't matter, the trigger bot stops working? I know you have put lotta time on this site and for sure you are busy working, but we'd appreciate if you can tell us why we cant get this to work online?

My thread is here

https://guidedhacking.com/showthrea...ses-and-loop-help-questions&p=23451#post23451

Thanks!
 

kingwilliamx

Newbie
Oct 3, 2014
2
854
0
Hey, i followed your tutorial and i got no errors. But when i run it, nothing happens?
It says Game Found Running TriggerBot


Player_Base = 0x53BFC8
dw_Attack = 0x569670
dw_teamOffset = 0x98
dw_PlayerCount = 0x5C817C
dw_crosshairOff = 0x14DC
dw_entityBase = 0x53BFC8
dw_EntityLoopDistance = 10

Help anyone?
 
Last edited:

supercraft360

Newbie
Dec 21, 2013
3
354
0
Fleep, noone is answered so far.

Why this works on bots ( still online just own server)

But when I join multi-player, secure or insecure don't matter, the trigger bot stops working? I know you have put lotta time on this site and for sure you are busy working, but we'd appreciate if you can tell us why we cant get this to work online?

My thread is here

https://guidedhacking.com/showthrea...ses-and-loop-help-questions&p=23451#post23451

Thanks!
It is SMAC detected and SMAC blocks it.
 
Status
Not open for further replies.
Attention! Before you post:

Read the How to Ask Questions Guide
99% of questions are answered in the Beginner's Guide, do it before asking a question.

No Hack Requests. Post in the correct section.  Search the forum first. Read the rules.

How to make a good post:

  • Fill out the form correctly
  • Tell us the game name & coding language
  • Post everything we need to know to help you
  • Ask specific questions, be descriptive
  • Post errors, line numbers & screenshots
  • Post code snippets using code tags
  • If it's a large project, zip it up and attach it

If you do not comply, your post may be deleted.  We want to help, please make a good post and we will do our best to help you.

Community Mods