
#include <windows.h>
void __cdecl PushToConsole(char* szVal ) {
DWORD dwCShell = (DWORD)GetModuleHandleA("CShell.dll");
if( dwCShell != NULL )
{
DWORD *LTClient = ( DWORD* )( (dwCShell + 0x299D40) );
void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x1F8 );
_asm
{
push szVal;
call CONoff;
add esp, 4;
}
}
}
DWORD WINAPI Paulsag(LPVOID) {
while(GetModuleHandleA("CShell.dll") == NULL ) {
Sleep(100);
}
bool boxes = true;
bool nosky = true;
for(;;) {
if (boxes) {
PushToConsole("ModelDebug_DrawBoxes 1");
}
else {
PushToConsole("ModelDebug_DrawBoxes 0");
}
if (nosky) {
PushToConsole("DrawSky 0");
}
else {
PushToConsole("DrawSky 1");
}
}
}
BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
DisableThreadLibraryCalls(hDll);
if ( dwReason == DLL_PROCESS_ATTACH )
{
CreateThread(NULL, NULL,Paulsag, NULL, NULL, NULL);
}
return TRUE;
}
PRESS THANKS
1>------ Build started: Project: P***, Configuration: Release Win32 ------
1> jeez dude...cpp
1>jeez dude...cpp(54): error C2601: 'DllMain' : local function definitions are illegal
1> jeez dude...cpp(22): this line contains a '{' which has not yet been matched
1>jeez dude...cpp(63): fatal error C1075: end of file found before the left brace '{' at 'jeez dude...cpp(22)' was matched
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
#include <iostream>
#include <windows.h>
using namespace std;
void __cdecl PushToConsole(char* szVal ) {
DWORD dwCShell = (DWORD)GetModuleHandleA("CShell.dll");
if( dwCShell != NULL )
{
DWORD *LTClient = ( DWORD* )( (dwCShell + 0x299D40) );
void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x1F8 );
_asm
{
push szVal;
call CONoff;
add esp, 4;
}
}
}
DWORD WINAPI hello(LPVOID) {
while(GetModuleHandleA("CShell.dll") == NULL ) {
Sleep(100);
}
bool boxes = true;
bool nosky = true;
for(;;) {
if(GetAsyncKeyState(VK_F2)&1) {
boxes = !boxes;
}
if(GetAsyncKeyState(VK_F3)&1) {
nosky = !nosky;
}
if (boxes) {
PushToConsole("ModelDebug_DrawBoxes 1");
}
else {
PushToConsole("ModelDebug_DrawBoxes 0");
}
if (nosky) {
PushToConsole("DrawSky 1");
}
else {
PushToConsole("DrawSky 0");
}
Sleep(100);
}
BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
DisableThreadLibraryCalls(hDll);
if ( dwReason == DLL_PROCESS_ATTACH )
{
MessageBoxA(0, "Hack Made By koolman123", 0);
CreateThread(NULL, NULL,hello, NULL, NULL, NULL);
}
return TRUE;
}
else {
PushToConsole("DrawSky 0");
}
Sleep(100);
}
else {
PushToConsole("DrawSky 0");
}
Sleep(100);
}
}
#include <iostream>
#include <windows.h>
using namespace std;
void __cdecl PushToConsole(char* szVal ) {
DWORD dwCShell = (DWORD)GetModuleHandleA("CShell.dll");
if( dwCShell != NULL )
{
DWORD *LTClient = ( DWORD* )( (dwCShell + 0x299D40) );
void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x1F8 );
_asm
{
push szVal;
call CONoff;
add esp, 4;
}
}
}
DWORD WINAPI hello(LPVOID) {
while(GetModuleHandleA("CShell.dll") == NULL ) {
Sleep(100);
}
bool boxes = true;
bool nosky = true;
for(;;) {
if (boxes) {
PushToConsole("ModelDebug_DrawBoxes 1");
}
else {
PushToConsole("ModelDebug_DrawBoxes 0");
}
if (nosky) {
PushToConsole("DrawSky 1");
}
else {
PushToConsole("DrawSky 0");
}
Sleep(100);
}
}
BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
DisableThreadLibraryCalls(hDll);
if ( dwReason == DLL_PROCESS_ATTACH )
{
CreateThread(NULL, NULL,hello, NULL, NULL, NULL);
}
return TRUE;
}