I am searching for a method to send commands directly by writeprocessmemory. But I dont know which offsets to use for this. can someone tell me/explain me a bit?typedef void (*SendConsoleCommand_)(int a1, char *command); SendConsoleCommand_ SendConsoleCommand = (SendConsoleCommand_)0x457290;
SendConsoleCommand(0, "god\n");
HANDLE hCon;
void BuildDebugConsole(void)
{
AllocConsole();
hCon = GetStdHandle(STD_INPUT_HANDLE);
SetConsoleTitle("Console");
}
char* buffer = new char[];
void SendCommand()
{
DWORD* tmpSize = new DWORD;
ReadConsole(hCon, buffer, 16*sizeof(buffer), tmpSize, NULL);
SendConsoleCommand(0, buffer);
}
if(GetAsyncKeyState(VK_KEY)&1){bConsole = !bConsole;}
if(bConsole)
{
SendCommand();
bConsole = false;
}
void (__cdecl*SendConsoleCommand)(int ,int ,char *) = (void (__cdecl *)(int,int,char *))0x00DEAD;