-
-
[转帖] League of Legends TX开始放水了,代码段尽然没有检验,尽供娱乐。
-
发表于:
2017-11-5 08:34
3645
-
[转帖] League of Legends TX开始放水了,代码段尽然没有检验,尽供娱乐。
GOOGLE转过来的贴子,无限视距,没什么用的东东。
UCHAR* rthrthrthrtjrtjrtj(ULONG ProcessAddress, DWORD buffersize)
{
HANDLE hPorcess;
DWORD pProcessIds[0x1000] = { 0 };
DWORD pBytesReturned;
if (EnumProcesses(pProcessIds, 0x4000, &pBytesReturned) == 0)
{
return FALSE;
}
for (int i = 0; i < pBytesReturned / sizeof(DWORD); i++)
{
DWORD processid = pProcessIds[i];
hPorcess = OpenProcess(PROCESS_ALL_ACCESS, FALSE, processid);
if (hPorcess == 0)
continue;
SIZE_T sizedword = 0;
WCHAR lpImageFileName[MAX_PATH];
GetProcessImageFileNameW(hPorcess, lpImageFileName, MAX_PATH);
if (wcsstr(lpImageFileName, L"League of Legends.exe") == 0)
{
CloseHandle(hPorcess);
continue;
}
else
{
break;
}
}
UCHAR* tempuchar = (UCHAR*)malloc(0x1000);
ZeroMemory(tempuchar, 0x1000);
*(DWORD*)tempuchar = 0x4528c000;
char ewrgergerg[6]={ 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 };
SIZE_T lpNumberOfBytesRead;
if (WriteProcessMemory(hPorcess, (LPVOID)0xb72232, ewrgergerg, 6, &lpNumberOfBytesRead) == 0)
{
MessageBox(0, L"ReadProcessMemory_failed", 0, 0);
ExitProcess(1);
}
if (WriteProcessMemory(hPorcess, (LPVOID)0x1896434, tempuchar, 4, &lpNumberOfBytesRead) == 0)
{
MessageBox(0, L"ReadProcessMemory_failed", 0, 0);
ExitProcess(1);
}
CloseHandle(hPorcess);
return tempuchar;
}
[招生]科锐逆向工程师培训(2024年11月15日实地,远程教学同时开班, 第51期)