Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Komrade pls dont leak this valuable code
- #include <iostream>
- #include <Windows.h>
- #include <TlHelp32.h>
- #define CSGO_WINDOW_NAME "Counter-Strike: Global Offensive - Direct3D 9"
- #define dwLocalPlayer 0xDEA964 //Pay attention to these offsets! They might change with game updates...
- #define dwEntityList 0x4DFFEF4
- #define dwViewMatrix 0x4DF0D24
- #define m_dwBoneMatrix 0x26A8
- #define m_iTeamNum 0xF4
- #define m_iHealth 0x100
- #define m_vecOrigin 0x138
- #define m_bDormant 0xED
- /*OMITTED CODE*/
- template<typename T> T RPM(SIZE_T address) {
- T buffer;
- ReadProcessMemory(hProcess, (LPCVOID)address, &buffer, sizeof(T), NULL);
- return buffer;
- }
- class Vector3 {
- public:
- float x, y, z;
- Vector3() : x(0.f), y(0.f), z(0.f) {}
- Vector3(float _x, float _y, float _z) : x(_x), y(_y), z(_z) {}
- };
- /*OMITTED CODE*/
- /*OMITTED CODE*/
- /*OMITTED CODE*/
- void Shoot() {
- mouse_event(MOUSEEVENTF_LEFTDOWN, NULL, NULL, 0, 0);
- mouse_event(MOUSEEVENTF_LEFTUP, NULL, NULL, 0, 0);
- }
- const Vector3 targets[] = {
- Vector3(0, 600, 200),
- Vector3(0, -40, -50),
- Vector3(0, -40, -50),
- /*OMITTED CODE*/
- Vector3(0, 0, 50),
- Vector3(0, 0, 50)
- };
- int main() {
- puts("========================================");
- puts("Professional CS-GO cheat client (v 69.1)");
- puts("========================================");
- puts("Did you use \"-insecure\" flag while running CS-GO??? Close this now if you didn't!");
- Sleep(1000);
- puts("Opening process memory now!");
- Sleep(1000);
- hwnd = FindWindowA(NULL, CSGO_WINDOW_NAME);
- GetWindowThreadProcessId(hwnd, &procId);
- moduleBase = GetModuleBaseAddress("client.dll");
- hProcess = OpenProcess(PROCESS_ALL_ACCESS, NULL, procId);
- hdc = GetDC(hwnd);
- puts("Starting cheat...");
- puts("Instructions: Press & Hold DELETE in-game to activate aimbot");
- puts(" Press END to close program.");
- while (!GetAsyncKeyState(VK_END)) { //press the "end" key to end the hack
- vm = RPM<view_matrix_t>(moduleBase + dwViewMatrix);
- if (GetAsyncKeyState(VK_DELETE)) //press the "delete" key to activate the hack
- {
- Vector3 headPos = get_head(GetLocalPlayer());
- Vector3 reference = Vector3(headPos.x + 100.0f, headPos.y, headPos.z);
- for (int i = 0; i < sizeof(targets) / sizeof(Vector3) && GetAsyncKeyState(VK_DELETE); i++)
- {
- Vector3 target = WorldToScreen(Vector3(reference.x + targets[i].x, reference.y + targets[i].y, reference.z + targets[i].z), vm);
- SetCursorPos(target.x, target.y);
- Shoot();
- Sleep(200);
- }
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement