< Summary

Class:SharpHoundRPC.LSANative.UserRights
Assembly:SharpHoundRPC
File(s):D:\a\SharpHoundCommon\SharpHoundCommon\src\SharpHoundRPC\LSANative\UserRights.cs
Covered lines:0
Uncovered lines:10
Coverable lines:10
Total lines:61
Line coverage:0% (0 of 10)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Cyclomatic complexity NPath complexity Sequence coverage
.cctor()100%100%

File(s)

D:\a\SharpHoundCommon\SharpHoundCommon\src\SharpHoundRPC\LSANative\UserRights.cs

#LineLine coverage
 1namespace 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
 050        public static readonly string[] AllPrivileges =
 051        {
 052            AssignPrimaryToken, Audit, Backup, BatchLogon, ChangeNotify, CreateGlobal, CreatePagefile, CreatePermanent,
 053            CreateSymbolicLink, CreateToken, Debug, DenyBatchLogon, DenyInteractiveLogon, DenyNetworkLogon,
 054            DenyRemoteInteractiveLogon, DenyServiceLogon, EnableDelegation, Impersonate, IncreaseBasePriority,
 055            IncreaseQuota, IncreaseWorkingSet, InteractiveLogon, LoadDriver, LockMemory, MachineAccount, ManageVolume,
 056            NetworkLogon, ProfileSingleProcess, Relabel, RemoteInteractiveLogon, RemoteShutdown, Restore, Security,
 057            ServiceLogon, Shutdown, SyncAgent, SystemEnvironment, SystemProfile, SystemTime, TakeOwnership, Tcb,
 058            TimeZone, TrustedCredManAccess, Undock
 059        };
 60    }
 61}

Methods/Properties

.cctor()