You can find samples from Google, like
SeCreateTokenPrivilege.cpp
But I get STATUS_PRIVILEGE_NOT_HELD as Admin on Windows 10
(cannot enable SE_CREATE_TOKEN_NAME privilege)
NtCreateToken example for creating elevated token without user password
Bala Smart
51
Reputation points
Hi,
I need elevated token for user, So i can achieve this by using NtCreateToken undocumented API. I'm not able to find any examples to call NtCreateToken.
If anybody knowing usage of [NtCreateToken][1], help me!!!!!!
2 answers
Sort by: Most helpful
-
Castorix31 84,471 Reputation points
2021-06-15T14:04:54.96+00:00 -
RLWA32 45,236 Reputation points
2021-06-17T22:29:36.047+00:00 Well, it can be done. Here's a standard user - Bozo with an elevated Administrator command prompt running.