Code:
#include <tchar.h>
#include <windows.h>
#include <stdio.h>
bool FindHaloPlease();
byte buffer;
HANDLE halo_h;
int _tmain(int argc, _TCHAR* argv[])
{
while(true){
printf("Limited always has to fix shit huh?\n");
if(!FindHaloPlease()){
printf("Failed to Locate Halo CE; Sleeping for 5 Seconds...\n");
Sleep(1000);
printf("5\n");
Sleep(1000);
printf("4\n");
Sleep(1000);
printf("3\n");
Sleep(1000);
printf("2\n");
Sleep(1000);
printf("1\n");
}
else{
printf("Working...\n");
//Check if Consoles open...
ReadProcessMemory(halo_h, (LPVOID)0x651F70, &buffer, 1, NULL);
if(buffer == 1){
//Check if it needs to be changed.
ReadProcessMemory(halo_h, (LPVOID)0x6BD17E, &buffer, 1, NULL);
if(buffer == 0){
//Turn on Devmode
buffer = 1;
WriteProcessMemory(halo_h, (LPVOID)0x6BD17E, &buffer, 1, NULL);
}
}
else if(buffer == 0){
//Console isn't open
ReadProcessMemory(halo_h, (LPVOID)0x6BD17E, &buffer, 1, NULL);
if(buffer == 1){
//Turn off Devmode if on.
buffer = 0;
WriteProcessMemory(halo_h, (LPVOID)0x6BD17E, &buffer, 1, NULL);
}
}
Sleep(1500);
}
}
return 0;
}
bool FindHaloPlease(){
DWORD pid;
HWND halo_w;
HWND halo_w2;
halo_w = FindWindow(NULL, "Halo");
BOOL tog = false;
if(halo_w != NULL && tog == false)
{
SetWindowText(halo_w, "Halo H4x'd by Limited");
tog = true;
}
halo_w2 = FindWindow(NULL, "Halo H4x'd by Limited");
if(halo_w2 != NULL){
SetWindowText(halo_w2, "Halo H4x'd by Limited");
GetWindowThreadProcessId(halo_w2, &pid);
halo_h = OpenProcess(PROCESS_ALL_ACCESS, 0, pid);
if(halo_h == NULL){
return false;
}
return true;
}
return false;
}
Bookmarks