Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <Windows.h>
- #include <iostream>
- #include <TlHelp32.h>
- #include <fstream>
- #include <stdio.h>
- #include "MemoryManagment.h"
- #include <string>
- #include <thread>
- using namespace std;
- void SetColour(int ForgC);
- void Navigation();
- void Switch(int index);
- void UpdateMenu();
- const int IGLOW = 3;
- const int IBHOP = 2;
- const int IRADAR = 1;
- const int ISKIN = 0;
- int Smoothness = 1;
- int M_Index = 0;
- int Changes = 0;
- int LR = 0;
- bool glow = false;
- bool bhop = false;
- bool radar = false;
- bool skinchanger = false;
- bool updated = false;
- DWORD pid, clientdll, enginedll;
- HANDLE csgo_h;
- namespace Offsets
- {
- DWORD localplayer = 0xAAFC3C;
- DWORD entitylist = 0x4A8D05C;
- DWORD flags = 0x100;
- DWORD crosshairid = 0xB294;
- DWORD health = 0xFC;
- DWORD forceattack = 0x2ECF3DC;
- DWORD forcejump = 0x4F23F08;
- DWORD teamnum = 0xF0;
- DWORD dormant = 0xE9;
- DWORD isdefusing = 0x3884;
- DWORD glowobject = 0x4FA9AA8;
- DWORD clientstate = 0x5A5344;
- DWORD glowobjectsize = glowobject + 0xC;
- DWORD bspottedbymask = 0x97C;
- DWORD viewangles = 0x4D10;
- DWORD punchangles = 0x301C;
- DWORD shotsfired = 0xA2A0;
- DWORD clrrender = 0x70;
- }
- namespace sc
- {
- bool once = false;
- DWORD activewapon = 0x2EE8;
- DWORD fallbackpaintkit = 0x3170;
- DWORD fallbackseed = 0x3174;
- DWORD fallbackwear = 0x3178;
- DWORD fallbackstatrak = 0x317C;
- DWORD itemdefinitionindex = 0x2F88;
- DWORD entityquality = 0x2F8C;
- DWORD myweapons = 0x2DE8;
- DWORD entitylevel = 0x2F90;
- DWORD attributemanager = 0x2D70;
- DWORD itemidhigh = 0x2FA0;
- DWORD item = 0x2DB0;
- DWORD itemidlow = 0x2FA4;
- DWORD ownerhigh = 0x316C;
- DWORD accountid = 0x2FA8;
- DWORD customname = 0x301C;
- DWORD account = 0xA9F8;
- DWORD weaponidoff = 0x0030;
- DWORD originalownerxuidlow = 0x3168;
- }
- void getProcess(char* Process)
- {
- PROCESSENTRY32 EntryP;
- EntryP.dwSize = sizeof(PROCESSENTRY32);
- HANDLE sProc = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0);
- if (Process32First(sProc, &EntryP)) // retrieve the information about the first process with Process32First
- {
- do
- {
- if (!strcmp(EntryP.szExeFile, Process))
- {
- pid = EntryP.th32ProcessID;
- csgo_h = OpenProcess(PROCESS_ALL_ACCESS, false, pid);
- break;
- }
- } while (Process32Next(sProc, &EntryP)); // keep retrieving information about the next process as long as Process32Next returns a TRUE
- }
- if (sProc != INVALID_HANDLE_VALUE)
- CloseHandle(sProc);
- }
- DWORD getModule(LPCSTR Module)
- {
- MODULEENTRY32 EntryM;
- EntryM.dwSize = sizeof(MODULEENTRY32);
- DWORD dwRetn = NULL;
- HANDLE hMod = CreateToolhelp32Snapshot(TH32CS_SNAPMODULE, pid);
- if (Module32First(hMod, &EntryM))
- {
- do
- {
- if (!strcmp(EntryM.szModule, Module))
- {
- dwRetn = (DWORD)EntryM.modBaseAddr;
- break;
- }
- } while (Module32Next(hMod, &EntryM));
- }
- if (hMod != INVALID_HANDLE_VALUE)
- CloseHandle(hMod);
- return dwRetn;
- }
- enum CSGO_Weapon_ID
- {
- weapon_none,
- weapon_deagle,
- weapon_elite,
- weapon_fiveseven,
- weapon_glock,
- weapon_p228,
- weapon_usp,
- weapon_ak47,
- weapon_aug,
- weapon_awp,
- weapon_famas,
- weapon_g3sg1,
- weapon_galil,
- weapon_galilar,
- weapon_m249,
- weapon_m3,
- weapon_m4a1,
- weapon_mac10,
- weapon_mp5navy,
- weapon_p90,
- weapon_scout,
- weapon_sg550,
- weapon_sg552,
- weapon_tmp,
- weapon_ump45,
- weapon_xm1014,
- weapon_bizon,
- weapon_mag7,
- weapon_negev,
- weapon_sawedoff,
- weapon_tec9,
- weapon_taser,
- weapon_hkp2000,
- weapon_mp7,
- weapon_mp9,
- weapon_nova,
- weapon_p250,
- weapon_scar17,
- weapon_scar20,
- weapon_sg556,
- weapon_ssg08,
- weapon_knifegg,
- weapon_knife,
- weapon_flashbang,
- weapon_hegrenade,
- weapon_smokegrenade,
- weapon_molotov,
- weapon_decoy,
- weapon_incgrenade,
- weapon_c4
- };
- struct glowColor
- {
- glowColor(float _r, float _g, float _b, float _a)
- {
- r = _r; g = _g; b = _b; a = _a;
- }
- float r, g, b, a;
- };
- struct glowColorSets
- {
- glowColorSets(bool _a1, bool _a2, bool _a3)
- {
- a1 = _a1; a2 = _a2; a3 = _a3;
- }
- bool a1, a2, a3;
- };
- struct setChams
- {
- setChams(int _r, int _g, int _b, int _a)
- {
- r = _r; g = _g; b = _b; a = _a;
- }
- int r, g, b, a;
- };
- struct Vector
- {
- float x;
- float y;
- float z;
- };
- Vector nAngle(Vector angle)
- {
- if (angle.x > 89.0f && angle.x <= 180.0f)
- {
- angle.x = 89.0f;
- }
- while (angle.x > 180.f)
- {
- angle.x -= 360.f;
- }
- while (angle.x < -89.0f)
- {
- angle.x = -89.0f;
- }
- while (angle.y > 180.f)
- {
- angle.y -= 360.f;
- }
- while (angle.y < -180.f)
- {
- angle.y += 360.f;
- }
- angle.z = 0;
- return angle;
- }
- DWORD localplayerBase()
- {
- DWORD lcbase;
- ReadProcessMemory(csgo_h, (LPVOID)(clientdll + Offsets::localplayer), &lcbase, sizeof(lcbase), 0);
- return lcbase;
- }
- DWORD engineBase()
- {
- DWORD enginebase;
- ReadProcessMemory(csgo_h, (LPVOID)(enginedll + Offsets::clientstate), &enginebase, sizeof(enginebase), 0);
- return enginebase;
- }
- void changevAngle(Vector angle)
- {
- if (angle.x >= -89 && angle.x <= 89 && angle.y >= -180 && angle.y <= 180)
- {
- WriteProcessMemory(csgo_h, (LPVOID)(engineBase() + Offsets::viewangles), &angle, sizeof(angle), 0);
- }
- }
- void forceUpdate()
- {
- int value = -1;
- WriteProcessMemory(csgo_h, (LPVOID)(engineBase() + /*m_nDeltaTick*/ 0x174), &value, sizeof(value), 0);
- }
- DWORD getWeapon(int i)
- {
- DWORD lcbase;
- ReadProcessMemory(csgo_h, (LPVOID)(clientdll + Offsets::localplayer), &lcbase, sizeof(lcbase), 0);
- if (lcbase)
- {
- DWORD wIndex;
- ReadProcessMemory(csgo_h, (LPVOID)(lcbase + sc::myweapons + ((i - 1) * 0x4)), &wIndex, sizeof(wIndex), 0);
- wIndex &= 0xFFFF;
- DWORD wEntity;
- ReadProcessMemory(csgo_h, (LPVOID)(clientdll + Offsets::entitylist + (wIndex - 1) * 0x10), &wEntity, sizeof(wEntity), 0);
- int result;
- ReadProcessMemory(csgo_h, (LPVOID)(wEntity + sc::itemdefinitionindex), &result, sizeof(result), 0);
- return result;
- }
- }
- void printLoading()
- {
- MemoryManagment Mem("csgo.exe");
- cout << "> Waiting for csgo!" << endl;
- while (!Mem.Initialize()) {
- Sleep(300);
- }
- cout << "> Updating offsets..." << endl;
- Sleep(1300);
- cout << "> Enjoy game!" << endl;
- Sleep(600);
- }
- string bools[2] = { "[OFF]|", "[ON] |" };
- void SetColour(int ForgC) // got online
- {
- WORD wColor;
- HANDLE hStdOut = GetStdHandle(STD_OUTPUT_HANDLE);
- CONSOLE_SCREEN_BUFFER_INFO csbi;
- //We use csbi for the wAttributes word.
- if (GetConsoleScreenBufferInfo(hStdOut, &csbi))
- {
- //Mask out all but the background attribute, and add in the forgournd color
- wColor = (csbi.wAttributes & 0xF0) + (ForgC & 0x0F);
- SetConsoleTextAttribute(hStdOut, wColor);
- }
- return;
- }
- void Navigation()
- {
- /*for (;;)*/
- //{
- for (int i = 2; i < 180; i++)
- {
- if (GetAsyncKeyState(i) & 0x8000)
- {
- switch (i)
- {
- case 38: // UP ARROW
- if (M_Index < 4)
- M_Index++;
- Changes++;
- updated = true;
- break;
- case 40: // DOWN ARROW
- if (M_Index > 0)
- M_Index--;
- Changes++;
- updated = true;
- break;
- case 37: // LEFT ARROW
- Switch(M_Index);
- Changes--;
- LR++;
- updated = true;
- break;
- case 39: // RIGHT ARROW
- Switch(M_Index);
- Changes++;
- LR++;
- updated = true;
- break;
- }
- Sleep(100);
- }
- }
- }
- void Switch(int index)
- {
- if (index == IGLOW)
- {
- glow = !glow;
- }
- if (index == IBHOP)
- {
- bhop = !bhop;
- }
- if (index == IRADAR)
- {
- radar = !radar;
- }
- if (index == ISKIN)
- {
- skinchanger = !skinchanger;
- }
- }
- void UpdateMenu()
- {
- int temp = -1;
- /*for (;;)*/
- //{
- if (temp != Changes)
- {
- temp = Changes;
- system("CLS");
- SetColour(15);
- cout << " >> XYUHACK <<" << endl;
- if (M_Index == IGLOW)
- {
- SetColour(14);
- cout << " ----------Ba3e1uH---------" << endl;
- cout << "| Glow " << bools[glow] << endl;
- glow = !glow;
- }
- else
- {
- SetColour(15);
- cout << " ------------By------------" << endl;
- cout << "| Glow " << bools[glow] << endl;
- glow = !glow;
- }
- //--------------
- if (M_Index == IBHOP)
- {
- SetColour(14);
- cout << "| Bhop " << bools[bhop] << endl;
- }
- else
- {
- SetColour(15);
- cout << "| Bhop " << bools[bhop] << endl;
- }
- //--------------
- if (M_Index == IRADAR)
- {
- SetColour(14);
- cout << "| Radar " << bools[radar] << endl;
- }
- else
- {
- SetColour(15);
- cout << "| Radar " << bools[radar] << endl;
- }
- //--------------
- if (M_Index == ISKIN)
- {
- SetColour(14);
- cout << "| Skin Changer " << bools[skinchanger] << endl;
- cout << " -------Special-For--------" << endl;
- }
- else
- {
- SetColour(15);
- cout << "| Skin Changer " << bools[skinchanger] << endl;
- cout << " -------Prime-Coding-------" << endl;
- }
- }
- //}
- }
- //void printMenu()
- //{
- //
- // cout << " XYUHACK" << endl;
- // cout << " ------------------" << endl;
- // cout << "| [F1] Glow ESP |" << endl;
- // cout << "| [F2] Bunnyhop |" << endl;
- // cout << "| [F3] Radar Hack |" << endl;
- // cout << "| [F4] Skin Changer|" << endl;
- // cout << " ------------------" << endl;
- // cout << " </>Prime Coding\n" << endl;
- // cout << " [LOG]\n" << endl;
- //}
- void doLoop()
- {
- DWORD glow_dw = 0;
- int glow_entries = 0;
- ReadProcessMemory(csgo_h, (LPVOID)(clientdll + Offsets::glowobject), &glow_dw, sizeof(glow_dw), 0);
- if (!glow_dw) return;
- ReadProcessMemory(csgo_h, (LPVOID)(clientdll + Offsets::glowobjectsize), &glow_entries, sizeof(glow_entries), 0);
- for (auto i = 0; i < glow_entries; i++)
- {
- int classid = 0;
- bool edormant = false;
- DWORD buffer_dw = 0;
- DWORD entry_dw = 0;
- DWORD lcbase = 0;
- int myteam = 0;
- int myhealth = 0;
- int eteam = 0;
- int ehealth = 0;
- bool edefusing = false;
- ReadProcessMemory(csgo_h, (LPVOID)(glow_dw + (i * 0x38)), &entry_dw, sizeof(entry_dw), 0);
- if (!entry_dw) continue;
- ReadProcessMemory(csgo_h, (LPVOID)(entry_dw + Offsets::dormant), &edormant, sizeof(edormant), 0);
- if (edormant) continue;
- ReadProcessMemory(csgo_h, (LPVOID)(entry_dw + 0x8), &buffer_dw, sizeof(buffer_dw), 0);
- if (!buffer_dw) continue;
- ReadProcessMemory(csgo_h, (LPVOID)(buffer_dw + 0x8), &buffer_dw, sizeof(buffer_dw), 0);
- if (!buffer_dw) continue;
- ReadProcessMemory(csgo_h, (LPVOID)(buffer_dw + 0x1), &buffer_dw, sizeof(buffer_dw), 0);
- if (!buffer_dw) continue;
- ReadProcessMemory(csgo_h, (LPVOID)(buffer_dw + 0x14), &classid, sizeof(classid), 0);
- if (!classid) continue;
- ReadProcessMemory(csgo_h, (LPVOID)(clientdll + Offsets::localplayer), &lcbase, sizeof(lcbase), 0);
- if (!lcbase) continue;
- ReadProcessMemory(csgo_h, (LPVOID)(lcbase + Offsets::teamnum), &myteam, sizeof(myteam), 0);
- ReadProcessMemory(csgo_h, (LPVOID)(lcbase + Offsets::health), &myhealth, sizeof(myhealth), 0);
- ReadProcessMemory(csgo_h, (LPVOID)(entry_dw + Offsets::teamnum), &eteam, sizeof(eteam), 0);
- ReadProcessMemory(csgo_h, (LPVOID)(entry_dw + Offsets::health), &ehealth, sizeof(ehealth), 0);
- ReadProcessMemory(csgo_h, (LPVOID)(entry_dw + Offsets::isdefusing), &edefusing, sizeof(edefusing), 0);
- if (glow)
- {
- //Player
- if (classid == 35)
- {
- if (myteam == 1 || myhealth > 1)
- {
- if (eteam == 2) //T
- {
- glowColor color(1, 0, 0, 1);
- glowColorSets settings(true, false, false);
- WriteProcessMemory(csgo_h, (LPVOID)(glow_dw + (i * 0x38) + 0x4), &color, sizeof(color), 0);
- WriteProcessMemory(csgo_h, (LPVOID)(glow_dw + (i * 0x38) + 0x24), &settings, sizeof(settings), 0);
- }
- if (eteam == 3) //CT
- {
- glowColor color(0, 0, 1, 1);
- glowColorSets settings(true, false, false);
- WriteProcessMemory(csgo_h, (LPVOID)(glow_dw + (i * 0x38) + 0x4), &color, sizeof(color), 0);
- WriteProcessMemory(csgo_h, (LPVOID)(glow_dw + (i * 0x38) + 0x24), &settings, sizeof(settings), 0);
- }
- }
- else
- {
- if (eteam == 2) //T
- {
- glowColor color(1, 0, 0, 1);
- glowColorSets settings(true, false, false);
- WriteProcessMemory(csgo_h, (LPVOID)(glow_dw + (i * 0x38) + 0x4), &color, sizeof(color), 0);
- WriteProcessMemory(csgo_h, (LPVOID)(glow_dw + (i * 0x38) + 0x24), &settings, sizeof(settings), 0);
- }
- if (eteam == 3) //CT
- {
- glowColor color(0, 0, 1, 1);
- glowColorSets settings(true, false, false);
- WriteProcessMemory(csgo_h, (LPVOID)(glow_dw + (i * 0x38) + 0x4), &color, sizeof(color), 0);
- WriteProcessMemory(csgo_h, (LPVOID)(glow_dw + (i * 0x38) + 0x24), &settings, sizeof(settings), 0);
- }
- }
- }
- //Bomb || C4
- if (classid == 29 || classid == 108)
- {
- glowColor color(1, 1, 0, 0.8);
- glowColorSets settings(true, false, false);
- WriteProcessMemory(csgo_h, (LPVOID)(glow_dw + (i * 0x38) + 0x4), &color, sizeof(color), 0);
- WriteProcessMemory(csgo_h, (LPVOID)(glow_dw + (i * 0x38) + 0x24), &settings, sizeof(settings), 0);
- }
- //Flashbang
- if (classid == 9)
- {
- glowColor color(0, 0, 1, 0.8);
- glowColorSets settings(true, false, false);
- WriteProcessMemory(csgo_h, (LPVOID)(glow_dw + (i * 0x38) + 0x4), &color, sizeof(color), 0);
- WriteProcessMemory(csgo_h, (LPVOID)(glow_dw + (i * 0x38) + 0x24), &settings, sizeof(settings), 0);
- }
- //Weapons
- if (classid == 1 || classid == 39 || classid >= 204 && classid <= 244)
- {
- glowColor color(1, 0.5, 0, 0.8);
- glowColorSets settings(true, false, false);
- WriteProcessMemory(csgo_h, (LPVOID)(glow_dw + (i * 0x38) + 0x4), &color, sizeof(color), 0);
- WriteProcessMemory(csgo_h, (LPVOID)(glow_dw + (i * 0x38) + 0x24), &settings, sizeof(settings), 0);
- }
- }
- if (radar)
- {
- if (myteam != eteam)
- {
- bool bspotted;
- bool value = true;
- ReadProcessMemory(csgo_h, (LPVOID)(entry_dw + Offsets::bspottedbymask), &bspotted, sizeof(bspotted), 0);
- if (!bspotted)
- WriteProcessMemory(csgo_h, (LPVOID)(entry_dw + Offsets::bspottedbymask), &value, sizeof(value), 0);
- }
- }
- }
- }
- void doTriggerbot()
- {
- if (GetAsyncKeyState(0x06) & 0x8000)
- {
- DWORD lcbase, entity;
- int myteam, eteam, inc;
- int value = 6;
- ReadProcessMemory(csgo_h, (LPVOID)(clientdll + Offsets::localplayer), &lcbase, sizeof(lcbase), 0);
- if (!lcbase) return;
- ReadProcessMemory(csgo_h, (LPVOID)(lcbase + Offsets::crosshairid), &inc, sizeof(inc), 0);
- ReadProcessMemory(csgo_h, (LPVOID)(lcbase + Offsets::teamnum), &myteam, sizeof(myteam), 0);
- ReadProcessMemory(csgo_h, (LPVOID)(clientdll + Offsets::entitylist + (0x10 * (inc - 1))), &entity, sizeof(entity), 0);
- if (!entity) return;
- ReadProcessMemory(csgo_h, (LPVOID)(entity + Offsets::teamnum), &eteam, sizeof(eteam), 0);
- if (inc > 0 && inc <= 64)
- {
- if (myteam != eteam)
- {
- WriteProcessMemory(csgo_h, (LPVOID)(clientdll + Offsets::forceattack), &value, sizeof(value), 0);
- }
- }
- }
- }
- void doBhop()
- {
- DWORD lcbase;
- ReadProcessMemory(csgo_h, (LPVOID)(clientdll + Offsets::localplayer), &lcbase, sizeof(lcbase), 0);
- if (!lcbase) return;
- if (GetAsyncKeyState(VK_SPACE) & 0x8000)
- {
- int flags;
- int value = 6;
- ReadProcessMemory(csgo_h, (LPVOID)(lcbase + Offsets::flags), &flags, sizeof(flags), 0);
- if (flags & 1 << 0)
- {
- WriteProcessMemory(csgo_h, (LPVOID)(clientdll + Offsets::forcejump), &value, sizeof(value), 0);
- }
- }
- }
- void doSkinChanger()
- {
- if (!sc::once)
- {
- forceUpdate();
- sc::once = true;
- }
- for (int i = 0; i < 64; i++)
- {
- DWORD lcbase;
- ReadProcessMemory(csgo_h, (LPVOID)(clientdll + Offsets::localplayer), &lcbase, sizeof(lcbase), 0);
- if (!lcbase) continue;
- DWORD wIndex;
- ReadProcessMemory(csgo_h, (LPVOID)(lcbase + sc::myweapons + ((i - 1) * 0x4)), &wIndex, sizeof(wIndex), 0);
- wIndex &= 0xFFFF;
- DWORD wEntity;
- ReadProcessMemory(csgo_h, (LPVOID)(clientdll + Offsets::entitylist + (wIndex - 1) * 0x10), &wEntity, sizeof(wEntity), 0);
- if (getWeapon(i) == weapon_ak47)
- {
- int value_1 = 0;
- int value_2 = 2048;
- int value_3 = 302;
- WriteProcessMemory(csgo_h, (LPVOID)(wEntity + sc::itemidhigh), &value_1, sizeof(value_1), 0);
- WriteProcessMemory(csgo_h, (LPVOID)(wEntity + sc::itemidlow), &value_2, sizeof(value_2), 0);
- WriteProcessMemory(csgo_h, (LPVOID)(wEntity + sc::originalownerxuidlow), &value_1, sizeof(value_1), 0);
- WriteProcessMemory(csgo_h, (LPVOID)(wEntity + sc::ownerhigh), &value_1, sizeof(value_1), 0);
- WriteProcessMemory(csgo_h, (LPVOID)(wEntity + sc::fallbackpaintkit), &value_3, sizeof(value_3), 0);
- }
- if (getWeapon(i) == weapon_awp)
- {
- int value_1 = 0;
- int value_2 = 2048;
- int value_3 = 344;
- WriteProcessMemory(csgo_h, (LPVOID)(wEntity + sc::itemidhigh), &value_1, sizeof(value_1), 0);
- WriteProcessMemory(csgo_h, (LPVOID)(wEntity + sc::itemidlow), &value_2, sizeof(value_2), 0);
- WriteProcessMemory(csgo_h, (LPVOID)(wEntity + sc::originalownerxuidlow), &value_1, sizeof(value_1), 0);
- WriteProcessMemory(csgo_h, (LPVOID)(wEntity + sc::ownerhigh), &value_1, sizeof(value_1), 0);
- WriteProcessMemory(csgo_h, (LPVOID)(wEntity + sc::fallbackpaintkit), &value_3, sizeof(value_3), 0);
- }
- if (getWeapon(i) == weapon_ssg08)
- {
- int value_1 = 0;
- int value_2 = 2048;
- int value_3 = 624;
- WriteProcessMemory(csgo_h, (LPVOID)(wEntity + sc::itemidhigh), &value_1, sizeof(value_1), 0);
- WriteProcessMemory(csgo_h, (LPVOID)(wEntity + sc::itemidlow), &value_2, sizeof(value_2), 0);
- WriteProcessMemory(csgo_h, (LPVOID)(wEntity + sc::originalownerxuidlow), &value_1, sizeof(value_1), 0);
- WriteProcessMemory(csgo_h, (LPVOID)(wEntity + sc::ownerhigh), &value_1, sizeof(value_1), 0);
- WriteProcessMemory(csgo_h, (LPVOID)(wEntity + sc::fallbackpaintkit), &value_3, sizeof(value_3), 0);
- }
- if (getWeapon(i) == weapon_aug)
- {
- int value_1 = 0;
- int value_2 = 2048;
- int value_3 = 280;
- WriteProcessMemory(csgo_h, (LPVOID)(wEntity + sc::itemidhigh), &value_1, sizeof(value_1), 0);
- WriteProcessMemory(csgo_h, (LPVOID)(wEntity + sc::itemidlow), &value_2, sizeof(value_2), 0);
- WriteProcessMemory(csgo_h, (LPVOID)(wEntity + sc::originalownerxuidlow), &value_1, sizeof(value_1), 0);
- WriteProcessMemory(csgo_h, (LPVOID)(wEntity + sc::ownerhigh), &value_1, sizeof(value_1), 0);
- WriteProcessMemory(csgo_h, (LPVOID)(wEntity + sc::fallbackpaintkit), &value_3, sizeof(value_3), 0);
- }
- if (getWeapon(i) == weapon_famas)
- {
- int value_1 = 0;
- int value_2 = 2048;
- int value_3 = 604;
- WriteProcessMemory(csgo_h, (LPVOID)(wEntity + sc::itemidhigh), &value_1, sizeof(value_1), 0);
- WriteProcessMemory(csgo_h, (LPVOID)(wEntity + sc::itemidlow), &value_2, sizeof(value_2), 0);
- WriteProcessMemory(csgo_h, (LPVOID)(wEntity + sc::originalownerxuidlow), &value_1, sizeof(value_1), 0);
- WriteProcessMemory(csgo_h, (LPVOID)(wEntity + sc::ownerhigh), &value_1, sizeof(value_1), 0);
- WriteProcessMemory(csgo_h, (LPVOID)(wEntity + sc::fallbackpaintkit), &value_3, sizeof(value_3), 0);
- }
- if (getWeapon(i) == weapon_galilar)
- {
- int value_1 = 0;
- int value_2 = 2048;
- int value_3 = 398;
- WriteProcessMemory(csgo_h, (LPVOID)(wEntity + sc::itemidhigh), &value_1, sizeof(value_1), 0);
- WriteProcessMemory(csgo_h, (LPVOID)(wEntity + sc::itemidlow), &value_2, sizeof(value_2), 0);
- WriteProcessMemory(csgo_h, (LPVOID)(wEntity + sc::originalownerxuidlow), &value_1, sizeof(value_1), 0);
- WriteProcessMemory(csgo_h, (LPVOID)(wEntity + sc::ownerhigh), &value_1, sizeof(value_1), 0);
- WriteProcessMemory(csgo_h, (LPVOID)(wEntity + sc::fallbackpaintkit), &value_3, sizeof(value_3), 0);
- }
- if (getWeapon(i) == 60)
- {
- int value_1 = 0;
- int value_2 = 2048;
- int value_3 = 644;
- WriteProcessMemory(csgo_h, (LPVOID)(wEntity + sc::itemidhigh), &value_1, sizeof(value_1), 0);
- WriteProcessMemory(csgo_h, (LPVOID)(wEntity + sc::itemidlow), &value_2, sizeof(value_2), 0);
- WriteProcessMemory(csgo_h, (LPVOID)(wEntity + sc::originalownerxuidlow), &value_1, sizeof(value_1), 0);
- WriteProcessMemory(csgo_h, (LPVOID)(wEntity + sc::ownerhigh), &value_1, sizeof(value_1), 0);
- WriteProcessMemory(csgo_h, (LPVOID)(wEntity + sc::fallbackpaintkit), &value_3, sizeof(value_3), 0);
- }
- if (getWeapon(i) == weapon_m4a1)
- {
- int value_1 = 0;
- int value_2 = 2048;
- int value_3 = 309;
- WriteProcessMemory(csgo_h, (LPVOID)(wEntity + sc::itemidhigh), &value_1, sizeof(value_1), 0);
- WriteProcessMemory(csgo_h, (LPVOID)(wEntity + sc::itemidlow), &value_2, sizeof(value_2), 0);
- WriteProcessMemory(csgo_h, (LPVOID)(wEntity + sc::originalownerxuidlow), &value_1, sizeof(value_1), 0);
- WriteProcessMemory(csgo_h, (LPVOID)(wEntity + sc::ownerhigh), &value_1, sizeof(value_1), 0);
- WriteProcessMemory(csgo_h, (LPVOID)(wEntity + sc::fallbackpaintkit), &value_3, sizeof(value_3), 0);
- }
- if (getWeapon(i) == 61)
- {
- int value_1 = 0;
- int value_2 = 2048;
- int value_3 = 653;
- WriteProcessMemory(csgo_h, (LPVOID)(wEntity + sc::itemidhigh), &value_1, sizeof(value_1), 0);
- WriteProcessMemory(csgo_h, (LPVOID)(wEntity + sc::itemidlow), &value_2, sizeof(value_2), 0);
- WriteProcessMemory(csgo_h, (LPVOID)(wEntity + sc::originalownerxuidlow), &value_1, sizeof(value_1), 0);
- WriteProcessMemory(csgo_h, (LPVOID)(wEntity + sc::ownerhigh), &value_1, sizeof(value_1), 0);
- WriteProcessMemory(csgo_h, (LPVOID)(wEntity + sc::fallbackpaintkit), &value_3, sizeof(value_3), 0);
- }
- if (getWeapon(i) == 63)
- {
- int value_1 = 0;
- int value_2 = 2048;
- int value_3 = 643;
- WriteProcessMemory(csgo_h, (LPVOID)(wEntity + sc::itemidhigh), &value_1, sizeof(value_1), 0);
- WriteProcessMemory(csgo_h, (LPVOID)(wEntity + sc::itemidlow), &value_2, sizeof(value_2), 0);
- WriteProcessMemory(csgo_h, (LPVOID)(wEntity + sc::originalownerxuidlow), &value_1, sizeof(value_1), 0);
- WriteProcessMemory(csgo_h, (LPVOID)(wEntity + sc::ownerhigh), &value_1, sizeof(value_1), 0);
- WriteProcessMemory(csgo_h, (LPVOID)(wEntity + sc::fallbackpaintkit), &value_3, sizeof(value_3), 0);
- }
- if (getWeapon(i) == weapon_deagle)
- {
- int value_1 = 0;
- int value_2 = 2048;
- int value_3 = 37;
- WriteProcessMemory(csgo_h, (LPVOID)(wEntity + sc::itemidhigh), &value_1, sizeof(value_1), 0);
- WriteProcessMemory(csgo_h, (LPVOID)(wEntity + sc::itemidlow), &value_2, sizeof(value_2), 0);
- WriteProcessMemory(csgo_h, (LPVOID)(wEntity + sc::originalownerxuidlow), &value_1, sizeof(value_1), 0);
- WriteProcessMemory(csgo_h, (LPVOID)(wEntity + sc::ownerhigh), &value_1, sizeof(value_1), 0);
- WriteProcessMemory(csgo_h, (LPVOID)(wEntity + sc::fallbackpaintkit), &value_3, sizeof(value_3), 0);
- }
- if (getWeapon(i) == weapon_fiveseven)
- {
- int value_1 = 0;
- int value_2 = 2048;
- int value_3 = 660;
- WriteProcessMemory(csgo_h, (LPVOID)(wEntity + sc::itemidhigh), &value_1, sizeof(value_1), 0);
- WriteProcessMemory(csgo_h, (LPVOID)(wEntity + sc::itemidlow), &value_2, sizeof(value_2), 0);
- WriteProcessMemory(csgo_h, (LPVOID)(wEntity + sc::originalownerxuidlow), &value_1, sizeof(value_1), 0);
- WriteProcessMemory(csgo_h, (LPVOID)(wEntity + sc::ownerhigh), &value_1, sizeof(value_1), 0);
- WriteProcessMemory(csgo_h, (LPVOID)(wEntity + sc::fallbackpaintkit), &value_3, sizeof(value_3), 0);
- }
- if (getWeapon(i) == weapon_glock)
- {
- int value_1 = 0;
- int value_2 = 2048;
- int value_3 = 353;
- WriteProcessMemory(csgo_h, (LPVOID)(wEntity + sc::itemidhigh), &value_1, sizeof(value_1), 0);
- WriteProcessMemory(csgo_h, (LPVOID)(wEntity + sc::itemidlow), &value_2, sizeof(value_2), 0);
- WriteProcessMemory(csgo_h, (LPVOID)(wEntity + sc::originalownerxuidlow), &value_1, sizeof(value_1), 0);
- WriteProcessMemory(csgo_h, (LPVOID)(wEntity + sc::ownerhigh), &value_1, sizeof(value_1), 0);
- WriteProcessMemory(csgo_h, (LPVOID)(wEntity + sc::fallbackpaintkit), &value_3, sizeof(value_3), 0);
- }
- if (getWeapon(i) == 32)
- {
- int value_1 = 0;
- int value_2 = 2048;
- int value_3 = 389;
- WriteProcessMemory(csgo_h, (LPVOID)(wEntity + sc::itemidhigh), &value_1, sizeof(value_1), 0);
- WriteProcessMemory(csgo_h, (LPVOID)(wEntity + sc::itemidlow), &value_2, sizeof(value_2), 0);
- WriteProcessMemory(csgo_h, (LPVOID)(wEntity + sc::originalownerxuidlow), &value_1, sizeof(value_1), 0);
- WriteProcessMemory(csgo_h, (LPVOID)(wEntity + sc::ownerhigh), &value_1, sizeof(value_1), 0);
- WriteProcessMemory(csgo_h, (LPVOID)(wEntity + sc::fallbackpaintkit), &value_3, sizeof(value_3), 0);
- }
- if (getWeapon(i) == weapon_p250)
- {
- int value_1 = 0;
- int value_2 = 2048;
- int value_3 = 271;
- WriteProcessMemory(csgo_h, (LPVOID)(wEntity + sc::itemidhigh), &value_1, sizeof(value_1), 0);
- WriteProcessMemory(csgo_h, (LPVOID)(wEntity + sc::itemidlow), &value_2, sizeof(value_2), 0);
- WriteProcessMemory(csgo_h, (LPVOID)(wEntity + sc::originalownerxuidlow), &value_1, sizeof(value_1), 0);
- WriteProcessMemory(csgo_h, (LPVOID)(wEntity + sc::ownerhigh), &value_1, sizeof(value_1), 0);
- WriteProcessMemory(csgo_h, (LPVOID)(wEntity + sc::fallbackpaintkit), &value_3, sizeof(value_3), 0);
- }
- if (getWeapon(i) == weapon_tec9)
- {
- int value_1 = 0;
- int value_2 = 2048;
- int value_3 = 614;
- WriteProcessMemory(csgo_h, (LPVOID)(wEntity + sc::itemidhigh), &value_1, sizeof(value_1), 0);
- WriteProcessMemory(csgo_h, (LPVOID)(wEntity + sc::itemidlow), &value_2, sizeof(value_2), 0);
- WriteProcessMemory(csgo_h, (LPVOID)(wEntity + sc::originalownerxuidlow), &value_1, sizeof(value_1), 0);
- WriteProcessMemory(csgo_h, (LPVOID)(wEntity + sc::ownerhigh), &value_1, sizeof(value_1), 0);
- WriteProcessMemory(csgo_h, (LPVOID)(wEntity + sc::fallbackpaintkit), &value_3, sizeof(value_3), 0);
- }
- }
- if (GetAsyncKeyState(VK_LMENU) & 1)
- forceUpdate();
- }
- const int NotUsed = system("color 10"); //Задаем цвет для фона всей консоли
- enum ConsoleColor
- {
- Black = 0,
- Blue = 1,
- Green = 2,
- Cyan = 3,
- Red = 4,
- Magenta = 5,
- Brown = 6,
- LightGray = 7,
- DarkGray = 8,
- LightBlue = 9,
- LightGreen = 10,
- LightCyan = 11,
- LightRed = 12,
- LightMagenta = 13,
- Yellow = 14,
- White = 15
- } Color;
- void SetColor(ConsoleColor text, ConsoleColor background)
- {
- HANDLE hStdOut = GetStdHandle(STD_OUTPUT_HANDLE);
- SetConsoleTextAttribute(hStdOut, (WORD)((background << 4) | text));
- }
- void beepclick()
- {
- Beep(650.20, 200);
- }
- void beep()
- {
- Beep(659.26, 200);
- Beep(659.26, 200);
- Sleep(200);
- Beep(659.26, 200);
- Sleep(100);
- Beep(523.26, 200);
- Beep(659.26, 200);
- Sleep(200);
- Beep(783.98, 200);
- Sleep(400);
- Beep(391.99, 200);
- }
- int main()
- {
- SetConsoleTitle("XYUHACK | Counter-Strike: Global Offensive");
- SetColor(White, Blue);
- getProcess("csgo.exe");
- clientdll = getModule("client.dll");
- enginedll = getModule("engine.dll");
- printLoading();
- system("cls");
- UpdateMenu();
- SetColor(White, Blue);
- for (;;)
- {
- Navigation();
- if (updated == true)
- {
- updated = false;
- UpdateMenu();
- }
- Sleep(50);
- }
- /*printMenu();*/
- CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)beep, NULL, NULL, NULL);
- system("PAUSE");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement