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

get_priv: add option to modify privileges in thread token #33

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

zer1t0
Copy link

@zer1t0 zer1t0 commented Oct 9, 2024

Hi,

Recently I was in a situation where required to enable the permissions of an impersonated token, however get_priv only allows to modify the main token of the process, so I added an option to modify the thread token, which is the impersonated one.

For enabling privileges in process token the command remains the same, but in case you want to enable privileges in the thread token, you must prepend a ~ symbol in the name of the privilege.

For example, indicate "SeDebugPrivilege" will enable the debug privilege in process token and "~SeDebugPrivilege" will do it in the thread token.

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

Successfully merging this pull request may close these issues.

1 participant