I tried to inject this simple DLL into CS:GO, but CS always crashes.
#include <Windows.h>
BOOL APIENTRY DllMain( HMODULE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved
)
{
switch (ul_reason_for_call)
{
case DLL_PROCESS_ATTACH:
MessageBox(NULL, L"Hello World!", L"Dll says:", MB_OK);
break;
case DLL_THREAD_ATTACH:
case DLL_THREAD_DETACH:
case DLL_PROCESS_DETACH:
break;
}
return TRUE;
}
Process pid: 17352
Mapping...
File ok
Data allocated
My shellcode pointer 01151E40
Target point 23700000
Press any key to continue . . .
Thread created at: 23700000, waiting for return...
Process crashed, exit code: -1073741819
Error while mapping.
Press any key to continue . . .