Ok so I have this code, I wrote it myself. The offsets and bytes are NOT MINE. They belong to people on this forum, Kenshin13 and some other dude in a fullbright thread. Since I don't know shit about ASM, how can I fix this to compile with MingW Code::Blocks? Don't worry about the rest of the code, I just need the ASM syntax correct. I can't find anything on Google, because every damn thread on other forums is different. I hoping somebody with knowledge of this, will be kind enough to help a fellow MPGH member. If any program is released with this code in it, you will be credited. I guarantee you that. I don't release without credits, and full permission from members that I borrow offsets / bytes from.
Code:
#include <iostream>
#include <windows.h>
using std::cout;
byte byte1[] =
{
0x05
};
byte byte2[] =
{
0x01
};
DWORD Fb = 0x5F9690C; /* Fullbright offset */
int main(int argc, char* argv[])
{
SetConsoleTitle("MPGH IW5M Advanced UAV");
HWND hWnd = FindWindow(NULL, TEXT("Call of Duty®: Modern Warfare® 3 Multiplayer"));
if(hWnd == NULL)
{
MessageBoxA(NULL, TEXT("Cannot find IW5M"), TEXT("Error"), MB_ICONERROR);
}
else
{
DWORD pId;
GetWindowThreadProcessId(hWnd, &pId);
HANDLE hAndle = OpenProcess(PROCESS_ALL_ACCESS, FALSE, pId);
cout << "Advanced UAV\nNever run out of radar again, and ALWAYS know where your enemy is!";
cout << "\n\nCredits:\nCoded by LEGiiTxCHAOTiiC, addresses and bytes by Kenshin13, of MPGH.net.";
cout << "\n\nPlease keep this window open to keep using the hack.\n";
for(;;)
{
WriteProcessMemory(hAndle, (void*)0x1C2C41C, &byte1, 2, 0);
WriteProcessMemory(hAndle, (void*)0x8FF304, &byte2, 2, 0);
asm
(
"mov eax, Fb \n\t"
"mov dword ptr[eax], 9 \n\t"
);
Sleep(5);
}
/* CloseHandle(hAndle); */
}
return 0;
}