[source]lhck 02 |Normal server|

Posts 1–8 of 8 · Page 1 of 1
[source]lhck 02 Normal server
Code:
#include "stdafx.h"
#include <windows.h>
#include <iostream>

using namespace std;

bool IsGameReadyForHook()
{
	if( GetModuleHandleA( "CShell.dll"  ) != NULL ) {
		return true;
	} else {
		return false;
	}
}

void __cdecl PushToConsole( const char* szCommand ) {
	DWORD dwCShell = (DWORD)GetModuleHandleA("CShell.dll");
	if( dwCShell != NULL ) 	{
		DWORD *LTClient = ( DWORD* )( (dwCShell + 0x99D40) );
		void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x1F7 );
		__asm
		{
			push szCommand;
			call CONoff;
			add esp, 4;
		}
	}   
}


void main(int LTC) {
	Sleep(1000);
	bool dozen = false;
	bool nosky = false;
	bool nosmoke = false;
	bool white = false;
	bool whireworld = false;
	bool playerwire = false;
	bool skel = false;
	bool nogun = false;
	bool fogenable = false;
	bool water = true;
	bool bullets = true;
	bool nolightobjects = false
	bool noplayers = false;
	bool meblack = false;
	bool black = false;

	while("why" ) {
		PushToConsole("SkelModelStencil -1" );
		if(GetAsyncKeyState(VK_NUMPAD1)<0){
			dozen = !dozen;
		}
		if(GetAsyncKeyState(VK_NUMPAD2)<0){
			nosky = !nosky;
		}
		if(GetAsyncKeyState(VK_NUMPAD3)<0){
			nosmoke = !nosmoke;
		}
		if(GetAsyncKeyState(VK_NUMPAD4)<0){
			white = !white;
		}
		if(GetAsyncKeyState(VK_NUMPAD5)<0){
			whireworld = !whireworld;
		}
		if(GetAsyncKeyState(VK_NUMPAD6)<0){
			playerwire = !playerwire;
		}
		if(GetAsyncKeyState(VK_NUMPAD7)<0){
			skel = !skel;
		}
		if(GetAsyncKeyState(VK_NUMPAD8)<0){
			nogun = !nogun;
		}
		if(GetAsyncKeyState(VK_NUMPAD9)<0){
			fogenable = !fogenable;
		}
		if(GetAsyncKeyState(VK_F2)<0){
			bullets = !bullets;
		}
		if(GetAsyncKeyState(VK_F3)<0){
			water = !water;
		}
		if(GetAsyncKeyState(VK_F4)<0){
			nolightobjects = !nolightobjects;
		}
		if(GetAsyncKeyState(VK_F5)<0){
			noplayers = !noplayers;
		}
		if(GetAsyncKeyState(VK_F6)<0){
			meblack = !meblack;
		}
		if(GetAsyncKeyState(VK_F7)<0){
			black = !black;
		}

		if  (meblack) {
			PushToConsole("ScreenGlowFogEnable 0");
		} else {
			PushToConsole("ScreenGlowFogEnable 1");
		}

		if(noplayers) {
			PushToConsole("Effect_ForceSoftwareShaders 0");
		} else {
			PushToConsole("Effect_ForceSoftwareShaders 1");
		}

		if (nolightobjects) {
			PushToConsole("Effect_DebugEffectIncludes 3");
		} else {
			PushToConsole("Effect_DebugEffectIncludes 0");
		}

		if  (black) {
			PushToConsole("DrawWorld 0");
		} else {
			PushToConsole("DrawWorld 1");
		}

		if  (whireworld) {
			PushToConsole("LightmapsOnly 1");
		} else {
			PushToConsole("LightmapsOnly 0");
		}

		if(bullets) {
			PushToConsole("DrawSprites 1");
		} else {
			PushToConsole("DrawSprites 0");
		}

		if (water) {
			PushToConsole("DrawPolyGrids 1");
		} else {
			PushToConsole("DrawPolyGrids 0");
		}

		if (fogenable) {
			PushToConsole("FogEnable 1");
		} else {
			PushToConsole("FogEnable 0");
		}

		if (skel) {
			PushToConsole("ModelDebug_DrawSkeleton 1"); 
		} else {
			PushToConsole("ModelDebug_DrawSkeleton 0"); 
		}
		if  (dozen) {
			PushToConsole("ModelDebug_DrawBoxes 1");
		} else {
			PushToConsole("ModelDebug_DrawBoxes 0");
		}

		if  (nosky) {
			PushToConsole("DrawSky 0");
		} else {
			PushToConsole("DrawSky 1");
		}

		if  (whireworld) {
			PushToConsole("WireFrame 1");
		} else {
			PushToConsole("WireFrame 0");
		}

		if  (playerwire) {
			PushToConsole("WireFrameModels 1");
		} else {
			PushToConsole("WireFrameModels 0");
		}

		if  (nogun) {
			PushToConsole("DrawGuns 0");
		} else {
			PushToConsole("DrawGuns 1");
		}

		if(nosmoke) {
			PushToConsole("DrawParticles 0");
		} else {
			PushToConsole("DrawParticles 1");
		}

		if(white) {
			PushToConsole("TextureModels 0");
		} else {
			PushToConsole("TextureModels 1");
		}

		Sleep(1);
	}
}

DWORD WINAPI yhd(LPVOID) {
	while(IsGameReadyForHook() )
	Sleep(125);
	main();
	return 0;
}

BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved ) {
	DisableThreadLibraryCalls(hDll);
	if ( dwReason == DLL_PROCESS_ATTACH ) {
		MessageBoxA(0, "Coded By lauwy\nMPGH\nWindows 7 only", "Injected", 0);
		CreateThread(NULL, NULL, yhd, NULL, NULL, NULL);
	}
	return true;
}
Added some anti leeche protection
Press thanks
hello sir can i ask, if im XP user , i will gonna change "<0" to "&1"? just asking
Why post when its protecion???
ah ok ... thanks sir
He put his credits on the msgbox bcause some C++ beginners just copy paste it

or other meaning of leeching protection ?_?
I edit some parts that it don't work. you need to watch the code. and edit them.
Posts 1–8 of 8 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us