mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-25 23:07:18 +00:00
[host] windows: remove ImpersonateLoggedOnUser call
It shouldn't have any effect, since the host application is created with the token, and there is no need for the service itself to impersonate. In practice, removal doesn't appear to have any effect on the ability to capture privileged things like secure desktop.
This commit is contained in:
parent
789f21ccb3
commit
81561a242f
@ -308,16 +308,6 @@ void Launch(void)
|
|||||||
goto fail_token;
|
goto fail_token;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!enablePriv(SE_IMPERSONATE_NAME))
|
|
||||||
goto fail_token;
|
|
||||||
|
|
||||||
if (!ImpersonateLoggedOnUser(hToken))
|
|
||||||
{
|
|
||||||
doLog("fail_tokened to impersonate\n");
|
|
||||||
winerr();
|
|
||||||
goto fail_token;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!enablePriv(SE_ASSIGNPRIMARYTOKEN_NAME))
|
if (!enablePriv(SE_ASSIGNPRIMARYTOKEN_NAME))
|
||||||
goto fail_token;
|
goto fail_token;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user