
#include <windows.h>
#include <iostream>
using namespace std;
void __cdecl PushToConsole(char* szVal ) {
DWORD dwCShell = (DWORD)GetModuleHandleA("CShell.dll");
if( dwCShell != NULL )
{
DWORD *LTClient = ( DWORD* )( (dwCShell + 0x2E7FA8) );
void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x1C0 );
_asm
{
push szVal;
call CONoff;
add esp, 4;
}
}
}
DWORD WINAPI hello(LPVOID) {
while(GetModuleHandleA("CShell.dll") == NULL ) {
Sleep(120);
}
bool nosky = true;
for(;;) {
__asm pushad;
if(GetAsyncKeyState(VK_F3)&1) {
nosky = !nosky;
}
if (nosky) {
PushToConsole("DrawSky 1");
}
else {
PushToConsole("DrawSky 0");
}
Sleep(120);
__asm popad;
}
}
BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
DisableThreadLibraryCalls(hDll);
if ( dwReason == DLL_PROCESS_ATTACH )
{
MessageBoxA(0, " ", "Hack Injetado", 0);
CreateThread(NULL, NULL,hello, NULL, NULL, NULL);
}
return TRUE;
}
void __cdecl PushToConsole (char * szVal) {
Note: That this Patch or
PushToConsole (DrawSky 1 ");
}
else {
PushToConsole (DrawSky 0 ");
PS: Or is it that this patch aki