mirror of
https://github.com/rapid7/metasploit-payloads
synced 2025-03-24 18:16:24 +01:00
Revert "Update remote_thread.c"
This reverts commit aff81538ec8a3a9a0439ead904d3add6cad8f2d4.
This commit is contained in:
parent
aff81538ec
commit
a91fb72536
@ -18,7 +18,7 @@ static BOOL pRtlCreateUserThreadAttempted = FALSE;
|
|||||||
typedef DWORD (WINAPI * PGetThreadId)(HANDLE);
|
typedef DWORD (WINAPI * PGetThreadId)(HANDLE);
|
||||||
/*! @brief Reference to the loaded GetThreadId function pointer. */
|
/*! @brief Reference to the loaded GetThreadId function pointer. */
|
||||||
static PGetThreadId pGetThreadId = NULL;
|
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;
|
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");
|
pGetThreadId = (PGetThreadId)GetProcAddress(GetModuleHandleA("kernel32"), "GetThreadId");
|
||||||
if (pGetThreadId)
|
if (pGetThreadId)
|
||||||
{
|
{
|
||||||
dprintf("[REMOTETHREAD] GetThreadId found at %p", pGetThreadId);
|
dprintf("[REMOTHREAD] GetThreadId found at %p", pGetThreadId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
pGetThreadIdAttempted = TRUE;
|
pGetThreadIdAttempted = TRUE;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user