#include #include #include #include static DWORD WINAPI shadowcast_init(void *param) { MessageBox(NULL, "I was injected in to this process, haha!", "pwnt!", MB_OK); return 1; } BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) { if ( fdwReason != DLL_PROCESS_ATTACH ) return TRUE; return (CreateThread(0, 0, shadowcast_init, hinstDLL, 0, NULL) != NULL); }