| | 1 | | namespace SharpHoundRPC.LSANative |
| | 2 | | { |
| | 3 | | public class UserRights |
| | 4 | | { |
| | 5 | | public const string AssignPrimaryToken = "SeAssignPrimaryTokenPrivilege"; |
| | 6 | | public const string Audit = "SeAuditPrivilege"; |
| | 7 | | public const string Backup = "SeBackupPrivilege"; |
| | 8 | | public const string BatchLogon = "SeBatchLogonRight"; |
| | 9 | | public const string ChangeNotify = "SeChangeNotifyPrivilege"; |
| | 10 | | public const string CreateGlobal = "SeCreateGlobalPrivilege"; |
| | 11 | | public const string CreatePagefile = "SeCreatePagefilePrivilege"; |
| | 12 | | public const string CreatePermanent = "SeCreatePermanentPrivilege"; |
| | 13 | | public const string CreateSymbolicLink = "SeCreateSymbolicLinkPrivilege"; |
| | 14 | | public const string CreateToken = "SeCreateTokenPrivilege"; |
| | 15 | | public const string Debug = "SeDebugPrivilege"; |
| | 16 | | public const string DenyBatchLogon = "SeDenyBatchLogonRight"; |
| | 17 | | public const string DenyInteractiveLogon = "SeDenyInteractiveLogonRight"; |
| | 18 | | public const string DenyNetworkLogon = "SeDenyNetworkLogonRight"; |
| | 19 | | public const string DenyRemoteInteractiveLogon = "SeDenyRemoteInteractiveLogonRight"; |
| | 20 | | public const string DenyServiceLogon = "SeDenyServiceLogonRight"; |
| | 21 | | public const string EnableDelegation = "SeEnableDelegationPrivilege"; |
| | 22 | | public const string Impersonate = "SeImpersonatePrivilege"; |
| | 23 | | public const string IncreaseBasePriority = "SeIncreaseBasePriorityPrivilege"; |
| | 24 | | public const string IncreaseQuota = "SeIncreaseQuotaPrivilege"; |
| | 25 | | public const string IncreaseWorkingSet = "SeIncreaseWorkingSetPrivilege"; |
| | 26 | | public const string InteractiveLogon = "SeInteractiveLogonRight"; |
| | 27 | | public const string LoadDriver = "SeLoadDriverPrivilege"; |
| | 28 | | public const string LockMemory = "SeLockMemoryPrivilege"; |
| | 29 | | public const string MachineAccount = "SeMachineAccountPrivilege"; |
| | 30 | | public const string ManageVolume = "SeManageVolumePrivilege"; |
| | 31 | | public const string NetworkLogon = "SeNetworkLogonRight"; |
| | 32 | | public const string ProfileSingleProcess = "SeProfileSingleProcessPrivilege"; |
| | 33 | | public const string Relabel = "SeRelabelPrivilege"; |
| | 34 | | public const string RemoteInteractiveLogon = "SeRemoteInteractiveLogonRight"; |
| | 35 | | public const string RemoteShutdown = "SeRemoteShutdownPrivilege"; |
| | 36 | | public const string Restore = "SeRestorePrivilege"; |
| | 37 | | public const string Security = "SeSecurityPrivilege"; |
| | 38 | | public const string ServiceLogon = "SeServiceLogonRight"; |
| | 39 | | public const string Shutdown = "SeShutdownPrivilege"; |
| | 40 | | public const string SyncAgent = "SeSyncAgentPrivilege"; |
| | 41 | | public const string SystemEnvironment = "SeSystemEnvironmentPrivilege"; |
| | 42 | | public const string SystemProfile = "SeSystemProfilePrivilege"; |
| | 43 | | public const string SystemTime = "SeSystemtimePrivilege"; |
| | 44 | | public const string TakeOwnership = "SeTakeOwnershipPrivilege"; |
| | 45 | | public const string Tcb = "SeTcbPrivilege"; |
| | 46 | | public const string TimeZone = "SeTimeZonePrivilege"; |
| | 47 | | public const string TrustedCredManAccess = "SeTrustedCredManAccessPrivilege"; |
| | 48 | | public const string Undock = "SeUndockPrivilege"; |
| | 49 | |
|
| 0 | 50 | | public static readonly string[] AllPrivileges = |
| 0 | 51 | | { |
| 0 | 52 | | AssignPrimaryToken, Audit, Backup, BatchLogon, ChangeNotify, CreateGlobal, CreatePagefile, CreatePermanent, |
| 0 | 53 | | CreateSymbolicLink, CreateToken, Debug, DenyBatchLogon, DenyInteractiveLogon, DenyNetworkLogon, |
| 0 | 54 | | DenyRemoteInteractiveLogon, DenyServiceLogon, EnableDelegation, Impersonate, IncreaseBasePriority, |
| 0 | 55 | | IncreaseQuota, IncreaseWorkingSet, InteractiveLogon, LoadDriver, LockMemory, MachineAccount, ManageVolume, |
| 0 | 56 | | NetworkLogon, ProfileSingleProcess, Relabel, RemoteInteractiveLogon, RemoteShutdown, Restore, Security, |
| 0 | 57 | | ServiceLogon, Shutdown, SyncAgent, SystemEnvironment, SystemProfile, SystemTime, TakeOwnership, Tcb, |
| 0 | 58 | | TimeZone, TrustedCredManAccess, Undock |
| 0 | 59 | | }; |
| | 60 | | } |
| | 61 | | } |