uac

Create a Low/Medium process from a elevated process with CreateRestrictedToken(LUA_TOKEN)

早过忘川 提交于 2021-02-07 09:20:24
问题 I'm trying to create a Medium or Low integrity process from a elevated process. I know there are other questions like this but they mostly focus on the workarounds like using Explorer or the Task Scheduler and I want to stick with CreateRestrictedToken() + CreateProcessAsUser() . I assume it must be possible to do this somehow since I believe UAC does it when you log in but I have not been able to get everything in the token to look like the normal UAC Medium IL token. You can get 80% there

Create a Low/Medium process from a elevated process with CreateRestrictedToken(LUA_TOKEN)

余生颓废 提交于 2021-02-07 09:20:08
问题 I'm trying to create a Medium or Low integrity process from a elevated process. I know there are other questions like this but they mostly focus on the workarounds like using Explorer or the Task Scheduler and I want to stick with CreateRestrictedToken() + CreateProcessAsUser() . I assume it must be possible to do this somehow since I believe UAC does it when you log in but I have not been able to get everything in the token to look like the normal UAC Medium IL token. You can get 80% there

Elevating from low to medium integrity

旧街凉风 提交于 2021-02-07 03:51:55
问题 This is similar to " how create medium integrity level process from low integrity level process? ", but I'm coming from a slightly different angle. (And that isn't answered anyway.) :) If a file is saved as low integrity (typically from a low integrity app such as a browser) then it is marked with a Low Integrity Mandatory Label. (This label can also be applied with icacls /setintegritylevel low .) If such a file is executed, it becomes a low integrity process, understandably. Is there some

Elevating from low to medium integrity

半城伤御伤魂 提交于 2021-02-07 03:50:26
问题 This is similar to " how create medium integrity level process from low integrity level process? ", but I'm coming from a slightly different angle. (And that isn't answered anyway.) :) If a file is saved as low integrity (typically from a low integrity app such as a browser) then it is marked with a Low Integrity Mandatory Label. (This label can also be applied with icacls /setintegritylevel low .) If such a file is executed, it becomes a low integrity process, understandably. Is there some

Installer built by Inno Setup and SPAWNWND, NOTIFYWND parameters on UAC window

ぃ、小莉子 提交于 2020-12-29 14:21:14
问题 What are SPAWNWND and NOTIFYWND parameters in the program path? 回答1: Those two parameters are used for communication between the elevated and non elevated parts of the setup for ...AsOriginalUser functionality, exit codes, etc. You can probably find more details in the Inno source code itself. Note that these are an implementation detail and you shouldn't rely on them or do anything with the values. 回答2: spawn() is a c-function group that executes, child processes, but not through a forking!

Installer built by Inno Setup and SPAWNWND, NOTIFYWND parameters on UAC window

岁酱吖の 提交于 2020-12-29 14:20:55
问题 What are SPAWNWND and NOTIFYWND parameters in the program path? 回答1: Those two parameters are used for communication between the elevated and non elevated parts of the setup for ...AsOriginalUser functionality, exit codes, etc. You can probably find more details in the Inno source code itself. Note that these are an implementation detail and you shouldn't rely on them or do anything with the values. 回答2: spawn() is a c-function group that executes, child processes, but not through a forking!

Installer built by Inno Setup and SPAWNWND, NOTIFYWND parameters on UAC window

我怕爱的太早我们不能终老 提交于 2020-12-29 14:10:15
问题 What are SPAWNWND and NOTIFYWND parameters in the program path? 回答1: Those two parameters are used for communication between the elevated and non elevated parts of the setup for ...AsOriginalUser functionality, exit codes, etc. You can probably find more details in the Inno source code itself. Note that these are an implementation detail and you shouldn't rely on them or do anything with the values. 回答2: spawn() is a c-function group that executes, child processes, but not through a forking!

Installer built by Inno Setup and SPAWNWND, NOTIFYWND parameters on UAC window

跟風遠走 提交于 2020-12-29 14:09:41
问题 What are SPAWNWND and NOTIFYWND parameters in the program path? 回答1: Those two parameters are used for communication between the elevated and non elevated parts of the setup for ...AsOriginalUser functionality, exit codes, etc. You can probably find more details in the Inno source code itself. Note that these are an implementation detail and you shouldn't rely on them or do anything with the values. 回答2: spawn() is a c-function group that executes, child processes, but not through a forking!