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

Revoking "Impersonate" revokes "Tcb" instead #2

Open
jsdhasfedssad opened this issue Dec 16, 2022 · 4 comments
Open

Revoking "Impersonate" revokes "Tcb" instead #2

jsdhasfedssad opened this issue Dec 16, 2022 · 4 comments

Comments

@jsdhasfedssad
Copy link

Hi,

I am testing your tool and have stumbled onto what I think is an error. When I try to revoke "Impersonate/SeImpersonatePrivilege" your tool revokes "Tcb/SeTcbPrivilege" instead. I am executing this using an elevated CMD on a DC.

userrightsutil

@jsdhasfedssad jsdhasfedssad changed the title Revoking "Impersonate" revokes "SeTcbPrivilege" instead Revoking "Impersonate" revokes "Tcb" instead Dec 16, 2022
@daem0nc0re
Copy link
Owner

Thanks for reporting!
I will handle it as soon as possible.

@daem0nc0re
Copy link
Owner

I tested on Domain Controller (Windows Server 2019) but failed to replicate your situation :(
As far as I see, it seems that there are no suspicious things in my code.
So I don't seem to be able to do much more than this, but if you have any additional information please let me know.

Untitled

@jsdhasfedssad
Copy link
Author

Strange... Why does it fail for me then?

I tested again using a different account and this time I tried to revoke "IncreaseWorkingSet" instead. Your tool attempts to yet again revoke "Tcb" instead but this time that fails. My DC is also running 2019.

Is there a debug or verbose flag I can use?

userrightsutil2

@daem0nc0re
Copy link
Owner

This tool converts your input by the following function.
So you can test it by inserting Console.WriteLine(right); into before if statement and Console.WriteLine(userRight.ToString()); into before return true;.
But this is simply compare input string and I have no idea why the conversion is failed in your environment.

static bool ResolveRights(string right, out Rights userRight)

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

2 participants