Advertisement
yonidrori

ROBLOX Hookcheck Bypass

Aug 8th, 2016
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.79 KB | None | 0 0
  1. //Hookcheck.h Bypass 2016
  2. //Hookcheck Bypass By Yonidrori!
  3. #pragma once
  4. #include <Windows.h>
  5.  
  6. DWORD base3 = (DWORD)GetModuleHandleA("RobloxPlayerBeta.exe");
  7.  
  8. DWORD getaddy2(DWORD PatchByte) {
  9.     return (PatchByte - 0x400000 + base3);
  10. }
  11.  
  12. DWORD addr = getaddy2(0x65DA06); //Hookcheck Addresses
  13.  
  14. void HookCheck_Disable() {
  15.     ImageSectionInfo* Text;
  16.     Text = GetSegmentInfo(GetModuleHandle(0), ".text");
  17.     DWORD curProtection;
  18.     DWORD Base;
  19.     VirtualProtect(Text->SectionAddress, Text->SectionSize, PAGE_EXECUTE_READWRITE, &curProtection);
  20.     Base = (DWORD)GetModuleHandle(0);
  21.     DWORD releated = ((DWORD)Text->SectionName - (DWORD)Text->SectionSize) - 5;
  22.     *(BYTE*)Text->SectionAddress = 0xE9;
  23.     DWORD temp;
  24.     VirtualProtect((PBYTE)(DWORD)addr, Text->SectionSize, PAGE_EXECUTE_READWRITE, &temp);
  25.     return;
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement