Advertisement
Guest User

internal is cool

a guest
Jan 28th, 2015
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.26 KB | None | 0 0
  1. #include <iostream>
  2. #include <Windows.h>
  3. #include <string.h>
  4. #include <string>
  5.  
  6. int Exodus;
  7.  
  8. int ptr;
  9.  
  10.  
  11.  
  12.  
  13.  
  14. using namespace std;
  15.  
  16. int main()
  17. {
  18.     SetConsoleTitle((LPCWSTR)"Exodus");
  19.  
  20.     system("Color 7A");
  21.     DWORD ptr = (DWORD)GetModuleHandle((LPCWSTR)"Log.dll") + 0x00041B0C + 0x1B0 + 0x1C0 + 0x70;
  22.  
  23.     HWND windowProgram = FindWindow(NULL, L"ROBLOX");
  24.  
  25.     GetCurrentProcessId();
  26.     if (GetCurrentProcessId > 0){
  27.         clog << "Roblox Player Beta found!" << endl;
  28.         cout << "Edit Fog\n";
  29.     }
  30.  
  31.     else{
  32.        
  33.     }
  34.    
  35.  
  36.     loop:
  37.     scanf_s("%d", &Exodus);
  38.    
  39.  
  40.     ////////////////////////////////////////
  41.     if (windowProgram == 0){
  42.         cerr << "Roblox Player Client was not found!" << endl;
  43.     }
  44.  
  45.     /////////////////////////////////////
  46.     else{}
  47.     DWORD processID;
  48.     GetWindowThreadProcessId(windowProgram, &processID);
  49.     HANDLE handleProcess = OpenProcess(PROCESS_ALL_ACCESS, FALSE, processID);
  50.     int memoryEdit = WriteProcessMemory(handleProcess, (LPVOID)(ptr), &Exodus, (DWORD)sizeof(Exodus), NULL);
  51.     ///////////////////////////////////////////
  52.  
  53.  
  54.     if (!handleProcess == 0){
  55.         cerr << "Unable to handle Process:  " << handleProcess << endl;
  56.        
  57.        
  58.     }
  59.  
  60.  
  61.  
  62.     ////////
  63.  
  64.     CloseHandle(handleProcess);
  65.  
  66.     {
  67.  
  68.         cin.sync(),
  69.             cin.ignore();
  70.  
  71.         goto loop;
  72.  
  73.         return 0;
  74.     }
  75. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement