Source Code Very Basic CSGO Glow Hack

  • CSGO recently moved logic from 'client_panorama.dll' to 'client.dll', you must update all code that uses 'client_panorama.dll' and replace it with 'client.dll' or the code will not work.
Hexui Undetected CSGO Cheats Sinkicheat PUBG Cheat

Elitiok

Silenced
Jul 13, 2020
79
713
0
How long you been coding/hacking?
1 month
Coding Language
C++
I am Currently Making Glow Hacks I watched some videos but they are doing it external so becuase I love internal more I decided to make one its very basic Inshallah I will improve it I just wanted to share progress :D

Updated due to @Meow advice <3

C++:
#include <Windows.h>
#include <cstdint>
#include "offsets.h"

struct variables {
    DWORD clientMod;
    DWORD localPlayer;
    DWORD Ent;
    DWORD glowManger;
    DWORD LocalTeam;
    DWORD Health;
    DWORD bDormant;
    DWORD glowIndex;
    DWORD EntTeam;
}val;

struct EnemyGlow {
    float red = 1.f;
    float green = 0.f;
    float blue = 0.f;
    float alpha = 1.f;
    uint8_t padding[8];
    float unknown = 1.f;
    uint8_t padding2[4];
    BYTE renderOccluded = true;
    BYTE renderUnoccluded = false;
    BYTE fullBloom = false;
}enm;

struct localGlow {
    float red = 0.f;
    float green = 1.f;
    float blue = 0.f;
    float alpha = 1.f;
    uint8_t padding[8];
    float unknown = 1.f;
    uint8_t padding2[4];
    BYTE renderOccluded = true;
    BYTE renderUnoccluded = false;
    BYTE fullBloom = false;
}loc;

DWORD WINAPI HackThread(HMODULE hModule)
{
    val.clientMod = (DWORD)GetModuleHandle("client.dll");
    val.localPlayer = *(DWORD*)(val.clientMod + hazedumper::signatures::dwLocalPlayer);

    if (val.localPlayer == NULL)
    {
        while (val.localPlayer == NULL)
        {
            val.localPlayer = *(DWORD*)(val.clientMod + hazedumper::signatures::dwLocalPlayer);
        }
    }

    while (!GetAsyncKeyState(VK_F10))
    {
        val.glowManger = *(DWORD*)(val.clientMod + hazedumper::signatures::dwGlowObjectManager);
        val.LocalTeam = *(DWORD*)(val.clientMod + hazedumper::netvars::m_iTeamNum);

        for (int i = 0; i < 64; i++)
        {
            val.Ent = *(DWORD*)(val.clientMod + hazedumper::signatures::dwEntityList + i * 0x10); if (val.Ent == NULL) continue;
            val.bDormant = *(DWORD*)(val.Ent + hazedumper::signatures::m_bDormant); if (val.bDormant) continue;
            val.glowIndex = *(DWORD*)(val.Ent + hazedumper::netvars::m_iGlowIndex);
            val.Health = *(DWORD*)(val.Ent + hazedumper::netvars::m_iHealth); if (val.Health < 1 || val.Health > 100) continue;
            val.EntTeam = *(DWORD*)(val.Ent + hazedumper::netvars::m_iTeamNum);


            if (val.LocalTeam == val.EntTeam)
            {
                *(localGlow*)(val.glowManger + (val.glowIndex * 0x38) + 0x4) = loc;
            }
            else if(val.LocalTeam != val.EntTeam)
            {
                *(EnemyGlow*)(val.glowManger + (val.glowIndex * 0x38) + 0x4) = enm;
            }
        }
        Sleep(1);
    }

    FreeLibraryAndExitThread(hModule, 0);
    return 0;
}

BOOL APIENTRY DllMain(HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved) {

    if (ul_reason_for_call == DLL_PROCESS_ATTACH)
        CreateThread(0, 0, (LPTHREAD_START_ROUTINE)HackThread, hModule, 0, 0);
    return TRUE;
}
Feel free to criticize me and advice me :)
 
Last edited:
  • Like
Reactions: XdarionX and Meow

Meow

Gimme food hooman.
Fleep Tier Donator
Nobleman
Apr 24, 2020
145
3,743
4
Good job. If you want to improve write the struct (like described in the video) instead of writing each field. Thats nim code so translate it into c++.

Code:
type GlowStruct* = object
  base: array[4, byte]
  rgb*: array[0..2, float32]
  alpha*: float32
  pad_1: array[16, byte]
  renderWhenOccluded*: bool
  renderWhenUnOccluded*: bool
  fullBloom*: bool
  pad_2: array[5, byte]
  glowStyle*: int
 
  • Like
Reactions: Elitiok

Elitiok

Silenced
Jul 13, 2020
79
713
0
Good job. If you wan't to improve write the struct (like described in the video) instead of writing each field. Thats nim code so translate it into c++.

Code:
type GlowStruct* = object
  base: array[4, byte]
  rgb*: array[0..2, float32]
  alpha*: float32
  pad_1: array[16, byte]
  renderWhenOccluded*: bool
  renderWhenUnOccluded*: bool
  fullBloom*: bool
  pad_2: array[5, byte]
  glowStyle*: int
Sure I will do that :) + these code looks weird haven't heard about nim before I will check it :D
 
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