mirror of
https://github.com/rapid7/metasploit-payloads
synced 2025-03-12 12:14:29 +01:00
Land #67, command impersonation fix
This commit is contained in:
commit
7f3bbe6911
@ -267,7 +267,7 @@ BOOL command_process_inline(Command *baseCommand, Command *extensionCommand, Rem
|
||||
|
||||
#ifdef _WIN32
|
||||
// Impersonate the thread token if needed (only on Windows)
|
||||
if (dwIndex == 0 && remote->hServerToken != remote->hThreadToken)
|
||||
if (remote->hServerToken != remote->hThreadToken)
|
||||
{
|
||||
if (!ImpersonateLoggedOnUser(remote->hThreadToken))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user