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

Create Session Tokens with ZwCreateToken #29

Open
iamacarpet opened this issue Feb 11, 2021 · 1 comment
Open

Create Session Tokens with ZwCreateToken #29

iamacarpet opened this issue Feb 11, 2021 · 1 comment

Comments

@iamacarpet
Copy link
Owner

As a starting point to implementing RunAs functionality, we'll need to be able to create tokens with ZwCreateToken

This is an apparently undocumented API that allows you to execute as a user without their full credentials.

This library normally runs (for us) as NT AUTH\SYSTEM, so permissions shouldn't be a problem.

A good example, I'm told, is "RunAsEx" on CodeProject.

This will then allow "CreateProcessAsUser" with that token.

@iamacarpet
Copy link
Owner Author

This might be helpful: ansible/ansible#34343

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

No branches or pull requests

1 participant