PTC Method :D

Posts 1630 of 39 · Page 2 of 3
Quote Originally Posted by DeadLinez View Post
; means a comment../fp
Send to me your LTBase class with 1 line of code
Quote Originally Posted by NexonGuard View Post
Send to me your LTBase class with 1 line of code
/fp x2, the class aint 1 line, to call it is line, find it yourself leecher..
Quote Originally Posted by DeadLinez View Post
/fp x2, the class aint 1 line, to call it is line, find it yourself leecher..
/fp i not a leecher!

i'm Unverified User and NexonGuard
Quote Originally Posted by NexonGuard View Post
/fp i not a leecher!

i'm Unverified User and NexonGuard
/fp

Stupit

Just use the one Flameswor10 posted o.O
/appears momentarily to post my one-liner solution

Code:
(*(int (*)(const char *)) (*((int *) 0xLTCLIENT) + 0x208))("SkelModelStencil 1");
/disappears back into obscurity
Quote Originally Posted by LtCommaro View Post
Even though I DONT HAVE ANY idea what this means. I still like it. Thanked.
Even though I DONT HAVE ANY idea what this means. I still like it. Thanked.
Quote Originally Posted by flameswor10 View Post
Code:
void __cdecl RunConsoleCommand( const char* cCommand)
{
	void* address = ( void* ) ADDR_CONSOLEUNWRAPPED;

	__asm
	{
		Push cCommand
		call address
		add esp, 0x4
	}
}
Much smaller, Much Simpler, Much easier.
very good this method !
It will not work.
Bad ASM syntaxes...
Besides is pretty messy, it works in CA BR.
Quote Originally Posted by baraozin View Post
My horrible PTC method

Code:

VOID CosolePush(CONST CHAR *Command)
{

	
__asm {

PUSHAD;
NOP;
MOV EAX, LTClientEXE; 
WAIT;
MOV EBX, LTClientEXE;
WAIT;
NOP;
CMP EAX, EBX;
NOP;
add eax, 4
JZ Hello; 
NOP;
Hello:       
NOP;
PUSH Command;
NOP;
MOV EAX, LTClientEXE;
NOP;
CALL EAX;
NOP;
ADD ESP, 0x4;
NOP;
sub EDI, 0x5;
sub esi, 0x1;
POPAD;
}
}

Chams push example:
Code:
ConsolePush("SkelModelStencil 1");
Doesn't that entire thing ==
Code:
void ConsolePush(const char *command) {
__asm {
push command
call LTClientEXE }}
I don't know if this code would work... just that it has exactly the same result as your code.
Quote Originally Posted by yodaliketaco View Post
Doesn't that entire thing ==
Code:
void ConsolePush(const char *command) {
__asm {
push command
call LTClientEXE }}
I don't know if this code would work... just that it has exactly the same result as your code.
Almost, but you gotta fix the stack due to the cdcel calling convention
Code:
add esp, 4
So something along the lines of:
Code:
void ptc(char* command){
void* addy = *(void*)0xwhatever;
__asm{
push command
call addy
add esp, 4
}
}
Anyone figured out why it would need variable arguments
when i compile the hack some warnings are showed but the hack work perfectly
Posts 1630 of 39 · Page 2 of 3
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?