Skocz do zawartości

Problem z kodem radarhack


# CSH External VIP Project

Masz dosyć problemów z czynnikiem zaufania w CS2 lub notorycznymi banami?

Sprawdź CSH External VIP Project.


Więcej informacji  

Rekomendowane odpowiedzi

niedziała kod po usunięciu błędów i offsets update:
 
 

#include <Windows.h>
#include <iostream>
#include <thread>
#include <TlHelp32.h>
 
#pragma region Zmienne & Veriables
 
MODULEENTRY32 ModuleEntry;
HWND Okno = FindWindow(NULL, "Counter-Strike: Global Offensive");
 
HANDLE Process;
 
DWORD ClientDll, EngineDll;
 
struct SOffset
{
const DWORD_PTR dw_ClientState = 0x005C7524;
const DWORD_PTR dw_EntityList = 0x4AC8014;
 
}Offsety;
 
#pragma endregion
 
DWORD FindBaseAddress(LPSTR NameModule, DWORD ProcessID)
{
HANDLE AllModuleProcess = CreateToolhelp32Snapshot(TH32CS_SNAPMODULE, ProcessID);
 
if (!AllModuleProcess)
return NULL;
 
ModuleEntry.dwSize = sizeof(MODULEENTRY32);
 
BOOL bWhile = Module32First(AllModuleProcess, &ModuleEntry);
 
while (bWhile)
{
if (!strcmp(ModuleEntry.szModule, NameModule))
{
CloseHandle(AllModuleProcess);
 
return (DWORD)ModuleEntry.modBaseAddr;
}
bWhile = Module32Next(AllModuleProcess, &ModuleEntry);
}
 
CloseHandle(AllModuleProcess);
return NULL;
}
 
void Start()
{
if (!Okno)
exit(1);
 
DWORD* PID = new DWORD;
 
GetWindowThreadProcessId(Okno, PID);
 
if (PID == NULL)
exit(1);
 
Process = OpenProcess(PROCESS_ALL_ACCESS, FALSE, *PID);
 
ClientDll = (DWORD)FindBaseAddress("client.dll", *PID);
 
if (ClientDll == NULL)
exit(1);
 
EngineDll = (DWORD)FindBaseAddress("engine.dll", *PID);
 
if (EngineDll == NULL)
exit(1);
}
 
DWORD __stdcall RadarHack(LPVOID)
{
    #pragma region Zmienne
 
DWORD EnginePointer;
DWORD EntityList;
 
bool IsConnected, IsNowSpotted, IsNowDormant;
bool NewValueSpotted = true;
 
int MaxPlayer;
 
    #pragma endregion
 
while (true)
{
std::this_thread::sleep_for(std::chrono::milliseconds(1));
 
ReadProcessMemory(Process, (LPVOID)((DWORD)EngineDll + Offsety.dw_ClientState), &EnginePointer, sizeof(DWORD), NULL);
 
if (EnginePointer == NULL)
continue;
 
ReadProcessMemory(Process, (LPVOID)(EnginePointer + 0x100), &IsConnected, sizeof(bool), NULL);
 
if (!IsConnected)
{
std::this_thread::sleep_for(std::chrono::milliseconds(3000));
continue;
}
 
ReadProcessMemory(Process, (LPVOID)(EnginePointer + 0x308), &MaxPlayer, sizeof(int), NULL);
 
if (MaxPlayer == NULL)
continue;
 
for (int i = 0; i <= MaxPlayer; i++)
{
std::this_thread::sleep_for(std::chrono::milliseconds(1));
 
ReadProcessMemory(Process, (LPVOID)((DWORD)ClientDll + Offsety.dw_EntityList + ((i - 1) * 16)), &EntityList, sizeof(DWORD), NULL);
 
if (EntityList == NULL)
continue;
 
ReadProcessMemory(Process, (LPVOID)(EntityList + 0x939), &IsNowSpotted, sizeof(bool), NULL);
 
if (IsNowSpotted)
continue;
 
ReadProcessMemory(Process, (LPVOID)(EntityList + 0xE9), &IsNowDormant, sizeof(bool), NULL);
 
if (IsNowDormant)
continue;
 
WriteProcessMemory(Process, (LPVOID)(EntityList + 0x939), &NewValueSpotted, sizeof(bool), NULL);
}
std::this_thread::sleep_for(std::chrono::milliseconds(1));
}
return 0;
}
 
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
{
    SetConsoleTitle("RadarHack");
 
Start();
 
MessageBox(0, "Wszystko dobrze. ¯yczê przyjemnej gry. Dwulicowy ;)", "evolutionCheat RadarHack", MB_ICONINFORMATION);
 
CreateThread(0, 0, RadarHack, 0, 0, 0);
 
while (true)
{
ShowWindow(FindWindow(0, "RadarHack"), SW_SHOWMINNOACTIVE);
 
if (!Okno)
exit(1);
 
if (GetAsyncKeyState(VK_F8))
exit(1);
 
Sleep(50);
}
 
return 0;
}
Odnośnik do komentarza
Gość
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
×
×
  • Dodaj nową pozycję...

Powiadomienie o plikach cookie

Umieściliśmy na Twoim urządzeniu pliki cookie, aby pomóc Ci usprawnić przeglądanie strony. Możesz dostosować ustawienia plików cookie, w przeciwnym wypadku zakładamy, że wyrażasz na to zgodę. Regulamin. Polityka prywatności