Начинающий
-
Автор темы
- #1
Если знаете помогите пжлст))))
bhop:
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
#include <cstdint>
#include <thread>
#include <iostream>
namespace offset
{
constexpr std::ptrdiff_t m_fFlags = 0x3EC;
constexpr std::ptrdiff_t jump = 0x181E140;
constexpr std::ptrdiff_t pawn = 0x1825138;
}
BOOL WINAPI BunnyHop(HMODULE instance)
{
const auto client = (uintptr_t)GetModuleHandle("client.dll");
while (!GetAsyncKeyState(VK_END))
{
std::this_thread::sleep_for(std::chrono::milliseconds(1));
if (!GetAsyncKeyState(VK_SPACE))
continue;
const auto localPawn = [I](uintptr_t[/I])(client + offset::pawn);
const int flags = [I](int[/I])(localPawn + offset::flag);
if (GetAsyncKeyState(VK_SPACE) && flags & (1 << 0))
{
[I](int[/I])(client + offset::jump) = 65537; // +jump
std::this_thread::sleep_for(std::chrono::milliseconds(1));
[I](int[/I])(client + offset::jump) = 16777472; // -jump
}
}
FreeLibraryAndExitThread(instance, 0);
return 1;
}
BOOL APIENTRY DllMain(HMODULE module,DWORD reason,LPVOID reserved)
{
switch (reason)
{
case DLL_PROCESS_ATTACH:
{
DisableThreadLibraryCalls(module);
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)BunnyHop, 0, 0, 0);
break;
}
case DLL_PROCESS_DETACH: break;
}
return 1;
}
Последнее редактирование: