Начинающий
-
Автор темы
- #1
Hi, I'm trying to call ClientCmd_Unrestricted externally.
I found the CEngineClient instance, according to this:
the ClientCmd_Unrestricted is the 34th function, I'm trying to call it like this:
But the game crashes.
Also, I looked at the 34th function in memory, it doesn't seem to be ClientCmd_Unrestricted ( There is no argument! Also, I tried other functions around it too )
I found the CEngineClient instance, according to this:
Пожалуйста, авторизуйтесь для просмотра ссылки.
the ClientCmd_Unrestricted is the 34th function, I'm trying to call it like this:
C++:
std::uintptr_t addr = address_of_34th_function;
LPVOID vCommand = (LPVOID)VirtualAllocEx(Memory::pHandle, NULL, strlen(command) + 1, MEM_RESERVE | MEM_COMMIT, PAGE_READWRITE);
WriteProcessMemory(Memory::pHandle, vCommand, command, strlen(command), NULL);
HANDLE hThread = CreateRemoteThread(Memory::pHandle, NULL, NULL, (LPTHREAD_START_ROUTINE)addr, vCommand, NULL, NULL);
WaitForSingleObject(hThread, INFINITE);
VirtualFreeEx(Memory::pHandle, vCommand, NULL, MEM_RELEASE);
CloseHandle(hThread);
Also, I looked at the 34th function in memory, it doesn't seem to be ClientCmd_Unrestricted ( There is no argument! Also, I tried other functions around it too )
Пожалуйста, авторизуйтесь для просмотра ссылки.