Untitled

mail@pastecode.io avatar
unknown
c_cpp
2 years ago
7.3 kB
2
Indexable
Never
#include <iostream>
#include <Windows.h>
#include <TlHelp32.h>
#include "Offsets.hpp"
#include <stdint.h>
#include <stdio.h>
#include <string>

using namespace std;
using namespace hazedumper::netvars;
using namespace hazedumper::signatures;

DWORD GetPid() {
	HWND hwP = FindWindowA(NULL, "Counter-Strike: Global Offensive");
	if (!hwP) return 0;
	DWORD ret = 0;
	GetWindowThreadProcessId(hwP, &ret);
	return ret;


}



#pragma warning(disable:4996)


uintptr_t BaseDLL;
DWORD procId;
HWND hwnd;
HANDLE hProcess;

string r;
string g;
string b;

bool triggerbotp = false;
bool radarp = false;
bool noFlashp = false;
bool Thp = false;
bool bhp = false;
bool whp = false;


uintptr_t GetBaseDLLAddress(const char* modName) {
	HANDLE hSnap = CreateToolhelp32Snapshot(TH32CS_SNAPMODULE | TH32CS_SNAPMODULE32, procId);
	if (hSnap != INVALID_HANDLE_VALUE) {
		MODULEENTRY32 modEntry;
		modEntry.dwSize = sizeof(modEntry);	
		if (Module32First(hSnap, &modEntry)) {
			do {
				if (!strcmp(modEntry.szModule, modName)) {
					CloseHandle(hSnap);
					return (uintptr_t)modEntry.modBaseAddr;
				}
			} while (Module32Next(hSnap, &modEntry));
		}
	}
}





template<typename T> T RPM(SIZE_T address) { // Read Proces Memory
	T buffer;
	ReadProcessMemory(hProcess, (LPCVOID)address, &buffer, sizeof(T), NULL);
	return buffer;
}

template<typename T> void WPM(SIZE_T address, T buffer) { // Write Process Memory
	WriteProcessMemory(hProcess, (LPVOID)address, &buffer, sizeof(buffer), NULL);
}


uintptr_t getLocalPlayer() {
	return RPM<uintptr_t>(BaseDLL + dwLocalPlayer);
}


struct glowStructEnemy {
	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 = true;
	BYTE fullBloom = false;
}glowEnm;


struct glowStructLocal {
	float red = 0.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 = false;
	BYTE renderUnoccluded = false;
	BYTE fullBloom = false;
}glowLocal;






uintptr_t getPlayer(int index) {
	//Each player in the game has an index.
	return RPM< uintptr_t>(BaseDLL + dwEntityList + index * 0x10); // We use index times 0x10 because the distance between each player 0x10.
}

int getTeam(uintptr_t player) {
	return RPM<int>(player + m_iTeamNum);
}

int getCrosshairID(uintptr_t player) {
	return RPM<int>(player + m_iCrosshairId);
}


void ExterTi() {

	while (!GetAsyncKeyState(VK_END))
	{
		//Bhop

		uintptr_t buffer;

		const auto localPlayer = RPM<uintptr_t>(BaseDLL + dwEntityList);

		const auto onGr = RPM<bool>(localPlayer + m_fFlags);
		if (GetAsyncKeyState(VK_SPACE) && onGr & (1 << 0))
		{
			WPM<BYTE>(BaseDLL + dwForceJump, 6);

		}

		//int flags = RPM<int>(localPlayer + m_fFlags);
		//if (flags & 1) {
		//	buffer = 5;
		//}
		//else {
		//	buffer = 4;
		//}

		//if (GetAsyncKeyState(VK_SPACE) & 0x8000) {
		//	WPM(BaseDLL + dwForceJump, buffer);
		//}

		////Bhop *

		const auto dwGlowManager = RPM<uintptr_t>(BaseDLL + dwGlowObjectManager);
		const auto LocalT = RPM<int>(getLocalPlayer() + m_iTeamNum);

		const auto LocalP = RPM<int>(BaseDLL + dwEntityList);


		// TPM
		if (GetAsyncKeyState(VK_MBUTTON))
		{
			WPM<int>(localPlayer + m_iObserverMode, 1); // 0-6 types for tpm {0 fp}

		}
		else
		{
			WPM<int>(localPlayer + m_iObserverMode, 0); // 0-6 types for tpm {0 fp}

		}

		//TPM *


		//Anti-FLASH


		WPM(localPlayer + m_flFlashDuration, 0);

		//Anti - FLASH *


		//TriggerBot
		int CrosshairID = getCrosshairID(getLocalPlayer());
		int CrosshairTeam = getTeam(getPlayer(CrosshairID - 1));
		int LocalTeam = getTeam(getLocalPlayer());
		if (CrosshairID > 0 && CrosshairID < 32 && LocalTeam != CrosshairTeam)
		{
			if (GetAsyncKeyState(0x43)) // C key 
			{
				mouse_event(MOUSEEVENTF_LEFTDOWN, NULL, NULL, 0, 0);
				mouse_event(MOUSEEVENTF_LEFTUP, NULL, NULL, 0, 0);
				// Optional Also safety use for CPU {BLOCKING AVG CPU USSAGE} | Like %100 :-) and Thats why anti-virus progs. says : "oMG tHiS iS A VirUs iTs So daNgerOuS"

			}
		}
		//TriggerBot *

		//GLOW-ESP 







		const auto locp = RPM<uintptr_t>(BaseDLL + dwLocalPlayer);
		const auto glowobj = RPM<uintptr_t>(BaseDLL + dwGlowObjectManager);

		for (auto i = 0; i < 64; i++) {

			const auto ent = RPM<uintptr_t>(BaseDLL + dwEntityList + i * 0x10);

			bool dedect = RPM<bool>(ent + m_bSpotted);




			//if (!dedect) continue;
			if (RPM<uintptr_t>(ent + m_iTeamNum) == RPM<uintptr_t>(locp + m_iTeamNum)) continue;

			const auto glowi = RPM<int32_t>(ent + m_iGlowIndex);


			WPM<float>(glowobj + (glowi * 0x38) + 0x8, 0.f); // r
			WPM<float>(glowobj + (glowi * 0x38) + 0xC, 1.f); // g
			WPM<float>(glowobj + (glowi * 0x38) + 0x10, 0.f); // b
			WPM<float>(glowobj + (glowi * 0x38) + 0x14, 1.f); // a

			WPM<bool>(glowobj + (glowi * 0x38) + 0x27, true);
			WPM<bool>(glowobj + (glowi * 0x38) + 0x28, true);





		}



		//GLOW-ESP *

		//Radar
		for (int i = 1; i < 64; i++) {
			DWORD dwCurrentEntity = RPM<DWORD>(BaseDLL + dwEntityList + i * 0x10);
			if (dwCurrentEntity) {
				WPM<bool>(dwCurrentEntity + m_bSpotted, true);
			}
		}
		//Radar *



	}






		
	
}	


/*

external skinchanger fixed in 2020

	BY VALVE ANTI-CHEAT


*/















int main() {
	DWORD ProcesssID = GetPid();
	if (!ProcesssID) {

		Sleep(300);
		system("color 4"); // system(color xy) x means backcolor, y means FontColor
		cout << "[-] Please Run csgo and try again!" << endl;
		cout << "\n\n Closing in 1second..." << endl;

		char* msg;
		MessageBox(0, "PLEASE RUN CSGO!", "CSGO IS NOT RUNNING!!", MB_OK | MB_ICONERROR);
		Sleep(200);
		return 0;

	}
	else {
		void passWithColor(); {
			system("color 2"); // system(color xy) x means backcolor, y means FontColor

		}

		
		SetConsoleTitle("ExterTi");
		hwnd = FindWindowA(NULL, "Counter-Strike: Global Offensive");
		GetWindowThreadProcessId(hwnd, &procId);
		BaseDLL = GetBaseDLLAddress("client.dll");
		hProcess = OpenProcess(PROCESS_ALL_ACCESS, NULL, procId);



		cout << "[+] Cheat Activated" << endl;

		cout << "\n" << endl;


		system("color 6");

		cout << "[*] Toggle F6 For Active" << endl;
		cout << "[*] Toggle END For DeActive" << endl;

		Sleep(300);

		while (true) 
		{
			if (GetAsyncKeyState(VK_F6))
			{
				system("color 3");
				cout << "\n\n[+] Cheat Active" << endl;
				cout << "\n\n______________________" << endl;
				
				cout << "[#] Radar: Active" << endl;
				cout << "[#] WallHack: Active" << endl;
				cout << "[#] NoFlash: Active" << endl;
				cout << "[#] TPM: Active" << endl;
				cout << "[#] Bhop: Active" << endl;
				cout << "[!] SkinChanger: NotNow" << endl;
				
			
				
				ExterTi();


				cout << "\n\n[!] Disable" << endl;
				int LocalP_2 = RPM<int>(BaseDLL + dwEntityList);
				WPM<float>(LocalP_2 + m_flFlashMaxAlpha, 255.f);



			}
		





			
		
		
		
		
		
		
		
		}







	}
}