Advertisement
LordEzz7

Code

Nov 4th, 2018
368
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.13 KB | None | 0 0
  1. #ifndef _ROBLOX_PRECOMPILED_HEADER_
  2.  
  3. #define _ROBLOX_PRECOMPILED_HEADER_
  4.  
  5. #include <Windows.h>
  6. #include <iostream>
  7.  
  8. bool ChangeApplicationText(LPSTR WindowName, LPSTR Text)
  9. {
  10.     DWORD AppPID;
  11.     GetWindowThreadProcessId((HWND)FindWindowA(NULL, WindowName), &AppPID);
  12.     SetWindowTextA((HWND)FindWindowA(NULL, WindowName), Text);
  13.     return true;
  14. }
  15.  
  16. void BypassFreeConsoleHook(DWORD perms)
  17. {
  18.     DWORD AppPID;
  19.     DWORD OldProtection;
  20.     GetWindowThreadProcessId((HWND)FindWindowA(NULL, "Roblox"), &AppPID);
  21.     VirtualProtect(&FreeConsole, sizeof(DWORD), PAGE_EXECUTE_READWRITE, &OldProtection);
  22.     WriteProcessMemory(OpenProcess(perms, true, AppPID), &FreeConsole, (LPCVOID)0xC3, sizeof(DWORD), 0);
  23.     VirtualProtect(&FreeConsole, sizeof(DWORD), OldProtection, &OldProtection);
  24.     AllocConsole();
  25.     freopen("CONIN$", "r", stdin);
  26.     freopen("CONOUT$", "w", stdout);
  27.     return;
  28. }
  29.  
  30. // -||- ROBLOX Context Changer -||- \\
  31. #define ChangeContext(Contextaddr, value) *(int*)Contextaddr = value
  32.  
  33. // -- [Credits[ -- \\
  34.  
  35. /*
  36. KingEzz - Main Coder
  37. Mysertruouss - a Gay Fat Fuck! He is gay as hell and is homo as fuck for me!
  38. mi-sir-trow-sss
  39. */
  40.  
  41. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement