Начинающий
-
Автор темы
- #1
C++:
#include <iostream>
#include <Windows.h>
#include <thread>
#include <chrono>
#include "sdk/skCrypter.h"
#include "sdk/csgo.hpp"
#include "sdk/memory.h"
using namespace std;
using namespace hazedumper;
using namespace netvars;
using namespace signatures;
p_module client_dll;
memory mem;
string app_name()
{
const char* charmap = crypt("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz");
string result;
srand(time(NULL));
for (int i = 0; i < 20; ++i)
{
result += charmap[rand() % 52];
}
return result;
}
int main()
{
SetWindowText(GetForegroundWindow(), app_name().c_str());
printf(crypt("Waiting CS:GO \n"));
while (!mem.attach(crypt("csgo.exe"), PROCESS_ALL_ACCESS)) {}
this_thread::sleep_for(chrono::seconds(2));
client_dll = mem.get_module(crypt("client.dll"));
printf(crypt("CSGO.exe found \n"));
printf(crypt("Init... \n\n\n\n"));
this_thread::sleep_for(chrono::seconds(3));
int previousHealth = 100;
while (1)
{
DWORD localPlayer = mem.read<DWORD>(client_dll.dw_base + dwLocalPlayer);
// Попытка вытащить engine: p_module engine = mem.get_module(crypt("engine.dll"));
// engine->serverCmd("say 1");
system("pause > nul");
this_thread::sleep_for(chrono::milliseconds(15));
}
}
Мой код: