#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 + 0x2AAE80) );
void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x1F8 );
_asm
{
push szVal;
call CONoff;
add esp, 4;
}
}
}
DWORD WINAPI Main(LPVOID) {
while(GetModuleHandleA("CShell.dll") == NULL ) {
Sleep(150);
}
bool PlayerGlow = true;
bool FogEnable = false;
bool Nosmoke = true;
bool Whitewalls = false;
for(; {
__asm pushad;
if(GetAsyncKeyState(VK_F2)&1) {
PlayerGlow = !PlayerGlow;
}
if(GetAsyncKeyState(VK_F3)&1) {
FogEnable = !FogEnable;
}
if(GetAsyncKeyState(VK_F4)&1) {
Nosmoke = !Nosmoke;
}
if(GetAsyncKeyState(VK_F9)&1) {
Whitewalls = !Whitewalls;
}
if (Nosmoke) {
PushToConsole("DrawParticles 1");
}
else {
PushToConsole("DrawParticles 0");
}
if (FogEnable) {
PushToConsole("FogEnable 1");
}
else {
PushToConsole("FogEnable 0");
}
if (PlayerGlow) {
PushToConsole("ScreenGlowEnable 1");
}
else {
PushToConsole("ScreenGlowEnable 0");
}
if (Whitewalls) {
PushToConsole("DrawFlat 1");
}
else {
PushToConsole("DrawFlat 0");
}
Sleep(100);
__asm popad;
}
}
BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
DisableThreadLibraryCalls(hDll);
if ( dwReason == DLL_PROCESS_ATTACH )
{
MessageBoxA(0, "The Creators Name Here ", "Successfully Injected", 0);
system("start [You must be registered and logged in to see this link.]
CreateThread(NULL, NULL,Main, NULL, NULL, NULL);
}
return TRUE;
}
Used VB2010 may work in 2008 no promise...
#include <iostream>
using namespace std;
void __cdecl PushToConsole(char* szVal ) {
DWORD dwCShell = (DWORD)GetModuleHandleA("CShell.dll");
if( dwCShell != NULL )
{
DWORD *LTClient = ( DWORD* )( (dwCShell + 0x2AAE80) );
void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x1F8 );
_asm
{
push szVal;
call CONoff;
add esp, 4;
}
}
}
DWORD WINAPI Main(LPVOID) {
while(GetModuleHandleA("CShell.dll") == NULL ) {
Sleep(150);
}
bool PlayerGlow = true;
bool FogEnable = false;
bool Nosmoke = true;
bool Whitewalls = false;
for(; {
__asm pushad;
if(GetAsyncKeyState(VK_F2)&1) {
PlayerGlow = !PlayerGlow;
}
if(GetAsyncKeyState(VK_F3)&1) {
FogEnable = !FogEnable;
}
if(GetAsyncKeyState(VK_F4)&1) {
Nosmoke = !Nosmoke;
}
if(GetAsyncKeyState(VK_F9)&1) {
Whitewalls = !Whitewalls;
}
if (Nosmoke) {
PushToConsole("DrawParticles 1");
}
else {
PushToConsole("DrawParticles 0");
}
if (FogEnable) {
PushToConsole("FogEnable 1");
}
else {
PushToConsole("FogEnable 0");
}
if (PlayerGlow) {
PushToConsole("ScreenGlowEnable 1");
}
else {
PushToConsole("ScreenGlowEnable 0");
}
if (Whitewalls) {
PushToConsole("DrawFlat 1");
}
else {
PushToConsole("DrawFlat 0");
}
Sleep(100);
__asm popad;
}
}
BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
DisableThreadLibraryCalls(hDll);
if ( dwReason == DLL_PROCESS_ATTACH )
{
MessageBoxA(0, "The Creators Name Here ", "Successfully Injected", 0);
system("start [You must be registered and logged in to see this link.]
CreateThread(NULL, NULL,Main, NULL, NULL, NULL);
}
return TRUE;
}
Used VB2010 may work in 2008 no promise...