[Source Code] Simple CS:GO Hack with Find Pattern

Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...
Onaylı Üye
Katılım
8 Nis 2018
Mesajlar
104
Tepki puanı
18
Ödüller
7
8 HİZMET YILI
This is my simple CS: GO hack with Find Pattern (Internal - Undetected).
Features:

- NoFlash
- GlowESP
- Bunnyhop
- Triggerbot
- ShowEnemiesSpot

By the way !!! Thanks to this Forum, my skills have improved a lot.
This source code can be a good document for other newbie.

Like if I helped you.
C++:
# ifndef _HACK_H_

#define _HACK_H_



#pragma once

#include "stdafx.h"



namespace Addys

{

    const DWORD isSpotted = 0x93D;

    const DWORD m_iCrosshairId = 0xB3AC;

    const DWORD flashDuration = 0xA3F4;

    const DWORD m_iGlowIndex = 0xA40C;

    const DWORD m_iTeamNum = 0xF4;

    const DWORD flags = 0x104;

    const DWORD velocity = 0x114;

    const DWORD iHealth = 0x100;

    const DWORD iScoped = 0x3910;

    const DWORD m_iItemDefinitionIndex = 0x2FAA;

    const DWORD m_OriginalOwnerXuidLow = 0x31B0;

    const DWORD m_nFallbackPaintKit = 0x31B8;

    const DWORD m_iAccountID = 0x2FC8;

    const DWORD m_hActiveWeapon = 0x2EF8;

    const DWORD m_iItemIDHigh = 0x2FC0;

    const DWORD m_OriginalOwnerXuidHigh = 0x31B4;

    const DWORD m_nFallbackSeed = 0x31BC;

    const DWORD m_nFallbackStatTrak = 0x31C4;

    const DWORD m_flFallbackWear = 0x31C0;

    const DWORD m_szCustomName = 0x303C;

    const DWORD m_iEntityQuality = 0x2FAC;

    const DWORD EntLoopDist = 0x10;

    const DWORD m_iAccount = 0xA8D8;

    const DWORD m_iWeaponID = 0x32DC;

    const DWORD m_iItemIDLow = 0x2FC4;

    const DWORD m_hMyWeapons = 0x2DF8;

    const DWORD m_bIsDefusing = 0x3918;

    const DWORD m_iHealth = 0x100;

    const DWORD m_clrRender = 0x70;

    const DWORD m_aimPunchAngle = 0x302C;

    const DWORD m_hViewModel = 0x32F8;

    const DWORD m_iViewModelIndex = 0x3220;

    const DWORD m_nModelIndex = 0x258;

    const DWORD dwClientState_ViewAngles = 0x4D88;

    const DWORD m_iShotsFired = 0xA380;

    const DWORD m_vecOrigin = 0x138;

    const DWORD SignOnState = 0x108;

    const DWORD m_iWorldModelIndex = 0x3224;



}



class cHack

{

public:

    // Methods

    static BOOL WINAPI EntryPoint (LPVOID);

    static BOOL WINAPI Prepare (VOID);



    // Features

    static VOID BunnyHop ();

    static VOID NoFlash ();

    static VOID GlowESP ();

    static VOID TriggerBot ();

    static VOID ShowEnemiesSpot ();



    // Properties

    static DWORD gameModule, gameEngine, * localPlayer;

    static DWORD dwLocalPlayer, dwClientState, dwForceJump, dwEntityList, dwGlowObjectManager;

};

#endif

C++:
# include <Windows.h>

#include "FindPattern.h"

C++:
# pragma once

#ifndef __FIND_PATTERN_H__

#define __FIND_PATTERN_H__



#include <Windows.h>



namespace CSGO

{

    class FindPattern

    {

    public:

        FindPattern (DWORD dwAddress, DWORD len, BYTE * bMask, char * szMask): Base (0), Offset (0)

        {

            for (DWORD i = 0; i <len; i ++)

            {

                if (bCompare ((BYTE *) (dwAddress + i), bMask, szMask))

                {

                    Base = (DWORD) (dwAddress + i);

                    Offset = i;

                    break;

                }

            }

        }

        DWORD Base, Offset;

    private:

        bool bCompare (const BYTE * pData, const BYTE * bMask, const char * szMask)

        {

            for (; * szMask; ++ szMask, ++ pData, ++ bMask)

                if (* szMask == '0' && * pData! = * bMask)

                    return false;

            return (* szMask) == NULL;

        }

    };

}

#endif

Kod:
[CODE=cpp



DWORD

cHack::gameModule = NULL,

cHack::gameEngine = NULL,

cHack::dwLocalPlayer = NULL,

cHack::dwClientState = NULL,

cHack::dwForceJump = NULL,

cHack::dwEntityList = NULL,

cHack::dwGlowObjectManager = NULL,

* cHack::localPlayer = NULL;



BOOL __stdcall cHack::EntryPoint(LPVOID)

{

    Prepare();

    while (true)

    {

        if (*localPlayer)

        {

            BunnyHop();

            NoFlash();

            GlowESP();

            TriggerBot();

            ShowEnemiesSpot();

        }

        Sleep(10);

    }





    return 0;

}



BOOL __stdcall cHack::Prepare(VOID)

{

    while (!gameModule || !gameEngine)

    {

        gameModule = (DWORD)GetModuleHandleA("client_panorama.dll");

        gameEngine = (DWORD)GetModuleHandleA("engine.dll");

        Sleep(100);

    }



    do

    {

        dwLocalPlayer = CSGO::FindPattern(gameModule, 0xFFFFFFF, (PBYTE)("\x8D\x34\x85\x00\x00\x00\x00\x89\x15\x00\x00\x00\x00\x8B\x41\x00\x8B\x48\x00\x83\xF9\xFF\x74\x17"), "000????00????00?00?00000").Base;

        if (dwLocalPlayer)

        {

            dwLocalPlayer = *(DWORD*)(dwLocalPlayer + 0x3);

            dwLocalPlayer -= gameModule;

            dwLocalPlayer += 0x4;

        }

    } while (!dwLocalPlayer);



    do

    {

        dwClientState = CSGO::FindPattern(gameEngine, 0xFFFFFFF, (PBYTE)("\xA1\x00\x00\x00\x00\x33\xD2\x6A\x00\x6A\x00\x33\xC9\x89\xB0"), "0????000?0?0000").Base;

        if (dwClientState)

        {

            dwClientState = *(DWORD*)(dwClientState + 0x1);

            dwClientState -= gameEngine;

        }

    } while (!dwClientState);



    do

    {

        dwForceJump = CSGO :: FindPattern (gameModule, 0xFFFFFFF, (PBYTE) ("\ x8B \ x0D \ x00 \ x00 \ x00 \ x00 \ x8B \ xD6 \ x8B \ xC1 \ x83 \ xCA \ x02"), "00 ??? ? 0000000 "). Base;

        if (dwForceJump)

        {

            dwForceJump = * (DWORD *) (dwForceJump + 0x2);

            dwForceJump - = gameModule;

        }

    } while (! dwForceJump);



    do

    {

        dwEntityList = CSGO :: FindPattern (gameModule, 0xFFFFFFF, (PBYTE) ("\ x89 \ x4D \ xF8 \ x3B \ xC7 \ x0F \ x8C \ x00 \ x00 \ x00 \ x00 \ xBB \ x00 \ x00 \ x00 \ x00") , "0000000 ???? 0 ????"). Base;

        if (dwEntityList)

        {

            dwEntityList = * (DWORD *) (dwEntityList + 0xC);

            dwEntityList - = gameModule;

        }

    } while (! dwEntityList);



    do

    {

        dwGlowObjectManager = CSGO :: FindPattern (gameModule, 0xFFFFFFF, (PBYTE) ("\ x5E \ x5D \ xC2 \ x00 \ x00 \ x83 \ xE9 \ x40 \ xE9 \ x00 \ x00 \ x00 \ x00 \ xA1 \ x00 \ x00 \ x00 \ x00 \ x00 ")," 000 ?? 0000 ???? 0 ???? "). Base;

        if (dwGlowObjectManager)

        {

            dwGlowObjectManager = * (DWORD *) (dwGlowObjectManager + 0xE);

            dwGlowObjectManager - = gameModule;

            dwGlowObjectManager + = 0x4;

        }

    } while (! dwGlowObjectManager);



    localPlayer = (DWORD *) (gameModule + dwLocalPlayer);



    return 0;

}



VOID cHack :: BunnyHop ()

{

    DWORD flag = * (DWORD *) (* localPlayer + Addys :: flags);

    if (flag & 1 && GetAsyncKeyState (VK_SPACE))

    {

        * (DWORD *) (gameModule + dwForceJump) = 6;

    }

    return VOID ();

}



VOID cHack :: NoFlash ()

{

    DWORD * flashDuration = (DWORD *) (* localPlayer + Addys :: flashDuration);

    if (* flashDuration)

    {

        * flashDuration = 0;

    }

    return VOID ();

}



VOID cHack :: GlowESP ()

{

    DWORD glowObject = * (DWORD *) (gameModule + dwGlowObjectManager);

    int myTeam = * (int *) (* localPlayer + Addys :: m_iTeamNum);



    for (short int i = 0; i <64; i ++)

    {

        DWORD entity = * (DWORD *) (gameModule + dwEntityList + i * 0x10);

        if (entity! = NULL)

        {

            int glowIndx = * (int *) (entity + Addys :: m_iGlowIndex);

            int entityTeam = * (int *) (entity + Addys :: m_iTeamNum);



            if (myTeam == entityTeam)

            {

                * (float *) ((glowObject + ((glowIndx * 0x38) + 0x4))) = 0;

                * (float *) ((glowObject + ((glowIndx * 0x38) + 0x8))) = 0;

                * (float *) ((glowObject + ((glowIndx * 0x38) + 0xC))) = 0;

                * (float *) ((glowObject + ((glowIndx * 0x38) + 0x10))) = 0.4;

            }

            else

            {

                * (float *) ((glowObject + ((glowIndx * 0x38) + 0x4))) = 2;

                * (float *) ((glowObject + ((glowIndx * 0x38) + 0x8))) = 0;

                * (float *) ((glowObject + ((glowIndx * 0x38) + 0xC))) = 0;

                * (float *) ((glowObject + ((glowIndx * 0x38) + 0x10))) = 0.4;

            }

            * (BYTE *) ((glowObject + ((glowIndx * 0x38) + 0x24))) = 1;

            * (BYTE *) ((glowObject + ((glowIndx * 0x38) + 0x25))) = 0;

        }

    }

    return VOID ();

}



VOID cHack :: TriggerBot ()

{

    int id = * (int *) (* localPlayer + Addys :: m_iCrosshairId);

    int myTeam = * (int *) (* localPlayer + Addys :: m_iTeamNum);

    if (id> 0 && id <64)

    {

        DWORD pEntity = * (DWORD *) (gameModule + dwEntityList + (id - 1) * 0x10);

        int iTeamNum = * (int *) (pEntity + Addys :: m_iTeamNum);

        if ((iTeamNum! = myTeam) && (iTeamNum! = 0) && GetAsyncKeyState (VK_MENU))

        {

            mouse_event (MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0);

            Sleep (1);

            mouse_event (MOUSEEVENTF_LEFTUP, 0, 0, 0, 0);

        }

    }

    return VOID ();

}



VOID cHack :: ShowEnemiesSpot ()

{

    for (UINT8 i = 0; i <64; i ++)

    {

        DWORD entity = * (DWORD *) (gameModule + dwEntityList + i * 0x10);

        if (entity! = NULL)

            * (BYTE *) (entity + Addys :: isSpotted) = 1;

    }

    return VOID ();

}

Kod:
 
Son düzenleme:
●★★●★★●★★●★★●
Süper Üye
Katılım
10 Şub 2020
Mesajlar
763
Çözümler
1
Tepki puanı
22
Ödüller
6
6 HİZMET YILI
what this one 4? like how to use it?
 
Your Friendly Neighbor
Süper Üye
Katılım
1 Eyl 2019
Mesajlar
630
Çözümler
2
Tepki puanı
46
Ödüller
5
Yaş
27
6 HİZMET YILI
I was exactly looking for this
 
Süper Üye
Katılım
7 Şub 2019
Mesajlar
601
Çözümler
3
Tepki puanı
49
Ödüller
6
Yaş
30
7 HİZMET YILI
Very easy to use and to modify. i recommend. it's very nice
 
Onaylı Üye
Katılım
31 Ocak 2020
Mesajlar
62
Tepki puanı
3
Ödüller
3
Yaş
26
6 HİZMET YILI
thanks for sharing, dont play csgo often but its nice to see people are helping the community out
 
Onaylı Üye
Katılım
9 Mar 2019
Mesajlar
66
Tepki puanı
2
Yaş
25
7 HİZMET YILI
thanks for the code, I'll use it for my external, because I don't like internals
 
Üye
Katılım
11 Nis 2017
Mesajlar
36
Tepki puanı
1
9 HİZMET YILI
You can assign a level of comments by opening a topic and I am trying to do so
 
Bardzz
Süper Üye
Katılım
26 Mar 2018
Mesajlar
646
Çözümler
1
Tepki puanı
33
Ödüller
8
Yaş
28
8 HİZMET YILI
how do I use this one?
 
Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...
Üst