Programming steps for launching an app with TrustedInstaller access token
Hi, I’m Kenji Mouri, the creator of NSudo, it’s one of the popular ways used for launching an app with TrustedInstaller access token.
I wonder to share you programming steps that how to launch an app with TrustedInstaller access token.
- Make sure your app which using to launch an app with TrustedInstaller access token is running as Administrator.
- Enable the SeDebugPrivilege for the access token of the current process context.
- Open and duplicate the access token of current session winlogon.exe process or session 0 smss.exe process.
- Enable all privileges in the duplicated access token which was acquired from step 2, then impersonate with it.
- Start TrustedInstaller service, open and duplicate the access token.
- Set the session id to the current session id for the access token which was acquired from step 4.
- Create process you want with the access token which was proceed with step 5.
I hope the article can give some help for Windows desktop app developers. Thanks for reading.
Unless otherwise stated, all articles in this blog follow the CC BY-NC-ND 4.0 license, please indicate the source for reprinting!