Hello everyone, I have a problem!
I did a hack, when I try to use it, this error occurs:
CrossFire error, Send Report? OMG!!
Look the source :
#include <windows.h>
#include <iostream>
using namespace std;
void __cdecl PTC(char* command ) {
DWORD dwCShell = (DWORD)GetModuleHandleA("CShell.dll");
if( dwCShell != NULL )
{
DWORD *LTC = ( DWORD* )( (dwCShell + 0x2E39C8) );
void* Console = ( void* )*( DWORD* )( *LTC + 0x1F8 );
_asm
{
push command;
call Console;
add esp, 4;
}
}
}
DWORD WINAPI hello(LPVOID) {
while(GetModuleHandleA("CShell.dll") == NULL ) {
Sleep(120);
}
bool whiteplayers = true;
bool nowall = true;
bool nosky = true;
bool nosmoke = true;
for(;; ) {
__asm pushad;
if(GetAsyncKeyState(VK_F2)&1) {
whiteplayers = !whiteplayers;
}
if(GetAsyncKeyState(VK_F3)&1) {
nowall = !nowall;
}
if(GetAsyncKeyState(VK_F4)&1) {
nosky = !nosky;
}
if(GetAsyncKeyState(VK_F5)&1) {
nosmoke = !nosmoke;
}
if (whiteplayers) {
PTC("TextureModels 1");
}
else {
PTC("TextureModels 0");
}
if (nowall) {
PTC("DrawWorld 1");
}
else {
PTC("DrawWorld 0");
}
if (nosky) {
PTC("DrawSky 1");
}
else {
PTC("DrawSky 0");
}
if (nosmoke) {
PTC("DrawParticles 1");
}
else {
PTC("DrawParticles 0");
}
Sleep(120);
__asm popad;
}
}
BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
DisableThreadLibraryCalls(hDll);
if ( dwReason == DLL_PROCESS_ATTACH )
{
MessageBoxA(0, "By youname", "Injected", 0);
CreateThread(NULL, NULL,hello, NULL, NULL, NULL);
}
return TRUE;
}