Hey, I found a simple base for PushToConsole for CA which I thought I would use to get my first CA hack working. I got two problems though. 1: The base was for NA and the addie part looks like this:
Code:
DWORD *LTClient = ( DWORD* )(0x3778BFB0);
void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x208 );
__asm
{
push szCommand;
call CONoff;
add esp, 4;
}
They use an offset, I've been told here that EU LTClient addie doesnt require any offset. So I simply removed the second line of code and made it Call LTClient in asm instead. Can I do that or is it wrong?
2: The base is written for VC, Im using the gcc compiler which has AT&T syntax for asm instead. So I read some documentation and made a translation but Im not sure I did it correct, this is the rewritten asm:
Code:
asm("pushl %0" :"=r"(szCommand));
asm("call *%0" :"=r"(LTClient));
asm("addl $4, %esp");
Does it look ok or did I fail somewhere?
Please dont start with the leech crap. Ive been coding in C++ for years but I havent made anything like this before, so naturally I snatched a simple example when I found it. I know what Im doing except for these 2 problems.
The current problem is that I get a "failed to read memory on xxxxxxx from xxxxxxx" (something like that) where xxxxxxxx is both the same adress when injecting.