Created
February 17, 2022 16:45
-
-
Save v1stra/520b972856d5d9c4f89dafc67523a1d2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| class Program { | |
| public enum test : int { | |
| SCRIPT = 0x00000001, | |
| ACCOUNTDISABLE = 0x00000002, | |
| HOMEDIR_REQUIRED = 0x00000008, | |
| LOCKOUT = 0x00000010, | |
| PASSWD_NOTREQD = 0x00000020, | |
| PASSWD_CANT_CHANGE = 0x00000040, | |
| ENCRYPTED_TEXT_PASSWORD_ALLOWED = 0x00000080, | |
| TEMP_DUPLICATE_ACCOUNT = 0x00000100, | |
| NORMAL_ACCOUNT = 0x00000200, | |
| INTERDOMAIN_TRUST_ACCOUNT = 0x00000800, | |
| WORKSTATION_TRUST_ACCOUNT = 0x00001000, | |
| SERVER_TRUST_ACCOUNT = 0x00002000, | |
| DONT_EXPIRE_PASSWD = 0x00010000, | |
| MNS_LOGON_ACCOUNT = 0x00020000, | |
| SMARTCARD_REQUIRED = 0x00040000, | |
| TRUSTED_FOR_DELEGATION = 0x00080000, | |
| NOT_DELEGATED = 0x00100000, | |
| USE_DES_KEY_ONLY = 0x00200000, | |
| DONT_REQUIRE_PREAUTH = 0x00400000, | |
| PASSWORD_EXPIRED = 0x00800000, | |
| TRUSTED_TO_AUTHENTICATE_FOR_DELEGATION = 0x01000000, | |
| PARTIAL_SECRETS_ACCOUNT = 0x04000000, | |
| USE_AES_KEYS = 0x08000000 | |
| } | |
| public static void Main (string[] args) { | |
| int entry = 262658; | |
| foreach (var t in test.GetNames(typeof(test))) { | |
| if ((entry & (int)Enum.Parse(typeof(test), t)) > 0){ | |
| Console.WriteLine(t); | |
| } | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment