Advertisement
ya_makaron

dialog nop

Jan 5th, 2019
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.38 KB | None | 0 0
  1.         //DWORD addr = (DWORD)GetModuleHandleA("samp.dll") + 0xCBB0; // R2
  2.         DWORD addr = (DWORD)GetModuleHandleA("samp.dll") + 0xF7B0; // R3
  3.         DWORD old_prot;
  4.         VirtualProtect((LPVOID)addr, 2, 0x40, &old_prot);
  5.         byte bytes[2] = { 0xC3, 0x90 }; // ret
  6.         for (int i = 0; i < 2; i++)
  7.             *reinterpret_cast<BYTE*>(addr + i) = bytes[i];
  8.  
  9.         VirtualProtect((LPVOID)addr, 2, old_prot, &old_prot);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement