New to Coding

Posts 1–15 of 24 · Page 1 of 2
New to Coding
Looking to make a public and private triggerbot. I'm not sure how I should go about coding it. If anyone could send me some important info and how to code a CS:GO triggerbot, that'd be great. Thank you.
First thing to do is to learn how to program
Its hard for me :/
alias +trigger "quit regular aim"
alias -trigger "+use_auto_click"
bind mouse1 +trigger
triggerbot that is built into csgo
Code:
#include "ProcMem.h"
#include <conio.h>

ProcMem mem;
using namespace std;

class read; //Definition
class read{
public:
       
    int i_Enemies[32]; //Enemy Array
    int i_Count; //Found Counter / Array Index - Allows Us To Populate Enemy Array Correctly (in order)
    int i_team;
    int e_team;
    DWORD dwClient;
    DWORD dwPBase;
    DWORD dwEntity;

    void Read()
    {
        dwClient = mem.Module("client.dll");
        dwPBase = mem.Read<DWORD>(dwClient + 0xA33234);
        i_team = mem.Read<int>(dwPBase + 0xF0);

        for(int i = 0; i < 64; i++)
        {
            //Loop From Base Entity Address by 0x10 On Each Iteration
            dwEntity = mem.Read<DWORD>((dwClient + 0xA4C3E4) + (i * 0x10));

            //Prevent Crash From Reading Null Pointer - also stop counting when weve read the last entity
            if(!dwEntity)
                continue;

            e_team = mem.Read<int>(dwEntity + 0xF0);

            //If An Enemy Has Been Found, Store Their Entity Index ID Inside Array
            if(e_team != i_team && e_team > 1)
            {
                i_Enemies[i_Count] = mem.Read<int>(dwEntity + 0x64);
                i_Count++;
            }
        }
    }
}info;

void Trigger()
{
    //Variables
    int iTarList[32]; //Enemy Array
    int iResponse = 1; //Default Fire Rate
    int * i_cID;
    int cID;

    //Read Relevant info
    info.Read();

    while(1)
    {
        //Read Relevant info
        info.Read();
     
        //Populate Enemy Array
        for(int i = 0; i < info.i_Count; i++)    
            iTarList[i] = info.i_Enemies[i];    
             
        //Read Whats In Crosshair
        cID = mem.Read<int>(info.dwPBase + 0x2374);

        //Compare Current ID To Enemy Arra
        i_cID = find(iTarList, iTarList + info.i_Count, cID);

        //Shoot If Current ID Matches Enemy ID
        while(*i_cID == cID)
        {       
            //Read Whats In Crosshair
            cID = mem.Read<int>(info.dwPBase + 0x2374);

            //Compare Current ID To Enemy Arra
            i_cID = find(iTarList, iTarList + info.i_Count, cID);

            //Less Detectable Method
            mouse_event( MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0 );
            Sleep(iResponse);
            mouse_event( MOUSEEVENTF_LEFTUP, 0, 0, 0, 0 );
                 
            //End Triggerbot - Safety Key Encase Of Infinite Loop
            if(GetAsyncKeyState(VK_END)&1)
                return;
        }

        //Reset Entity Counter
        info.i_Count = 0;

#pragma region Fire Rate Modifier

        if(GetAsyncKeyState(VK_ADD)&1)
        {
            iResponse++;
            if(iResponse > 15)
                iResponse = 15;

            system("cls");
            _cprintf("%d", iResponse);
        }

        if(GetAsyncKeyState(VK_SUBTRACT)&1)
        {
            iResponse--;
            if(iResponse < 1)
                iResponse = 1;

            system("cls");
            _cprintf("%d", iResponse);
        }

#pragma endregion

        //End Triggerbot
        if(GetAsyncKeyState(VK_END)&1)
            break;
    }   
}


int main()
{
    mem.GetProcess("csgo.exe");

    while(1)
    {
        if(GetAsyncKeyState(VK_HOME))
        {
            cout << "\nON";
            Trigger();  
            cout << "\nOFF";
        }
    }
    return 0;
}

//Credits FuRnIzZ
Quote Originally Posted by Skid` View Post
Nice release man! Keep it up @Color
Release? Wat?

- - - Updated - - -

Quote Originally Posted by CatalystTactics View Post
Code:
#include "ProcMem.h"
#include <conio.h>

ProcMem mem;
using namespace std;

class read; //Definition
class read{
public:
       
    int i_Enemies[32]; //Enemy Array
    int i_Count; //Found Counter / Array Index - Allows Us To Populate Enemy Array Correctly (in order)
    int i_team;
    int e_team;
    DWORD dwClient;
    DWORD dwPBase;
    DWORD dwEntity;

    void Read()
    {
        dwClient = mem.Module("client.dll");
        dwPBase = mem.Read<DWORD>(dwClient + 0xA33234);
        i_team = mem.Read<int>(dwPBase + 0xF0);

        for(int i = 0; i < 64; i++)
        {
            //Loop From Base Entity Address by 0x10 On Each Iteration
            dwEntity = mem.Read<DWORD>((dwClient + 0xA4C3E4) + (i * 0x10));

            //Prevent Crash From Reading Null Pointer - also stop counting when weve read the last entity
            if(!dwEntity)
                continue;

            e_team = mem.Read<int>(dwEntity + 0xF0);

            //If An Enemy Has Been Found, Store Their Entity Index ID Inside Array
            if(e_team != i_team && e_team > 1)
            {
                i_Enemies[i_Count] = mem.Read<int>(dwEntity + 0x64);
                i_Count++;
            }
        }
    }
}info;

void Trigger()
{
    //Variables
    int iTarList[32]; //Enemy Array
    int iResponse = 1; //Default Fire Rate
    int * i_cID;
    int cID;

    //Read Relevant info
    info.Read();

    while(1)
    {
        //Read Relevant info
        info.Read();
     
        //Populate Enemy Array
        for(int i = 0; i < info.i_Count; i++)    
            iTarList[i] = info.i_Enemies[i];    
             
        //Read Whats In Crosshair
        cID = mem.Read<int>(info.dwPBase + 0x2374);

        //Compare Current ID To Enemy Arra
        i_cID = find(iTarList, iTarList + info.i_Count, cID);

        //Shoot If Current ID Matches Enemy ID
        while(*i_cID == cID)
        {       
            //Read Whats In Crosshair
            cID = mem.Read<int>(info.dwPBase + 0x2374);

            //Compare Current ID To Enemy Arra
            i_cID = find(iTarList, iTarList + info.i_Count, cID);

            //Less Detectable Method
            mouse_event( MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0 );
            Sleep(iResponse);
            mouse_event( MOUSEEVENTF_LEFTUP, 0, 0, 0, 0 );
                 
            //End Triggerbot - Safety Key Encase Of Infinite Loop
            if(GetAsyncKeyState(VK_END)&1)
                return;
        }

        //Reset Entity Counter
        info.i_Count = 0;

#pragma region Fire Rate Modifier

        if(GetAsyncKeyState(VK_ADD)&1)
        {
            iResponse++;
            if(iResponse > 15)
                iResponse = 15;

            system("cls");
            _cprintf("%d", iResponse);
        }

        if(GetAsyncKeyState(VK_SUBTRACT)&1)
        {
            iResponse--;
            if(iResponse < 1)
                iResponse = 1;

            system("cls");
            _cprintf("%d", iResponse);
        }

#pragma endregion

        //End Triggerbot
        if(GetAsyncKeyState(VK_END)&1)
            break;
    }   
}


int main()
{
    mem.GetProcess("csgo.exe");

    while(1)
    {
        if(GetAsyncKeyState(VK_HOME))
        {
            cout << "\nON";
            Trigger();  
            cout << "\nOFF";
        }
    }
    return 0;
}

//Credits FuRnIzZ
Wouldn't this be detected though? I wanted to make one that no one had access to, so VAC wouldn't pick it up for some time.
Asking more real questions, how does something like an triggerbot work? How is it different from any other program? How does it receive visual input and know when to shoot? What language would you write it in?
Moved to coding.
Please just stop. If you wan't something which no one has, go ahead and code your own. This is code to learn from, so you can code your own. If you can't do your own one after looking at the source code, learn programming first. You can't code. Stop lying to yourself.


@CatalystTactics

Code:
//Less Detectable Method
mouse_event( MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0 );
Sleep(iResponse);
mouse_event( MOUSEEVENTF_LEFTUP, 0, 0, 0, 0 );
Bullshit. VAC detects it either way.

Why do you hardcode Offsets? Worst thing you could ever do .__.

And why do you make life so hard?

Code:
int Triggerbot::Triggershot()
{
	Sleep((vResources).Triggerdelay);

	if ((vResources).TriggerUseWPMEnabled)
		(vClient).SetAttack(1);
	else
		mouse_event(MOUSEEVENTF_LEFTDOWN, NULL, NULL, NULL, NULL);

	Sleep(10);

	if ((vResources).TriggerUseWPMEnabled)
		(vClient).SetAttack(0);
	else
		mouse_event(MOUSEEVENTF_LEFTUP, NULL, NULL, NULL, NULL);

	return 0;
}

int Triggerbot::Triggerburst()
{
        Sleep((vResources).Triggerdelay);

	for (int i = 0; i < 3; i++)
	{
		Triggershot();
                Sleep((vResources).TriggerBurstDelay);
	}

	return 0;
}

void Triggerbot::Run()
{
	while (true)
	{
		if (((vResources).TriggerEnabled && ((vLocalPlayer).GetCrossHairID() > 0 && (vLocalPlayer).GetCrossHairID() <= 64)) &&
			((vResources).TriggerToggleEnabled || (!(vResources).TriggerToggleEnabled && GetAsyncKeyState((vResources).Triggerkey) & 0x8000)) &&
			((vResources).TriggerTeamcheckEnabled && ((vEntity).GetTeam((vLocalPlayer).GetCrossHairID()) != (vLocalPlayer).GetTeam()) || !(vResources).TriggerTeamcheckEnabled))
		{
			if ((vResources).TriggerBurstEnabled)
				Triggerbot::Triggerburst();
			else
				Triggerbot::Triggershot();
		}
		Sleep(1);
	}
}
This is a much simpler Triggerbot, with less code.
Quote Originally Posted by WasserEsser View Post
Please just stop. If you wan't something which no one has, go ahead and code your own. This is code to learn from, so you can code your own. If you can't do your own one after looking at the source code, learn programming first. You can't code. Stop lying to yourself.


@CatalystTactics

Code:
//Less Detectable Method
mouse_event( MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0 );
Sleep(iResponse);
mouse_event( MOUSEEVENTF_LEFTUP, 0, 0, 0, 0 );
Bullshit. VAC detects it either way.

Why do you hardcode Offsets? Worst thing you could ever do .__.

And why do you make life so hard?

Code:
int Triggerbot::Triggershot()
{
	Sleep((vResources).Triggerdelay);

	if ((vResources).TriggerUseWPMEnabled)
		(vClient).SetAttack(1);
	else
		mouse_event(MOUSEEVENTF_LEFTDOWN, NULL, NULL, NULL, NULL);

	Sleep(10);

	if ((vResources).TriggerUseWPMEnabled)
		(vClient).SetAttack(0);
	else
		mouse_event(MOUSEEVENTF_LEFTUP, NULL, NULL, NULL, NULL);

	return 0;
}

int Triggerbot::Triggerburst()
{
        Sleep((vResources).Triggerdelay);

	for (int i = 0; i < 3; i++)
	{
		Triggershot();
                Sleep((vResources).TriggerBurstDelay);
	}

	return 0;
}

void Triggerbot::Run()
{
	while (true)
	{
		if (((vResources).TriggerEnabled && ((vLocalPlayer).GetCrossHairID() > 0 && (vLocalPlayer).GetCrossHairID() <= 64)) &&
			((vResources).TriggerToggleEnabled || (!(vResources).TriggerToggleEnabled && GetAsyncKeyState((vResources).Triggerkey) & 0x8000)) &&
			((vResources).TriggerTeamcheckEnabled && ((vEntity).GetTeam((vLocalPlayer).GetCrossHairID()) != (vLocalPlayer).GetTeam()) || !(vResources).TriggerTeamcheckEnabled))
		{
			if ((vResources).TriggerBurstEnabled)
				Triggerbot::Triggerburst();
			else
				Triggerbot::Triggershot();
		}
		Sleep(1);
	}
}
This is a much simpler Triggerbot, with less code.
Can you PM how I would go about using all this?
Quote Originally Posted by mikaladon View Post
Can you PM how I would go about using all this?
Learn to code? you'd know what to do with this if you knew how to code. No one should have to tell you to "learn to code" stop being lazy
Quote Originally Posted by sup h0wl View Post


Learn to code? you'd know what to do with this if you knew how to code. No one should have to tell you to "learn to code" stop being lazy
I'm not? I've looked at tutorials before, but if I use old code, wouldn't it be detected..?
Quote Originally Posted by mikaladon View Post
I'm not? I've looked at tutorials before, but if I use old code, wouldn't it be detected..?
wow if you knew how to code maybe you could take that "old" code and make it Undetected, wowserzz, also, again, learn to code, stop lying to yourself
Quote Originally Posted by sup h0wl View Post
wow if you knew how to code maybe you could take that "old" code and make it Undetected, wowserzz, also, again, learn to code, stop lying to yourself
Are you fucking retarded? Stop lying to myself? I'm here to learn how to code, you dipshit.
You probably should learn C++ first lol, then it'd be a lot easier.
Posts 1–15 of 24 · Page 1 of 2

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us