Finding a PushToConsole Method

Posts 16 of 6 · Page 1 of 1
Finding a PushToConsole Method
Can Anyone Give Me A Quick Tutorial On How to Find a PTC?
You must make one.
LT Client + 0x208
According to the dude above me, LTClient + 0x208...

Should be something like this:

Code:
__asm
{
	mov ecx, dword ptr ds:[ADDR_LTCLIENT]
	mov eax, dword ptr ds:[ecx + 0x208]
	push szCommand
	call eax
	add esp, 0x4
}
Havnt tested but it should work =\

ADDR_LTCLIENT is 0x377DA848
Quote Originally Posted by Atomic` View Post
According to the dude above me, LTClient + 0x208...

Should be something like this:

Code:
typedef void (__stdcall *SCV)(const char *Command);
SCV SetCVar = (SCV)(ADDR_LTCLIENT + 0x208);
Havnt tested but it should work =\

ADDR_LTCLIENT is 0x377DA848
if its new it should work
LTClient version is much slower than the Unwrapped Console version. If you get the dump files and find the Unwrapped Console you can use the old version (if it still works).

Now using Atomic's assembly, the function should look a little like this (not sure, I was gone for 7-8 months, got a lot of catching up plus I kinda just put my old RunConsoleCommand with his assembly):

Code:
#define ADDR_LTCLIENT 0x377DA848
void __cdecl PushToConsole( const char* cCommand )
{
	void* address = ( void* ) ADDR_LTCLIENT;

	__asm
	{
		mov ecx, dword ptr ds:[address]
		mov eax, dword ptr ds:[ecx + 0x208]
		push cCommand
		call eax
		add esp, 0x4
	}
}
Atomic, the dude above you is ac1d_buRn, hes like my third idol.
Posts 16 of 6 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?