1
mirror of https://github.com/rapid7/metasploit-payloads synced 2025-03-12 12:14:29 +01:00

Land , command impersonation fix

This commit is contained in:
William Vu 2014-01-15 01:02:37 -06:00
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))
{