Skip to content
This repository has been archived by the owner on Sep 21, 2024. It is now read-only.

Commit

Permalink
Removed SeAssignPrimaryToken check
Browse files Browse the repository at this point in the history
  • Loading branch information
itm4n committed May 2, 2020
1 parent 24b8489 commit 975a93c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions PrintSpoofer/PrintSpoofer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -470,11 +470,11 @@ BOOL GetSystem(HANDLE hPipe)
goto cleanup;
}

if (!CheckAndEnablePrivilege(hSystemToken, SE_ASSIGNPRIMARYTOKEN_NAME))
{
wprintf(L"A privilege is missing: %ws\n", SE_ASSIGNPRIMARYTOKEN_NAME);
goto cleanup;
}
//if (!CheckAndEnablePrivilege(hSystemToken, SE_ASSIGNPRIMARYTOKEN_NAME))
//{
// wprintf(L"A privilege is missing: %ws\n", SE_ASSIGNPRIMARYTOKEN_NAME);
// goto cleanup;
//}

if (g_dwSessionId)
{
Expand Down

0 comments on commit 975a93c

Please sign in to comment.