Cool1st Hack Source Code failure

Posts 1–9 of 9 · Page 1 of 1
1st Hack Source Code failure
Hey all =) I wanted to code my first hack dunno whether it'll work but just wanna try it after i read alot in this excellent forum and other tutorials and books in i-net and home.
So here is my Code with credits to me and all those which tuts i read ;-) for example CN.

If i build it i got the base.cpp(18) C2100: illegal indirection

The internet told me that it is and Compiler Error and has to do with the Pointeroperator * but i'm not able to fix it yet.

I hope you can help me =)


Code:
#include "windows.h"


bool canihack()
{
	if(GetModuleHandleA("d3d9.dll")!=NULL && GetModuleHandleA("ClientFX.fxd")!=NULL && GetModuleHandleA("CShell.dll")!=NULL)
	{
		return true;
	}
	else
	{
		return false;
	}
}



void __cdecl PTC(const char* ptcCommand)
{
	DWORD *LTCLIENT = (DWORD*)(LTCLIENTNUM);
	void* app=(void*)*(DWORD*)(*LTCLIENTNUM + 0x208);
	__asm
	{
		push ptcCommand;
		call app;
		add esp, (16/4);
	}
}





void main()
{
	while (canihack())
	{
		PTC("ShowFPS, 1");//Always on
		if(GetAsyncKeyState(0x5A)<2)//pressing Z
		{
			PTC("ModelDebug_DrawBoxes 1");
                        PTC("SkelModelStencil 1"); 
		}
		if(GetAsyncKeyState(0x54)<2)//pressing T
		{
			PTC("ModelDebug_DrawBoxes 0");
			PTC("SkelModelStencil 0");
		}
		Sleep(250);
	}
}



BOOL WINAPI DllMain( HMODULE hDLL, DWORD dwReason, LPVOID lpvReserved)
{
	if(dwReason==DLL_PROCESS_ATTACH)
	{
		main();
	}
	return TRUE;
}
EDIT: If there are more problems with this or its just JUNK then say it and please tell me what to do better =))) TY
Look:
Code:
void __cdecl PTC(const char* ptcCommand)
{
	DWORD *LTCLIENT = (DWORD*)(LTCLIENTNUM);
	void* app=(void*)*(DWORD*)(*LTCLIENTNUM + 0x208);
You called the LT client for LTCLIENTNUM
Code:
#include "windows.h"
I cant see any define or something...

So either Define LTCLIENTNUM as 0x37767BD0

or put it straight into the line
Ok thx for your help but i just put the ltclient out in this post
In my code it is in there and not LTCLIENTNUM xD cuz of C+P i put it out.

Also if i replace LTCLIENTNUM with 0x37767BD0 I got these illegal indirection =(

So do you have an idea from where the error comes?

Maybe try to build it on your pc? that would be really nice dude =)
But what do you mean with
Code:
Code: 
Code:
 #include "windows.h"
And its not PTC its PushToConsole
Quote Originally Posted by qddW$#%^jtyjtyj View Post
And its not PTC its PushToConsole
whahha ehm >.> your a coder u should know that you can name it everything you want -_- hell my gobal keys for my pub hack are

bool SexualIntercoursingGameThread()
[2:09:42] |͇̿P͇̿S͇̿P͇̿i͇̿s͇̿o͇̿|(ぺすぺいすお)H4X0R 733D : ***** __cdecl PushToConsole( ********** smexy ,******* sexyvalue)
{
std::string typhus (smexy + " " +********(sexyvalue));
[2:11:00] |͇̿P͇̿S͇̿P͇̿i͇̿s͇̿o͇̿|(ぺすぺいすお)H4X0R 733D : push pszConstANAL;

litterally.... i mean i had it named PTC before to altough i had made a new source and forgot to edit it and i already had to manny PushToConsole commands so i was to lazy to replace .
Quote Originally Posted by BCKP_KuroTenshi View Post
whahha ehm >.> your a coder u should know that you can name it everything you want -_- hell my gobal keys for my pub hack are
But i mean... He didnt define it or something look at the source...
Quote Originally Posted by qddW$#%^jtyjtyj View Post


But i mean... He didnt define it or something look at the source...
ehm... he states "void __cdecl PTC(const char* ptcCommand)
"
so that means when you typ PTC u need to add a command after it: ("ShowFPS 1"); come one this is the first line of a void/int/char ... hell i can name it void __cdecl O(const char* ptcCommand)... idk if i get the picture of what ur sayin but yeah. aslong that there is a push with the ptcCommand its fine how you name it.
But the PTC or PushToConsole is just a NAME for our void isn't it? and so i don't care about the name?

LOL WHILE I WAS WRITING THIS KUROTENISHS POST CAME IN

same time same thought
ehm the GetHandleModuleA("d3d9.dll")!=NULL isnt needed for PTC hacks right?
Posts 1–9 of 9 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

Talk with us