Skip to content

Instantly share code, notes, and snippets.

@4el0ve4ik
Created September 12, 2020 14:35
Show Gist options
  • Save 4el0ve4ik/b2bd38beb866329ae27946986b5489b0 to your computer and use it in GitHub Desktop.
Save 4el0ve4ik/b2bd38beb866329ae27946986b5489b0 to your computer and use it in GitHub Desktop.
FPSUnlock for Bully
#include <Windows.h>
BOOL __stdcall DllMain(HINSTANCE, DWORD fdwReason, LPVOID) {
if (fdwReason == 1) {
DWORD oldProt = 0;
void* adr = reinterpret_cast<void*>(0x4061BF);
VirtualProtect(adr, 6, PAGE_EXECUTE_READWRITE, &oldProt);
*reinterpret_cast<BYTE*>(0x4061BF) = 0x2B;
*reinterpret_cast<BYTE*>(0x4061C2) = 0xEB;
VirtualProtect(adr, 6, oldProt, NULL);
}
return TRUE;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment