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

improve --resolve-sd output #42

Open
Brother-x86 opened this issue Nov 8, 2023 · 2 comments
Open

improve --resolve-sd output #42

Brother-x86 opened this issue Nov 8, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@Brother-x86
Copy link

Brother-x86 commented Nov 8, 2023

Hello!
Thank you for the démo :)

Just this small idea to improve readability of : get object --attr nTSecurityDescriptor --resolve-sd

For example :

nTSecurityDescriptor.Owner: Domain Admins
nTSecurityDescriptor.Control: DACL_AUTO_INHERITED|DACL_PRESENT|SACL_AUTO_INHERITED|SELF_RELATIVE
nTSecurityDescriptor.ACL.0.Type: == ALLOWED_OBJECT ==
nTSecurityDescriptor.ACL.0.Trustee: RAS and IAS Servers
nTSecurityDescriptor.ACL.0.Right: READ_PROP
nTSecurityDescriptor.ACL.0.ObjectType: Logon-Information; Remote-Access-Information; Group-Membership; Account-Restrictions
nTSecurityDescriptor.ACL.1.Type: == ALLOWED_OBJECT ==
nTSecurityDescriptor.ACL.1.Trustee: Cert Publishers
nTSecurityDescriptor.ACL.1.Right: WRITE_PROP|READ_PROP
nTSecurityDescriptor.ACL.1.ObjectType: X509-Cert
nTSecurityDescriptor.ACL.2.Type: == ALLOWED_OBJECT ==
nTSecurityDescriptor.ACL.2.Trustee: WINDOWS_AUTHORIZATION_ACCESS_GROUP
nTSecurityDescriptor.ACL.2.Right: READ_PROP
nTSecurityDescriptor.ACL.2.ObjectType: Token-Groups-Global-And-Universal

Could become like this with TAB and jumpline:

nTSecurityDescriptor.Owner: Domain Admins
nTSecurityDescriptor.Control:	DACL_AUTO_INHERITED|DACL_PRESENT|SACL_AUTO_INHERITED|SELF_RELATIVE

nTSecurityDescriptor.ACL.0.Type: 	== ALLOWED_OBJECT ==
nTSecurityDescriptor.ACL.0.Trustee: 	RAS and IAS Servers
nTSecurityDescriptor.ACL.0.Right: 	READ_PROP
nTSecurityDescriptor.ACL.0.ObjectType:	Logon-Information; Remote-Access-Information; Group-Membership; Account-Restrictions

nTSecurityDescriptor.ACL.1.Type: 	== ALLOWED_OBJECT ==
nTSecurityDescriptor.ACL.1.Trustee:	Cert Publishers
nTSecurityDescriptor.ACL.1.Right:	WRITE_PROP|READ_PROP
nTSecurityDescriptor.ACL.1.ObjectType:	X509-Cert

nTSecurityDescriptor.ACL.2.Type:	== ALLOWED_OBJECT ==
nTSecurityDescriptor.ACL.2.Trustee:	WINDOWS_AUTHORIZATION_ACCESS_GROUP
nTSecurityDescriptor.ACL.2.Right:	READ_PROP
nTSecurityDescriptor.ACL.2.ObjectType:	Token-Groups-Global-And-Universal
@CravateRouge CravateRouge added the enhancement New feature or request label Nov 13, 2023
@Brother-x86
Copy link
Author

Hey, i do the code but i got problem with the pullRequest.

@CravateRouge
Copy link
Owner

What's happening?

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

No branches or pull requests

2 participants