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 =)
EDIT: If there are more problems with this or its just JUNK then say it and please tell me what to do better =))) TY
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;
}

.