Jag har inte testat denna kod, jag kör Linux, samt har jag inte WoW.
C++:
#include "stdafx.h"
#include "windows.h"
#include <iostream>
using namespace std;
int main()
{
LONG address = 0xH8D6080;
int newvalue = 88;
HWND hwnd;
HANDLE phandle;
DWORD pid;
hwnd = FindWindow(NULL, "World of Warcraft");
if (hwnd != 0)
{
cout << "WoW found...";
SetWindowText(hwnd,"TheCheesePolice pwnz me");
GetWindowThreadProcessId(hwnd, &pid);
phandle = OpenProcess(PROCESS_ALL_ACCESS, 0, pid);
}
else
{
Sleep(500);
main();
}
if(phandle != 0)
{
while(true)
{
WriteProcessMemory(phandle, (LPVOID)address, (LPVOID) &newvalue, 4, 0);
Sleep(5000);
}
}
cin.get();
return 0;
}
Är reklamen ivägen? Logga in eller registrera dig så försvinner den!