- credentialPrompt
- Purpose: Create a simple credential prompt
- API:
- CredUIPromptForCredentials (credui.lib)
-
- Purpose: Identifing whether the SID of the token is the well-known SID of the administrator group and whether it is enabled.
- API
- OpenProcessToken
- GetTokenInformation
- AllocateAndInitializeSid
- EqualSid
- LookupAccountSid
-
- Purpose: Enumerate all information in the access token.
- shutdown
- Purpose: Enable the privilege
SeShutdownPrivilege( if already have it but disable ) and shut down the host. - API
- GetProcAddress
- RtlAdjustPrivilege(advapi32.lib)
- ZwShutdownSystem
- Purpose: Enable the privilege