Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <Windows.h>
- #include <string>
- #include <TlHelp32.h>
- #include <Thread>
- #include <stdlib.h>
- #include <vector>
- #include <math.h>
- #define spacebar VK_SPACE
- #define pressed 0x8000
- #define leftmouse VK_LBUTTON
- #define alt VK_MENU
- #define keyA 0x41
- #define keyD 0x44
- #define Num1 VK_NUMPAD1
- #define Num2 VK_NUMPAD2
- #define Num3 VK_NUMPAD3
- #define Num4 VK_NUMPAD4
- #define Num5 VK_NUMPAD5
- #define Num6 VK_NUMPAD6
- #define Num7 VK_NUMPAD7
- #define Num8 VK_NUMPAD8
- #define Num9 VK_NUMPAD9
- #define MAXFOV 2 //Change this is you want to change Aimbot Fov
- // OFFSETS \\
- #define EntityListOff 0x4AC90F4
- #define localplayer 0xAA6834
- #define glowobject 0x4FE38C4 //GlowObjectManager
- #define clientstate 0x5C75A4
- #define AttackingOff 0x2F09228 //For You Marc, dwForceAttack
- #define spotted 0x939
- #define FlashedOff 0xA304
- #define GlowIndexOff 0xA320
- #define CrosshairIDOffset 0xAA70
- #define ViewAnglesOff 0x4D0C
- #define VecPunchOff 0x301C
- #define ShotsFiredOff 0xA2C0
- #define BoneMatrixOff 0x2698
- #define NoHandsOff 0x38F3
- #define ForceUpdateOff 0x16C
- #define m_hActiveWeapon 0x2EE8
- #define m_hMyWeapons 0x2DE8
- #define m_iItemDefinitionIndex 0x2F88
- #define m_iAccountID 0x2FA8
- #define m_OriginalOwnerXuidLow 0x3168
- #define m_OriginalOwnerXuidHigh 0x316C
- #define m_iItemIDLow 0x2FA4
- #define m_iItemIDHigh 0x2FA0
- #define m_nFallbackPaintKit 0x3170
- #define m_nFallbackSeed 0x3174
- #define m_flFallbackWear 0x3178
- #define m_nFallbackStatTrak 0x317C
- #define m_iEntityQuality 0x2F8C
- #define m_szCustomName 0x301C
- #define m_hViewModel 0x32FC
- #define m_nModelIndex 0x0254
- #define m_iWorldModelIndex 0x31E4
- #define m_iViewModelIndex 0x31E0
- #define m_iWorldDroppedModelIndex 0x31E8
- // OFFSETS \\
- using namespace std;
- int TriggerBind;
- int BhopBind;
- int AimbotBind;
- bool bEsp = false;
- bool bBhop = false;
- bool bTrigger = false;
- bool bNoflash = false;
- bool bRCS = false;
- bool bAimbot = false;
- bool bSkinChanger = false;
- char nohands[256] = { 0 };
- char SkinName[161] = "Get Memed" ;
- int IsIngame;
- struct Vector {
- float x, y, z;
- };
- struct VectorYX {
- float x, y ;
- };
- struct GlowStruct
- {
- void* m_pEntity;
- float r;
- float g;
- float b;
- float a;
- unsigned char _0x0014[16];
- bool rwo;
- bool rwuo;
- bool frb;
- unsigned char _0x0027[13];
- }GlowStructA;
- struct RGBA {
- float r;
- float g;
- float b;
- float a;
- }RGBAA;
- struct RenderWhen {
- bool rwo;
- bool rwuo;
- }RenderWhenA;
- int KeyPressed() {
- while (true) {
- for (int i = 1; i < 255; i++) {
- if (GetAsyncKeyState(i) & pressed) {
- Sleep(250);
- return i;
- }
- }
- Sleep(10);
- }
- }
- DWORD GetModuleBaseExtern(const DWORD dwProcessId, const char *szModuleName)
- {
- HANDLE hSnap = CreateToolhelp32Snapshot(TH32CS_SNAPMODULE, dwProcessId);
- if (!hSnap) return 0;
- MODULEENTRY32 me;
- me.dwSize = sizeof(MODULEENTRY32);
- DWORD dwReturn = 0;
- if (Module32First(hSnap, &me)) {
- while (Module32Next(hSnap, &me)) {
- if (lstrcmpi(me.szModule, szModuleName) == 0) {
- dwReturn = (DWORD)me.modBaseAddr;
- break;
- }
- }
- }
- CloseHandle(hSnap);
- return dwReturn;
- }
- void Trigger(HWND hWnd, DWORD clientdll, HANDLE hProcess) {
- DWORD playerbase;
- ReadProcessMemory(hProcess, (LPCVOID)(clientdll + localplayer), &playerbase, sizeof(playerbase), NULL);
- if (playerbase == NULL) {
- return;
- }
- int playernumber;
- ReadProcessMemory(hProcess, (LPCVOID)(playerbase + CrosshairIDOffset), &playernumber, sizeof(playernumber), NULL);
- if (playernumber < 1 || playernumber > 64 || playernumber == NULL) {
- return;
- }
- else {
- DWORD entity;
- bool dormant;
- int Eteam;
- int Iteam;
- ReadProcessMemory(hProcess, (LPCVOID)(clientdll + EntityListOff + ((playernumber - 1) * 0x10)), &entity, sizeof(entity), NULL);
- ReadProcessMemory(hProcess, (LPCVOID)(entity + 0xE9), &dormant, sizeof(dormant), NULL);
- ReadProcessMemory(hProcess, (LPCVOID)(entity + 0xF0), &Eteam, sizeof(Eteam), NULL);
- ReadProcessMemory(hProcess, (LPCVOID)(playerbase + 0xF0), &Iteam, sizeof(Iteam), NULL);
- if (entity == NULL || Eteam == NULL || Iteam == NULL) {
- return;
- }
- if (Eteam != Iteam && !dormant) {
- mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0);
- Sleep(1);
- mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0);
- }
- }
- }
- struct Skin {
- int PaintKit;
- int Seed;
- int StatTrak;
- float Wear;
- int EntityQuality;
- char CustomName[161];
- };
- struct FallbackValues {
- int FBPaintKit;
- int FBSeed;
- float FBWear;
- int FBStatTrak;
- };
- struct Knife {
- int iViewModelIndex;
- int iWorldModelIndex;
- int iItemDefinitionIndex;
- };
- void WriteSkins(DWORD enginebase, DWORD CurrentWeaponEntity, HANDLE hProcess, Skin SkinToWrite, int WeaponXuid) {
- // FallbackValues Fallback;
- // Fallback.FBPaintKit = SkinToWrite.PaintKit;
- // Fallback.FBSeed = SkinToWrite.Seed;
- // Fallback.FBWear = SkinToWrite.Wear;
- // Fallback.FBStatTrak = SkinToWrite.StatTrak;
- int ItemHigh = -1;
- int zero = 0;
- int one = 1;
- // WriteProcessMemory(hProcess, (LPVOID)(CurrentWeaponEntity + m_nFallbackPaintKit), &Fallback, sizeof(FallbackValues), NULL);
- WriteProcessMemory(hProcess, (LPVOID)(CurrentWeaponEntity + m_nFallbackPaintKit), &SkinToWrite.PaintKit, sizeof(SkinToWrite.PaintKit), NULL);
- WriteProcessMemory(hProcess, (LPVOID)(CurrentWeaponEntity + m_nFallbackSeed), &SkinToWrite.Seed, sizeof(SkinToWrite.Seed), NULL);
- WriteProcessMemory(hProcess, (LPVOID)(CurrentWeaponEntity + m_flFallbackWear), &SkinToWrite.Wear, sizeof(SkinToWrite.Wear), NULL);
- WriteProcessMemory(hProcess, (LPVOID)(CurrentWeaponEntity + m_nFallbackStatTrak), &SkinToWrite.StatTrak, sizeof(SkinToWrite.StatTrak), NULL);
- WriteProcessMemory(hProcess, (LPVOID)(CurrentWeaponEntity + m_iEntityQuality), &SkinToWrite.EntityQuality, sizeof(SkinToWrite.EntityQuality), NULL);
- WriteProcessMemory(hProcess, (LPVOID)(CurrentWeaponEntity + m_szCustomName), &SkinToWrite.CustomName, sizeof(SkinToWrite.CustomName), NULL);
- WriteProcessMemory(hProcess, (LPVOID)(CurrentWeaponEntity + m_iAccountID), &WeaponXuid, sizeof(WeaponXuid), NULL);
- // WriteProcessMemory(hProcess, (LPVOID)(CurrentWeaponEntity + m_OriginalOwnerXuidHigh), &zero, sizeof(zero), NULL);
- // WriteProcessMemory(hProcess, (LPVOID)(CurrentWeaponEntity + m_OriginalOwnerXuidLow), &zero, sizeof(zero), NULL);
- WriteProcessMemory(hProcess, (LPVOID)(CurrentWeaponEntity + m_iItemIDHigh), &one, sizeof(one), NULL);
- // WriteProcessMemory(hProcess, (LPVOID)(enginebase + ForceUpdateOff), &ItemHigh, sizeof(ItemHigh), NULL);
- }
- void SkinChanger(HANDLE hProcess, DWORD clientdll, DWORD enginedll) {
- Skin FireSerpent = { 180,1,1337,0.00001,9,"fiery haircuts" };
- Skin Orion = { 313,1,1337,0.00001,9,"1tap" };
- Skin WaterElemental = { 353,1,1337,0.00001,9,"Water Splash" };
- Skin GoldenKoi = { 185,1,1337,0.00001,9,":3" };
- Skin BloodInTheWater = { 222,1,1337,0.00001,9,"Sharkperiod" };
- Skin DragonLore = { 344,1,13,0.00001,9,"dlore.exe" };
- Skin Howl = { 309,1,1337,0.00001,9,"HOWLY FUCK" };
- Skin MarbleFade = { 413,493,1337,0.00001, 3, "Get Memed" };
- Knife Butterfly = { 403,404,515 };
- Knife Karambit = { 389, 390, 507 };
- int ItemHigh = -1;
- int vhf = 404;
- int glock = 422;
- if (IsIngame != 6 || !bSkinChanger) {
- return;
- std::this_thread::sleep_for(std::chrono::milliseconds(1));
- }
- else {
- DWORD playerbase;
- ReadProcessMemory(hProcess, (LPCVOID)(clientdll + localplayer), &playerbase, sizeof(playerbase), NULL);
- DWORD enginebase;
- ReadProcessMemory(hProcess, (LPCVOID)(enginedll + clientstate), &enginebase, sizeof(enginebase), NULL);
- for (int i = 1; i <= 4; i++) {
- DWORD CurrentWeaponIndex1;
- ReadProcessMemory(hProcess, (LPCVOID)(playerbase + m_hMyWeapons + ((i - 1) * 0x4)), &CurrentWeaponIndex1, sizeof(CurrentWeaponIndex1), NULL);
- if (CurrentWeaponIndex1 == NULL) {
- continue;
- }
- DWORD CurrentWeaponIndex = CurrentWeaponIndex1 & 0xFFF;
- DWORD CurrentWeaponEntity;
- ReadProcessMemory(hProcess, (LPCVOID)(clientdll + EntityListOff + (CurrentWeaponIndex - 1) * 0x10), &CurrentWeaponEntity, sizeof(CurrentWeaponEntity), NULL);
- if (CurrentWeaponEntity == 0) {
- continue;
- }
- int CurrentWeaponId;
- ReadProcessMemory(hProcess, (LPCVOID)(CurrentWeaponEntity + m_iItemDefinitionIndex), &CurrentWeaponId, sizeof(CurrentWeaponId), NULL);
- int WeaponXuid;
- ReadProcessMemory(hProcess, (LPCVOID)(CurrentWeaponEntity + m_OriginalOwnerXuidLow), &WeaponXuid, sizeof(WeaponXuid), NULL);
- int CurrentPaintKit;
- ReadProcessMemory(hProcess, (LPCVOID)(CurrentWeaponEntity + m_nFallbackPaintKit), &CurrentPaintKit, sizeof(CurrentPaintKit), NULL);
- if (CurrentWeaponId == 7 && CurrentPaintKit != FireSerpent.PaintKit) {
- WriteSkins(enginebase, CurrentWeaponEntity, hProcess, FireSerpent, WeaponXuid);
- }
- else if (CurrentWeaponId == 61 && CurrentPaintKit != Orion.PaintKit) {
- WriteSkins(enginebase, CurrentWeaponEntity, hProcess, Orion, WeaponXuid);
- }
- else if (CurrentWeaponId == 4 && CurrentPaintKit != WaterElemental.PaintKit) {
- WriteSkins(enginebase, CurrentWeaponEntity, hProcess, WaterElemental, WeaponXuid);
- }
- else if (CurrentWeaponId == 1 && CurrentPaintKit != GoldenKoi.PaintKit) {
- WriteSkins(enginebase, CurrentWeaponEntity, hProcess, GoldenKoi, WeaponXuid);
- }
- else if (CurrentWeaponId == 40 && CurrentPaintKit != BloodInTheWater.PaintKit) {
- WriteSkins(enginebase, CurrentWeaponEntity, hProcess, BloodInTheWater, WeaponXuid);
- }
- else if (CurrentWeaponId == 9 && CurrentPaintKit != DragonLore.PaintKit) {
- WriteSkins(enginebase, CurrentWeaponEntity, hProcess, DragonLore, WeaponXuid);
- }
- else if (CurrentWeaponId == 16 && CurrentPaintKit != Howl.PaintKit) {
- WriteSkins(enginebase, CurrentWeaponEntity, hProcess, Howl, WeaponXuid);
- }
- else if (CurrentWeaponId == 59 || CurrentWeaponId == 42) {
- DWORD ViewModelEntityIndex1;
- ReadProcessMemory(hProcess, (LPCVOID)(playerbase + m_hViewModel + ((i - 1) * 0x4)), &ViewModelEntityIndex1, sizeof(ViewModelEntityIndex1), NULL);
- DWORD ViewModelEntityIndex = ViewModelEntityIndex1 & 0xFFF;
- DWORD ViewModel;
- ReadProcessMemory(hProcess, (LPCVOID)(clientdll + EntityListOff + (ViewModelEntityIndex - 1) * 0x10), &ViewModel, sizeof(ViewModel), NULL);
- int NormalKnife;
- ReadProcessMemory(hProcess, (LPCVOID)(ViewModel + m_nModelIndex), &NormalKnife, sizeof(NormalKnife), NULL);
- int KarambitModelIndex = NormalKnife + 46;
- int KarambitWorldIndex = NormalKnife + 47;
- int KarambitWorldDroppedIndex = NormalKnife + 48;
- WriteProcessMemory(hProcess, (LPVOID)(ViewModel + m_nModelIndex), &KarambitModelIndex, sizeof(KarambitModelIndex), NULL);
- WriteProcessMemory(hProcess, (LPVOID)(CurrentWeaponEntity + m_iViewModelIndex), &KarambitModelIndex, sizeof(KarambitModelIndex), NULL);
- WriteProcessMemory(hProcess, (LPVOID)(CurrentWeaponEntity + m_iWorldModelIndex), &KarambitWorldIndex, sizeof(KarambitWorldIndex), NULL);
- WriteProcessMemory(hProcess, (LPVOID)(CurrentWeaponEntity + m_iItemDefinitionIndex), &Karambit.iItemDefinitionIndex, sizeof(Karambit.iItemDefinitionIndex), NULL);
- WriteProcessMemory(hProcess, (LPVOID)(CurrentWeaponEntity + m_iWorldDroppedModelIndex), &KarambitWorldDroppedIndex, sizeof(KarambitWorldDroppedIndex), NULL);
- WriteSkins(enginebase, CurrentWeaponEntity, hProcess, MarbleFade, WeaponXuid);
- }
- }
- }
- }
- void KnifeChanger(HANDLE hProcess, DWORD clientdll, DWORD enginedll, int &NormalKnife) {
- Knife Karambit = { 389, 390, 507 };
- DWORD playerbase;
- ReadProcessMemory(hProcess, (LPCVOID)(clientdll + localplayer), &playerbase, sizeof(playerbase), NULL);
- DWORD enginebase;
- ReadProcessMemory(hProcess, (LPCVOID)(enginedll + clientstate), &enginebase, sizeof(enginebase), NULL);
- int Iteam;
- ReadProcessMemory(hProcess, (LPCVOID)(playerbase + 0xF0), &Iteam, sizeof(Iteam), NULL);
- DWORD CurrentWeaponIndex1;
- ReadProcessMemory(hProcess, (LPCVOID)(playerbase + m_hActiveWeapon), &CurrentWeaponIndex1, sizeof(CurrentWeaponIndex1), NULL);
- if (CurrentWeaponIndex1 == NULL) {
- return;
- }
- DWORD CurrentWeaponIndex = CurrentWeaponIndex1 & 0xFFF;
- DWORD CurrentWeaponEntity;
- ReadProcessMemory(hProcess, (LPCVOID)(clientdll + EntityListOff + (CurrentWeaponIndex - 1) * 0x10), &CurrentWeaponEntity, sizeof(CurrentWeaponEntity), NULL);
- if (CurrentWeaponEntity == 0) {
- return;
- }
- int CurrentWeaponId;
- ReadProcessMemory(hProcess, (LPCVOID)(CurrentWeaponEntity + m_iItemDefinitionIndex), &CurrentWeaponId, sizeof(CurrentWeaponId), NULL);
- int WeaponXuid;
- ReadProcessMemory(hProcess, (LPCVOID)(CurrentWeaponEntity + m_OriginalOwnerXuidLow), &WeaponXuid, sizeof(WeaponXuid), NULL);
- int CurrentPaintKit;
- ReadProcessMemory(hProcess, (LPCVOID)(CurrentWeaponEntity + m_nFallbackPaintKit), &CurrentPaintKit, sizeof(CurrentPaintKit), NULL);
- if (CurrentWeaponId == 59 || CurrentWeaponId == 42) {
- DWORD ViewModelEntityIndex1;
- ReadProcessMemory(hProcess, (LPCVOID)(playerbase + m_hViewModel), &ViewModelEntityIndex1, sizeof(ViewModelEntityIndex1), NULL);
- DWORD ViewModelEntityIndex = ViewModelEntityIndex1 & 0xFFF;
- DWORD ViewModel;
- ReadProcessMemory(hProcess, (LPCVOID)(clientdll + EntityListOff + (ViewModelEntityIndex - 1) * 0x10), &ViewModel, sizeof(ViewModel), NULL);
- int NormalKnifeIndex;
- ReadProcessMemory(hProcess, (LPCVOID)(ViewModel + m_nModelIndex), &NormalKnifeIndex, sizeof(NormalKnife), NULL);
- if (NormalKnife == 0) {
- NormalKnife = NormalKnifeIndex;
- }
- int KarambitModelIndex, KarambitWorldIndex, KarambitWorldDroppedIndex;
- if (Iteam == 2) {
- KarambitModelIndex = NormalKnife + 46;
- KarambitWorldIndex = NormalKnife + 47;
- KarambitWorldDroppedIndex = NormalKnife + 48;
- }
- else if (Iteam == 3) {
- KarambitModelIndex = NormalKnife + 345;
- KarambitWorldIndex = NormalKnife + 346;
- KarambitWorldDroppedIndex = NormalKnife + 347;
- }
- int CurrentKnifeModel;
- ReadProcessMemory(hProcess, (LPCVOID)(ViewModel + m_nModelIndex), &CurrentKnifeModel, sizeof(CurrentKnifeModel), NULL);
- if (CurrentKnifeModel == KarambitModelIndex) {
- return;
- }
- int times = 0;
- while (true) {
- ReadProcessMemory(hProcess, (LPCVOID)(ViewModel + m_nModelIndex), &CurrentKnifeModel, sizeof(CurrentKnifeModel), NULL);
- if (CurrentKnifeModel == KarambitModelIndex) {
- return;
- }
- else {
- WriteProcessMemory(hProcess, (LPVOID)(ViewModel + m_nModelIndex), &KarambitModelIndex, sizeof(KarambitModelIndex), NULL);
- WriteProcessMemory(hProcess, (LPVOID)(CurrentWeaponEntity + m_iViewModelIndex), &KarambitModelIndex, sizeof(KarambitModelIndex), NULL);
- WriteProcessMemory(hProcess, (LPVOID)(CurrentWeaponEntity + m_iWorldModelIndex), &KarambitWorldIndex, sizeof(KarambitWorldIndex), NULL);
- WriteProcessMemory(hProcess, (LPVOID)(CurrentWeaponEntity + m_iItemDefinitionIndex), &Karambit.iItemDefinitionIndex, sizeof(Karambit.iItemDefinitionIndex), NULL);
- WriteProcessMemory(hProcess, (LPVOID)(CurrentWeaponEntity + m_iWorldDroppedModelIndex), &KarambitWorldDroppedIndex, sizeof(KarambitWorldDroppedIndex), NULL);
- }
- }
- }
- }
- void ForceUpdate(HANDLE hProcess, DWORD enginedll) {
- int ItemHigh = -1;
- DWORD enginebase;
- ReadProcessMemory(hProcess, (LPCVOID)(enginedll + clientstate), &enginebase, sizeof(enginebase), NULL);
- WriteProcessMemory(hProcess, (LPVOID)(enginebase + ForceUpdateOff), &ItemHigh, sizeof(ItemHigh), NULL);
- }
- void KnifeSkinChanger(HANDLE hProcess, DWORD clientdll, DWORD enginedll) {
- int NormalKnife = 0;
- while (true) {
- SkinChanger ( hProcess, clientdll, enginedll);
- KnifeChanger( hProcess, clientdll, enginedll, NormalKnife);
- std::this_thread::sleep_for(std::chrono::milliseconds(1));
- }
- }
- void GlowESP(DWORD clientdll, HANDLE hProcess) {
- while (true) {
- if (!bEsp || IsIngame != 6) {
- std::this_thread::sleep_for(std::chrono::milliseconds(5));
- continue;
- }
- else {
- DWORD GlowPointer;
- DWORD playerbase;
- ReadProcessMemory(hProcess, (LPCVOID)(clientdll + glowobject), &GlowPointer, sizeof(GlowPointer), NULL);
- ReadProcessMemory(hProcess, (LPCVOID)(clientdll + localplayer), &playerbase, sizeof(playerbase), NULL);
- if (GlowPointer == NULL || playerbase == NULL) {
- return;
- }
- int Iteam;
- ReadProcessMemory(hProcess, (LPCVOID)(playerbase + 0xF0), &Iteam, sizeof(Iteam), NULL);
- for (int i = 0; i <= 64; i++) {
- DWORD entity;
- bool dormant;
- ReadProcessMemory(hProcess, (LPCVOID)(clientdll + EntityListOff + (i * 0x10)), &entity, sizeof(entity), NULL);
- ReadProcessMemory(hProcess, (LPCVOID)(entity + 0xE9), &dormant, sizeof(dormant), NULL);
- if (!dormant) {
- DWORD Glowindex;
- ReadProcessMemory(hProcess, (LPCVOID)(entity + GlowIndexOff), &Glowindex, sizeof(Glowindex), NULL);
- int Eteam;
- ReadProcessMemory(hProcess, (LPCVOID)(entity + 0xF0), &Eteam, sizeof(Eteam), NULL);
- // ReadProcessMemory(hProcess, (LPCVOID)(GlowPointer + (Glowindex * 0x38)), &GlowStructA, sizeof(GlowStruct), NULL);
- bool playerspotted;
- ReadProcessMemory(hProcess, (LPCVOID)(entity + spotted), &playerspotted, sizeof(playerspotted), NULL);
- if (Glowindex == NULL) {
- continue;
- }
- // WriteProcessMemory(hProcess, (LPVOID)(GlowPointer + (Glowindex * 0x38)), &GlowStructA, sizeof(GlowStruct), NULL);
- if (Eteam != Iteam && playerspotted == true) {
- RGBAA.r = 1.f;
- RGBAA.g = 0.15686274509803921568627450980392f;
- RGBAA.b = 0.73333333333333333333333333333333f;
- RGBAA.a = 0.7f;
- RenderWhenA.rwo = true;
- RenderWhenA.rwuo = false;
- WriteProcessMemory(hProcess, (LPVOID)(GlowPointer + (Glowindex * 0x38) + 0x4), &RGBAA, sizeof(RGBA), NULL);
- WriteProcessMemory(hProcess, (LPVOID)(GlowPointer + (Glowindex * 0x38) + 0x24), &RenderWhenA, sizeof(RenderWhen), NULL);
- }
- else if (Eteam != Iteam && playerspotted == false) {
- RGBAA.r = 1.f;
- RGBAA.g = 0.15686274509803921568627450980392f;
- RGBAA.b = 0.73333333333333333333333333333333f;
- RGBAA.a = 1.f;
- RenderWhenA.rwo = true;
- RenderWhenA.rwuo = false;
- WriteProcessMemory(hProcess, (LPVOID)(GlowPointer + (Glowindex * 0x38) + 0x4), &RGBAA, sizeof(RGBA), NULL);
- WriteProcessMemory(hProcess, (LPVOID)(GlowPointer + (Glowindex * 0x38) + 0x24), &RenderWhenA, sizeof(RenderWhen), NULL);
- }
- else if (Eteam == Iteam && playerspotted == true) {
- RGBAA.r = 0.f;
- RGBAA.g = 0.76862745098039215686274509803922f;
- RGBAA.b = 0.88627450980392156862745098039216f;
- RGBAA.a = 0.7f;
- RenderWhenA.rwo = true;
- RenderWhenA.rwuo = false;
- WriteProcessMemory(hProcess, (LPVOID)(GlowPointer + (Glowindex * 0x38) + 0x4), &RGBAA, sizeof(RGBA), NULL);
- WriteProcessMemory(hProcess, (LPVOID)(GlowPointer + (Glowindex * 0x38) + 0x24), &RenderWhenA, sizeof(RenderWhen), NULL);
- }
- else if (Eteam == Iteam && playerspotted == false) {
- RGBAA.r = 0.f;
- RGBAA.g = 0.76862745098039215686274509803922f;
- RGBAA.b = 0.88627450980392156862745098039216f;
- RGBAA.a = 1.f;
- RenderWhenA.rwo = true;
- RenderWhenA.rwuo = false;
- WriteProcessMemory(hProcess, (LPVOID)(GlowPointer + (Glowindex * 0x38) + 0x4), &RGBAA, sizeof(RGBA), NULL);
- WriteProcessMemory(hProcess, (LPVOID)(GlowPointer + (Glowindex * 0x38) + 0x24), &RenderWhenA, sizeof(RenderWhen), NULL);
- }
- }
- }
- }
- std::this_thread::sleep_for(std::chrono::milliseconds(1));
- }
- }
- void NoFlash(HANDLE hProcess, DWORD clientdll ) {
- while (true) {
- if (!bNoflash || IsIngame != 6) {
- std::this_thread::sleep_for(std::chrono::milliseconds(5));
- continue;
- }
- else {
- DWORD playerbase;
- ReadProcessMemory(hProcess, (LPCVOID)(clientdll + localplayer), &playerbase, sizeof(playerbase), NULL);
- if (playerbase == NULL) {
- std::this_thread::sleep_for(std::chrono::milliseconds(1));
- continue;
- }
- float AmountFlashed;
- float WPMFlash = 0.f;
- ReadProcessMemory(hProcess, (LPCVOID)(playerbase + FlashedOff), &AmountFlashed, sizeof(playerbase), NULL);
- if (AmountFlashed > 0.f) {
- WriteProcessMemory(hProcess, (LPVOID)(playerbase + FlashedOff), &WPMFlash, sizeof(WPMFlash), NULL);
- }
- }
- std::this_thread::sleep_for(std::chrono::milliseconds(1));
- }
- }
- void Bhop(HANDLE hProcess, HWND hWnd, DWORD clientdll) {
- DWORD playerbase;
- ReadProcessMemory(hProcess, (LPCVOID)(clientdll + localplayer), &playerbase, sizeof(playerbase), NULL); //localplayer
- if (playerbase == NULL) {
- std::this_thread::sleep_for(std::chrono::milliseconds(1));
- return;
- }
- int flags;
- ReadProcessMemory(hProcess, (LPCVOID)(playerbase + 0x100), &flags, sizeof(flags), NULL);
- if (flags & 0x1 == 1) {
- SendMessage(hWnd, WM_KEYDOWN, spacebar, 0x390000);
- Sleep(40);
- SendMessage(hWnd, WM_KEYUP, spacebar, 0x390000);
- Sleep(40);
- }
- }
- void TriggerBhop (HANDLE hProcess, HWND hWnd, DWORD clientdll) {
- while (true) {
- if (GetAsyncKeyState(TriggerBind) & pressed && bTrigger == true) {
- Trigger(hWnd, clientdll, hProcess);
- }
- else if (GetAsyncKeyState(BhopBind) & pressed && bBhop == true) {
- Bhop(hProcess, hWnd, clientdll);
- }
- std::this_thread::sleep_for(std::chrono::milliseconds(1));
- }
- }
- Vector SubtractVector(Vector a, Vector b) { // a = target head || b = my head
- Vector c;
- c.x = a.x - b.x;
- c.y = a.y - b.y;
- c.z = a.z - b.z;
- return c;
- }
- Vector AddVector(Vector a, Vector b) {
- Vector c;
- c.x = a.x + b.x;
- c.y = a.y + b.y;
- c.z = a.z + b.z;
- return c;
- }
- Vector CalcEnemyHead(HANDLE hProcess, DWORD clientdll, DWORD entity, int bone ) {
- DWORD bonematrix;
- ReadProcessMemory(hProcess, (LPCVOID)(entity + BoneMatrixOff), &bonematrix, sizeof(bonematrix), NULL);
- if (bonematrix == NULL) {
- return{ 0,0,0 };
- }
- Vector EnemyHead;
- ReadProcessMemory(hProcess, (LPCVOID)(bonematrix + 0x30 * bone + 0x0C), &EnemyHead.x, sizeof(EnemyHead.x), NULL);
- ReadProcessMemory(hProcess, (LPCVOID)(bonematrix + 0x30 * bone + 0x1C), &EnemyHead.y, sizeof(EnemyHead.y), NULL);
- ReadProcessMemory(hProcess, (LPCVOID)(bonematrix + 0x30 * bone + 0x2C), &EnemyHead.z, sizeof(EnemyHead.z), NULL);
- return EnemyHead;
- }
- Vector CalcLocalPos(HANDLE hProcess, DWORD playerbase) {
- Vector Origin;
- Vector ViewVector;
- Vector LocalHeadPos;
- ReadProcessMemory(hProcess, (LPCVOID)(playerbase + 0x134), &Origin, sizeof(Origin), NULL);
- ReadProcessMemory(hProcess, (LPCVOID)(playerbase + 0x104), &ViewVector, sizeof(ViewVector), NULL);
- LocalHeadPos = AddVector(Origin, ViewVector);
- return LocalHeadPos;
- }
- void CalcAngle(Vector& src, Vector& dst, Vector &vAngle) // LocalEyePos and EnemyHeadPos
- {
- double delta[3] = { (src.x - dst.x), (src.y - dst.y), (src.z - dst.z) };
- double hyp = sqrt(pow(delta[0],2 ) + pow(delta[1],2));
- float angles[3];
- angles[0] = (float)(atan(delta[2] / hyp) * 57.295779513082); //pitch (Verticaal)
- angles[1] = (float)(atanf(delta[1] / delta[0]) * 57.295779513082f); //yaw (Horizontaal)
- angles[2] = 0.0f;
- if (delta[0] >= 0.0)
- {
- angles[1] += 180.0f;
- }
- if (angles[0] != angles[0]) {
- angles[0] = 0.f;
- }
- if (angles[1] != angles[1]) {
- angles[1] = 0.f;
- }
- if (angles[2] != angles[2]) {
- angles[2] = 0.f;
- }
- vAngle.x = angles[0]; //Verticaal (Pitch)
- vAngle.y = angles[1]; //Horizontaal (Yaw)
- vAngle.z = angles[2];
- }
- Vector ClampAngles(Vector AngleToNormalize)
- {
- Vector vec = AngleToNormalize;
- if (vec.x > 89.0f && vec.x <= 180.0f)
- {
- vec.x = 89.0f;
- }
- while (vec.x > 180.f)
- {
- vec.x -= 360.f;
- }
- while (vec.x < -89.0f)
- {
- vec.x = -89.0f;
- }
- while (vec.y > 180.f)
- {
- vec.y -= 360.f;
- }
- while (vec.y < -180.f)
- {
- vec.y += 360.f;
- }
- return vec;
- }
- VectorYX CurrentAngles(HANDLE hProcess, DWORD enginebase) {
- VectorYX Viewangles;
- ReadProcessMemory(hProcess, (LPCVOID)(enginebase + ViewAnglesOff), &Viewangles, sizeof(Viewangles), NULL);
- return Viewangles; //Omhoog en Horizontaal
- }
- float Fov(Vector Angle, VectorYX PlayerAngle)
- {
- return sqrt(pow(Angle.x - PlayerAngle.x, 2) + pow(Angle.y - PlayerAngle.y,2));
- }
- /*void SmoothAngle(float* curAngles, float* aimbotAngle, double Smooth)
- {
- aimbotAngle[0] = (((aimbotAngle[0] - curAngles[0]) * Smooth) + curAngles[0]);
- aimbotAngle[1] = (((aimbotAngle[1] - curAngles[1]) * Smooth) + curAngles[1]);
- ClampAngle(aimbotAngle);
- }
- */
- void Aimbot(HANDLE hProcess, DWORD clientdll, DWORD enginedll) {
- while (true) {
- if (!bAimbot || IsIngame != 6) {
- std::this_thread::sleep_for(std::chrono::milliseconds(5));
- continue;
- }
- else {
- int bone = 8;
- DWORD enginebase;
- ReadProcessMemory(hProcess, (LPCVOID)(enginedll + clientstate), &enginebase, sizeof(enginebase), NULL);
- DWORD playerbase;
- ReadProcessMemory(hProcess, (LPCVOID)(clientdll + localplayer), &playerbase, sizeof(playerbase), NULL);
- int LocalTeam;
- ReadProcessMemory(hProcess, (LPCVOID)(playerbase + 0xF0), &LocalTeam, sizeof(LocalTeam), NULL);
- for (int i = 0; i <= 64; i++) {
- DWORD entity;
- ReadProcessMemory(hProcess, (LPCVOID)(clientdll + EntityListOff + (i * 0x10)), &entity, sizeof(entity), NULL);
- if (entity == NULL) {
- continue;
- }
- bool dormant;
- ReadProcessMemory(hProcess, (LPCVOID)(entity + 0xE9), &dormant, sizeof(dormant), NULL);
- if (dormant) {
- continue;
- }
- int EHealth;
- ReadProcessMemory(hProcess, (LPCVOID)(entity + 0xFC), &EHealth, sizeof(EHealth), NULL);
- if (EHealth < 1) {
- continue;
- }
- int EntityTeam;
- ReadProcessMemory(hProcess, (LPCVOID)(entity + 0xF0), &EntityTeam, sizeof(EntityTeam), NULL);
- if (EntityTeam == LocalTeam) {
- continue;
- }
- /* bool playerspotted;
- ReadProcessMemory(hProcess, (LPCVOID)(entity + spotted), &playerspotted, sizeof(playerspotted), NULL);
- if (!playerspotted) {
- continue;
- } */
- Vector LocalHeadPos = CalcLocalPos(hProcess, playerbase); //Eye Position
- Vector EnemyBonePos = CalcEnemyHead(hProcess, clientdll, entity, bone); // Pos of enemy Bone
- if (EnemyBonePos.x == NULL && EnemyBonePos.y == NULL && EnemyBonePos.z == NULL) {
- continue;
- }
- Vector Angle; //Yaw (Verticaal), Pitch(Horizontaal)
- CalcAngle(LocalHeadPos, EnemyBonePos, Angle); //Angle needed to aim at the enemy
- Vector AngleClamped = ClampAngles(Angle);
- VectorYX CurrentViewAngle = CurrentAngles(hProcess, enginebase); //ViewAngles {Pitch, Yaw}
- float FOV = Fov(AngleClamped, CurrentViewAngle);
- if (GetAsyncKeyState(AimbotBind) & pressed && FOV < MAXFOV) {
- WriteProcessMemory(hProcess, (LPVOID)(enginebase + ViewAnglesOff), &AngleClamped, sizeof(AngleClamped), NULL);
- }
- }
- }
- std::this_thread::sleep_for(std::chrono::milliseconds(1));
- }
- }
- void RCS(HANDLE hProcess, DWORD clientdll, DWORD enginedll) {
- Vector OldVecPunch;
- while (true) {
- if (!bRCS || IsIngame != 6) {
- std::this_thread::sleep_for(std::chrono::milliseconds(5));
- continue;
- }
- else {
- DWORD playerbase;
- int shotsfired;
- ReadProcessMemory(hProcess, (LPCVOID)(clientdll + localplayer), &playerbase, sizeof(playerbase), NULL);
- if (playerbase == NULL) {
- std::this_thread::sleep_for(std::chrono::milliseconds(1));
- continue;
- }
- DWORD enginebase;
- ReadProcessMemory(hProcess, (LPCVOID)(enginedll + clientstate), &enginebase, sizeof(enginebase), NULL);
- Vector VecPunch;
- ReadProcessMemory(hProcess, (LPCVOID)(playerbase + VecPunchOff), &VecPunch, sizeof(VecPunch), NULL);
- VecPunch.x *= 2.0f;
- VecPunch.y *= 2.0f;
- VecPunch.z *= 2.0f;
- int Attacking;
- ReadProcessMemory(hProcess, (LPCVOID)(clientdll + AttackingOff), &Attacking, sizeof(Attacking), NULL);
- if (Attacking == 5) {
- Vector CurrentAngles;
- ReadProcessMemory(hProcess, (LPCVOID)(enginebase + ViewAnglesOff), &CurrentAngles, sizeof(CurrentAngles), NULL);
- Vector modify = VecPunch;
- modify.x -= OldVecPunch.x;
- modify.y -= OldVecPunch.y;
- CurrentAngles.x -= modify.x;
- CurrentAngles.y -= modify.y;
- WriteProcessMemory(hProcess, (LPVOID)(enginebase + ViewAnglesOff), &CurrentAngles, sizeof(CurrentAngles), NULL);
- }
- OldVecPunch = VecPunch;
- }
- std::this_thread::sleep_for(std::chrono::milliseconds(1));
- }
- }
- void NoHands(HANDLE hProcess, DWORD clientdll) {
- DWORD playerbase;
- ReadProcessMemory(hProcess, (LPCVOID)(clientdll + localplayer), &playerbase, sizeof(playerbase), NULL);
- WriteProcessMemory(hProcess, (LPVOID)(playerbase + NoHandsOff), &nohands, sizeof(nohands), NULL);
- }
- void text() {
- system("CLS");
- cout << "\t You're using Project HeadStrong, made by : Sebastian \n";
- cout << "\t Skype: pipodeclown86@hotmail.com" << endl << endl;
- if (IsIngame == 6) {
- cout << "Glow ";
- if (!bEsp) {
- cout << "(Off)";
- }
- else if (bEsp) {
- cout << "(On)";
- }
- cout << "(Num1)" << endl;
- cout << "Trigger ";
- if (!bTrigger) {
- cout << "(Off)";
- }
- else if (bTrigger) {
- cout << "(On)";
- }
- cout << "(Num2)" << endl;
- cout << "Bhop ";
- if (!bBhop) {
- cout << "(Off)";
- }
- else if (bBhop) {
- cout << "(On)";
- }
- cout << "(Num3)" << endl;
- cout << "NoFlash ";
- if (!bNoflash) {
- cout << "(Off)";
- }
- else if (bNoflash) {
- cout << "(On)";
- }
- cout << "(Num4)" << endl;
- cout << "RCS";
- if (!bRCS) {
- cout << "(Off)";
- }
- else if (bRCS) {
- cout << "(On)";
- }
- cout << "(Num5)" << endl;
- cout << "Aimbot";
- if (!bAimbot) {
- cout << "(Off)";
- }
- else if (bAimbot) {
- cout << "(On)";
- }
- cout << "(Num6)" << endl;
- cout << "SkinChanger ";
- if (!bSkinChanger) {
- cout << "(Off)";
- }
- else if (bSkinChanger) {
- cout << "(On)";
- }
- cout << "(Num7)" << endl;
- cout << "NoHands (Num8)" << endl;
- }
- else {
- cout << "\t Not In-Game" << endl;
- }
- }
- void keys(HANDLE hProcess, DWORD clientdll, DWORD enginedll) {
- while (true) {
- if (GetAsyncKeyState(Num1) & pressed) {
- bEsp = !bEsp;
- text();
- std::this_thread::sleep_for(std::chrono::milliseconds(100));
- }
- else if (GetAsyncKeyState(Num2) & pressed) {
- bTrigger = !bTrigger;
- text();
- std::this_thread::sleep_for(std::chrono::milliseconds(100));
- }
- else if (GetAsyncKeyState(Num3) & pressed) {
- bBhop = !bBhop;
- text();
- std::this_thread::sleep_for(std::chrono::milliseconds(100));
- }
- else if (GetAsyncKeyState(Num4) & pressed) {
- bNoflash = !bNoflash;
- text();
- std::this_thread::sleep_for(std::chrono::milliseconds(100));
- }
- else if (GetAsyncKeyState(Num5) & pressed) {
- bRCS = !bRCS;
- text();
- std::this_thread::sleep_for(std::chrono::milliseconds(100));
- }
- else if (GetAsyncKeyState(Num6) & pressed) {
- bAimbot = !bAimbot;
- text();
- std::this_thread::sleep_for(std::chrono::milliseconds(100));
- }
- /* else if (GetAsyncKeyState(Num8) & pressed) {
- NoHands(hProcess, clientdll);
- std::this_thread::sleep_for(std::chrono::milliseconds(100));
- }
- else if (GetAsyncKeyState(Num9) & pressed) {
- // ForceUpdate(hProcess, enginedll);
- std::this_thread::sleep_for(std::chrono::milliseconds(100));
- }
- else if (GetAsyncKeyState(Num7) & pressed) {
- bSkinChanger = !bSkinChanger;
- text();
- std::this_thread::sleep_for(std::chrono::milliseconds(100));
- }*/
- std::this_thread::sleep_for(std::chrono::milliseconds(5));
- }
- }
- void InGame(HANDLE hProcess, DWORD enginedll) {
- while (true) {
- DWORD Enginebase;
- int x;
- x = IsIngame;
- ReadProcessMemory(hProcess, (LPCVOID)(enginedll + clientstate), &Enginebase, sizeof(Enginebase), NULL);
- if (Enginebase == NULL) {
- std::this_thread::sleep_for(std::chrono::milliseconds(1));
- continue;
- }
- ReadProcessMemory(hProcess, (LPCVOID)(Enginebase + 0x100), &IsIngame, sizeof(IsIngame), NULL);
- if (x != IsIngame) {
- text();
- }
- std::this_thread::sleep_for(std::chrono::milliseconds(5000));
- }
- }
- int main() {
- SetConsoleTitle("Project HeadStrong");
- /* cout << "\t You're using Project HeadStrong, made by : Sebastian \n";
- cout << "Skype: pipodeclown86@hotmail.com" << endl << endl;
- cout << "Features: " << endl;
- cout << "Glow" << endl << "NoFlash" << endl << "Bhop (Insert key) " << endl << "Trigger(Insert key)" << endl; */
- cout << "Press key for Bhop: " << endl;
- BhopBind = KeyPressed();
- cout << "Key Found" << endl;
- cout << "Press key for Triggerbot: " << endl;
- TriggerBind = KeyPressed();
- cout << "Key Found" << endl;
- cout << "Press key for Aimbot: " << endl;
- AimbotBind = KeyPressed();
- cout << "Key Found" << endl;
- Sleep(500);
- HWND hWnd;
- hWnd = FindWindow(0, "Counter-Strike: Global Offensive");
- DWORD pID;
- while (!hWnd)
- {
- cout << "Open CS:GO";
- Sleep(5000);
- hWnd = FindWindow(0, "Counter-Strike: Global Offensive");
- }
- GetWindowThreadProcessId(hWnd, &pID);
- HANDLE hProcess = OpenProcess(PROCESS_ALL_ACCESS, FALSE, pID);
- if (!hProcess)
- {
- cout << "Can't open process";
- }
- DWORD clientdll = GetModuleBaseExtern(pID, "client.dll");
- DWORD enginedll = GetModuleBaseExtern(pID, "engine.dll");
- thread THKeys(keys, std::ref(hProcess), std::ref(clientdll), std::ref(enginedll));
- thread THNoFlash(NoFlash, std::ref(hProcess), std::ref(clientdll));
- thread THTriggerBhop(TriggerBhop, std::ref(hProcess), std::ref(hWnd), std::ref(clientdll));
- thread THGlow(GlowESP, std::ref(clientdll), std::ref(hProcess));
- thread THInGame(InGame, std::ref(hProcess), std::ref(enginedll));
- thread THRCS(RCS, std::ref(hProcess), std::ref(clientdll), std::ref(enginedll));
- thread THAimbot(Aimbot, std::ref(hProcess), std::ref(clientdll), std::ref(enginedll));
- // thread THKnifeSkinchanger(KnifeSkinChanger, std::ref(hProcess), std::ref(clientdll), std::ref(enginedll));
- while (true) {
- Sleep(100000);
- }
- }
- // WPM(handle, (LPVOID)((uintptr_t)manager.DataPtr + (i * sizeof(GlowObjectDefinition)) + 4), (LPCVOID)((uintptr_t)glowobjects + (i * sizeof(GlowObjectDefinition)) + 4), sizeof(GlowObjectDefinition) - 4 - 18, (SIZE_T*)&bytesRead);
- // WriteProcessMemory(hProcess, (LPVOID)(GlowPointer + (Glowindex * 0x38)), &GlowStructA, sizeof(GlowStruct), NULL);
- // auto size = (i * sizeof(GlowStruct) - (sizeof(GlowStruct) - IDebugSymbols::GetFieldOffset(GlowStructA.a)));
- // auto size = i * sizeof( struct ) - ( sizeof( struct ) - GetFieldOffset( glow_alpha ) )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement