1
mirror of https://github.com/rapid7/metasploit-payloads synced 2024-11-20 14:39:22 +01:00

Revert "Update remote_thread.c"

This reverts commit aff81538ec.
This commit is contained in:
cod 2024-09-17 11:47:22 +02:00
parent aff81538ec
commit a91fb72536

View File

@ -18,7 +18,7 @@ static BOOL pRtlCreateUserThreadAttempted = FALSE;
typedef DWORD (WINAPI * PGetThreadId)(HANDLE);
/*! @brief Reference to the loaded GetThreadId function pointer. */
static PGetThreadId pGetThreadId = NULL;
/*! @brief Indication of whether an attempt to locate the pGetThreadId pointer has been made. */
/*! @brief Indication of whether an attempt to locate the pRtlCreateUserThread pointer has been made. */
static BOOL pGetThreadIdAttempted = FALSE;
/*!
@ -93,7 +93,7 @@ HANDLE create_remote_thread(HANDLE hProcess, SIZE_T sStackSize, LPVOID pvStartAd
pGetThreadId = (PGetThreadId)GetProcAddress(GetModuleHandleA("kernel32"), "GetThreadId");
if (pGetThreadId)
{
dprintf("[REMOTETHREAD] GetThreadId found at %p", pGetThreadId);
dprintf("[REMOTHREAD] GetThreadId found at %p", pGetThreadId);
}
}
pGetThreadIdAttempted = TRUE;