resolving merge with minor changes

This commit is contained in:
CallowBlack
2022-06-21 22:50:59 +03:00
19 changed files with 615 additions and 85 deletions

View File

@ -45,10 +45,15 @@ bool LoadLibraryDLL(HANDLE hProc, const std::string& dllpath)
VirtualFreeEx(hProc, pDLLPath, 0, MEM_RELEASE);
return false;
}
CloseHandle(hThread);
// TODO: Add waiting for thread end and release unneccessary data.
// VirtualFreeEx(hProc, pDLLPath, 0, MEM_RELEASE);
// Waiting for thread end and release unnecessary data.
if (WaitForSingleObject(hThread, 2000) == WAIT_OBJECT_0)
{
// ILog("[DLL Injection] Remote thread ended successfully.\n");
VirtualFreeEx(hProc, pDLLPath, 0, MEM_RELEASE);
}
CloseHandle(hThread);
ILog("[DLL Injection] Successfully LoadLibraryA injection.\n");
return true;