Yup leech as you please
Is that code right?
#include <windows.h>
bool IsGameReadyForHook()
{
if( GetModuleHandleA( "d3d9.dll" ) != NULL
&& GetModuleHandleA( "ClientFX.fxd" ) != NULL
&& GetModuleHandleA( "CShell.dll" ) != NULL )
return true;
return false;
}
void __cdecl PushToConsole( const char* szCommand )
{
DWORD *LTClient = ( DWORD* )( 0x3780AB70 );
void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x208 );
__asm
{
push szCommand;
call CONoff;
add esp, 4;
}
}
void main()
{
while(true)
{
PushToConsole("ShowFps 1");
PushToConsole("SkelModelStencil -1" );
PushToConsole("WeaponSway 0.000000" );
PushToConsole("ActivationDistance 999999" );
PushToConsole("CrossHairR 255");
PushToConsole("FogEnable 1" );
}
}
DWORD WINAPI dwHackThread(LPVOID)
{
while( !IsGameReadyForHook() )
Sleep(100);
main();
return 0;
}
BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
DisableThreadLibraryCalls(hDll);
if ( dwReason == DLL_PROCESS_ATTACH )
{
CreateThread(NULL, NULL, dwHackThread, NULL, NULL, NULL);
}
return TRUE;
}
I did'nt thihk you could use PushToConsole Functions in your own thread without hooking a dx9 function and calling it from the hooked callback...
C+P seems like it to me
life is a bitch then you die
so lets all smoke weed
[IMG]https://i965.photobucke*****m/albums/ae131/ian1mcpherson1/tumblr_lse7x0hQ6d1qcby0w.gif[/IMG]
ITT: WHY DUZNT THIS SOURCE I HAXED TOGETHER WERK
Recommendation:
- Learn C++
- Learn Intel x86 asm instructions
- Learn the basics of Olly and IDA
- Do some simple hacks like minesweeper.
- Come back when you're coherent and you're "code" doesn't look like crap.
Yeah, that's a bit obvious. I simply gave him some recommendations on how he could fix his leeched code, or how he could inherently learn that his [leeched] program is very sub-par of anything that would be considered even decent. Then he would go on to make his own that isn't [as] bad =)
Member since September 25, 2010
Current Objectives:
- Graduate college with a degree in Computer Science
- Find a decent job in the Computer Science Field
- Learn more programming languages
Looking for Elo Boosting Job - League of Legends
Looking for Bronze -> Gold Jobs
Skype: whatthedream
No. It's WRONG WRONG WRONG WRONG WRONG.