Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SeImpersonatePrivilege required #5

Open
0xShkk opened this issue Dec 7, 2023 · 0 comments
Open

SeImpersonatePrivilege required #5

0xShkk opened this issue Dec 7, 2023 · 0 comments

Comments

@0xShkk
Copy link

0xShkk commented Dec 7, 2023

Just tested your tool, because I was in a situation where it could have been useful.

However, when executed in a default user context, CreateProcessWithTokenW fails with the Win32 error 1326

When testing further, it seems like the token privilege SeImpersonatePrivilege is now required in order to spawn a new process with an impersonation token (which also makes sense somehow).

Therefore, the tool is only capable of impersonating other users when the executing process has a token with the SeImpersonatePrivilege right assigned, which is default for Administrators or service accounts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant