this see ghosts hack crashes crossfire..... why?!?
When the dll is injected, messagebox comes up, then "Client MFC application has encountered an error and needs to close"
What would be causing it??
Code: (it is for see ghosts)
What would be causing it??
Code: (it is for see ghosts)
Code:
#include <windows.h>
#define GhostMgr 0xA021F8
void SeeGhosts()
{
DWORD CShell = NULL;
do
{
CShell = (DWORD)GetModuleHandleA("CShell.dll");
Sleep(100);
}
while (CShell == NULL);
while (1)
{
CShell = (DWORD)GetModuleHandleA("CShell.dll");
DWORD cGhostMgr = (DWORD)(CShell + GhostMgr);
*(float*)(cGhostMgr + 0x88) = 1.0f;
*(float*)(cGhostMgr + 0x8C) = 1.0f;
*(float*)(cGhostMgr + 0x90) = 1.0f;
Sleep(100);
}
}
extern "C" __declspec(dllexport) BOOL APIENTRY DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
{
if(fdwReason == DLL_PROCESS_ATTACH)
{
DisableThreadLibraryCalls(hinstDLL);
CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)SeeGhosts, NULL, NULL, NULL);
char msg[] = {'H', 'a', 'c', 'k', ' ', 'b', 'y', ' ', '_', 'c', 'o', 'r', 'n', '_', '\0'};
char title[] = {'I', 'n', 'j', 'e', 'c', 't', 'e', 'd', '\0'};
MessageBox(NULL, msg, title, MB_OK);
return 0;
}
return 0;
}


