HelpFix it Please my SOurce logger Crash CLient MFC!

Posts 1–8 of 8 · Page 1 of 1
Fix it Please my SOurce logger Crash CLient MFC!
#include <windows.h>

DWORD WINAPI MemoryHook(LPVOID)
{
DWORD dwEngineEntryPoint = (DWORD)GetModuleHandle("crossfire.exe");
Writelog( "Crossfire Entry Point : 0x%X", dwEngineEntryPoint );

DWORD WallHack = FindPattern(dwEngineEntryPoint,0xFFFFFF, (PBYTE)"\xB8\x00\x00\x00\x00\xE8\x00\x00\x00\x00\x 8B\x06\x8B\x50\x18", "x????x????xxxxx");
if(WallHack != NULL)
{
WallHack = *(DWORD*)(WallHack + 0x1);
Writelog("#define WallHack \t\t0x%.8X",WallHack+0xA4);
}

ExitProcess(0);
}

bool Ready2Hook()
{
if(GetModuleHandleA("crossfire.exe") != NULL
&& GetModuleHandleA("CShell.dll") != NULL
&& GetModuleHandleA("ClientFx.fxd") != NULL)
return 1;
return 0;
}
DWORD WINAPI Hook(LPVOID)
{
while(!Ready2Hook()) Sleep(250);
CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)MemoryHook, NULL, NULL, NULL);
return 0;
}

BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
DisableThreadLibraryCalls(hDll);

if ( dwReason == DLL_PROCESS_ATTACH )
{
CreateThread(0,0,(LPTHREAD_START_ROUTINE)Hook,0,0, 0);
}
return 1;
}


My Base Logg Work but Crash (CLient MFC Application)
Someone Help me?
Quote Originally Posted by Astr3Lune View Post
#include <windows.h>

DWORD WINAPI MemoryHook(LPVOID)
{
DWORD dwEngineEntryPoint = (DWORD)GetModuleHandle("crossfire.exe");
Writelog( "Crossfire Entry Point : 0x%X", dwEngineEntryPoint );

DWORD WallHack = FindPattern(dwEngineEntryPoint,0xFFFFFF, (PBYTE)"\xB8\x00\x00\x00\x00\xE8\x00\x00\x00\x00\x 8B\x06\x8B\x50\x18", "x????x????xxxxx");
if(WallHack != NULL)
{
WallHack = *(DWORD*)(WallHack + 0x1);
Writelog("#define WallHack \t\t0x%.8X",WallHack+0xA4);
}

ExitProcess(0);
}

bool Ready2Hook()
{
if(GetModuleHandleA("crossfire.exe") != NULL
&& GetModuleHandleA("CShell.dll") != NULL
&& GetModuleHandleA("ClientFx.fxd") != NULL)
return 1;
return 0;
}
DWORD WINAPI Hook(LPVOID)
{
while(!Ready2Hook()) Sleep(250);
CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)MemoryHook, NULL, NULL, NULL);
return 0;
}

BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
DisableThreadLibraryCalls(hDll);

if ( dwReason == DLL_PROCESS_ATTACH )
{
CreateThread(0,0,(LPTHREAD_START_ROUTINE)Hook,0,0, 0);
}
return 1;
}


My Base Logg Work but Crash (CLient MFC Application)
Someone Help me?
/msg.......
what do you talking about?

msg?

im not Understand.
can u help me?
Quote Originally Posted by Astr3Lune View Post
Code:
DWORD WINAPI Hook(LPVOID)
{
while(!Ready2Hook()) Sleep(250);
CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)MemoryHook, NULL, NULL, NULL);
return 0;
}
i think if u changed it to normal call to the function it will work without creating a lot of threads
can i leech your sours and iw ill try to fix it
i missed it ,,,,
lol , u can't log in while 1 , creating file and log and then close and then creating , log , close ... WTF
make a bool to use it once
Code:
bool once;
if(!once){
once = true;
Log();
}
Quote Originally Posted by I2espect View Post
i missed it ,,,,
lol , u can't log in while 1 , creating file and log and then close and then creating , log , close ... WTF
make a bool to use it once
Code:
bool once;
if(!once){
once = true;
Log();
}
it work?
i will try it .

because my problem crash CLient MFC.

BTW thanks man
Quote Originally Posted by Astr3Lune View Post
it work?
i will try it .

because my problem crash CLient MFC.

BTW thanks man
Welcome Tell Me If It Worked
Posts 1–8 of 8 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Talk with us