[source]Hack v3 ph 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;
}
}
int __cdecl PushToConsole( const char* szCommand ) {
DWORD dwCShell = (DWORD)GetModuleHandleA("CShell.dll");
if( dwCShell != NULL ) {
DWORD *LTClient = ( DWORD* )( (dwCShell + 0xE8) );
void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x1F7 );
__asm
{
push szCommand;
call CONoff;
add esp, 4;
}
}
return 0;
}
void main() {
bool boxes = false;
bool nosomke = false;
if(MessageBoxA(0, "Boxes on?", "hack",MB_YESNO) == IDYES) {
boxes = false;
}
if(MessageBoxA(0, "Nosmoke on?", "hack",MB_YESNO) == IDYES) {
nosomke = false;
}
while(true) {
if(GetAsyncKeyState(VK_NUMPAD1)<0){
boxes = !boxes;
}
if(GetAsyncKeyState(VK_NUMPAD2)<0){
nosomke = !nosomke;
}
if(boxes) {
PushToConsole("ModelDebug_DrawBoxes 1");
} else {
PushToConsole("ModelDebug_DrawBoxes 0");
}
if(nosomke) {
PushToConsole("DrawParticles 0");
} else {
PushToConsole("DrawParticles 1");
}
}
}
DWORD WINAPI yhd(LPVOID) {
while(IsGameReadyForHook() )
Sleep(25);
main();
return 0;
}
BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved ) {
DisableThreadLibraryCalls(hDll);
if ( dwReason == DLL_PROCESS_ATTACH ) {
MessageBoxA(0, "Coded By lauwy\n Thanks merbling for using your pc", "Injected", 0);
CreateThread(NULL, NULL, yhd, NULL, NULL, NULL);
}
return true;
}
Added anti leeche protection