< Summary

Class:SharpHoundCommonLib.LDAPQueries.CommonProperties
Assembly:SharpHoundCommonLib
File(s):D:\a\SharpHoundCommon\SharpHoundCommon\src\CommonLib\LdapQueries\CommonProperties.cs
Covered lines:83
Uncovered lines:0
Coverable lines:83
Total lines:101
Line coverage:100% (83 of 83)
Covered branches:0
Total branches:0

Metrics

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

File(s)

D:\a\SharpHoundCommon\SharpHoundCommon\src\CommonLib\LdapQueries\CommonProperties.cs

#LineLine coverage
 1namespace SharpHoundCommonLib.LDAPQueries
 2{
 3    public static class CommonProperties
 4    {
 15        public static readonly string[] TypeResolutionProps =
 16        {
 17            LDAPProperties.SAMAccountType, LDAPProperties.ObjectSID, LDAPProperties.ObjectGUID,
 18            LDAPProperties.ObjectClass, LDAPProperties.SAMAccountName, LDAPProperties.GroupMSAMembership,
 19            LDAPProperties.Flags
 110        };
 11
 112        public static readonly string[] ObjectID = { LDAPProperties.ObjectSID, LDAPProperties.ObjectGUID };
 113        public static readonly string[] ObjectSID = { LDAPProperties.ObjectSID };
 114        public static readonly string[] GPCFileSysPath = { LDAPProperties.GPCFileSYSPath };
 15
 116        public static readonly string[] BaseQueryProps =
 117        {
 118            LDAPProperties.ObjectSID, LDAPProperties.DistinguishedName, LDAPProperties.ObjectGUID,
 119            LDAPProperties.LegacyLAPSExpirationTime, LDAPProperties.LAPSExpirationTime, LDAPProperties.IsDeleted,
 120            LDAPProperties.UserAccountControl
 121        };
 22
 123        public static readonly string[] GroupResolutionProps =
 124        {
 125            LDAPProperties.SAMAccountName, LDAPProperties.DistinguishedName, LDAPProperties.SAMAccountType,
 126            LDAPProperties.Members, LDAPProperties.CanonicalName, LDAPProperties.PrimaryGroupID,
 127            LDAPProperties.DNSHostName
 128        };
 29
 130        public static readonly string[] ComputerMethodProps =
 131        {
 132            LDAPProperties.SAMAccountName, LDAPProperties.DistinguishedName, LDAPProperties.DNSHostName,
 133            LDAPProperties.SAMAccountType, LDAPProperties.OperatingSystem, LDAPProperties.PasswordLastSet,
 134            LDAPProperties.LastLogonTimestamp
 135        };
 36
 137        public static readonly string[] ACLProps =
 138        {
 139            LDAPProperties.SAMAccountName, LDAPProperties.DistinguishedName, LDAPProperties.DNSHostName,
 140            LDAPProperties.SAMAccountType, LDAPProperties.SecurityDescriptor,
 141            LDAPProperties.DisplayName, LDAPProperties.ObjectClass, LDAPProperties.ObjectSID, LDAPProperties.Name
 142        };
 43
 144        public static readonly string[] ObjectPropsProps =
 145        {
 146            LDAPProperties.SAMAccountName, LDAPProperties.DistinguishedName, LDAPProperties.SAMAccountType,
 147            LDAPProperties.PasswordLastSet, LDAPProperties.LastLogon, LDAPProperties.LastLogonTimestamp,
 148            LDAPProperties.ObjectSID,
 149            LDAPProperties.SIDHistory, LDAPProperties.DNSHostName, LDAPProperties.OperatingSystem,
 150            LDAPProperties.ServicePack, LDAPProperties.ServicePrincipalNames, LDAPProperties.DisplayName,
 151            LDAPProperties.Email, LDAPProperties.Title,
 152            LDAPProperties.HomeDirectory, LDAPProperties.Description, LDAPProperties.AdminCount,
 153            LDAPProperties.UserPassword, LDAPProperties.GPCFileSYSPath, LDAPProperties.ObjectClass,
 154            LDAPProperties.DomainFunctionalLevel, LDAPProperties.ObjectGUID, LDAPProperties.Name,
 155            LDAPProperties.GroupPolicyOptions, LDAPProperties.AllowedToDelegateTo,
 156            LDAPProperties.AllowedToActOnBehalfOfOtherIdentity, LDAPProperties.WhenCreated,
 157            LDAPProperties.HostServiceAccount, LDAPProperties.UnixUserPassword, LDAPProperties.MsSFU30Password,
 158            LDAPProperties.UnicodePassword, LDAPProperties.ProfilePath, LDAPProperties.ScriptPath,
 159            LDAPProperties.ExpirePasswordsOnSmartCardOnlyAccounts, LDAPProperties.MachineAccountQuota,
 160            LDAPProperties.SupportedEncryptionTypes, LDAPProperties.DSHeuristics,
 161            LDAPProperties.MinPwdLength, LDAPProperties.PwdProperties, LDAPProperties.MinPwdAge,
 162            LDAPProperties.MaxPwdAge, LDAPProperties.PwdHistoryLength, LDAPProperties.LockoutDuration,
 163            LDAPProperties.LockoutThreshold, LDAPProperties.LockOutObservationWindow
 164        };
 65
 166        public static readonly string[] ContainerProps =
 167        {
 168            LDAPProperties.DisplayName, LDAPProperties.Name, LDAPProperties.ObjectGUID, LDAPProperties.GPLink,
 169            LDAPProperties.GroupPolicyOptions, LDAPProperties.ObjectClass
 170        };
 71
 172        public static readonly string[] SPNTargetProps =
 173        {
 174            LDAPProperties.ServicePrincipalNames, LDAPProperties.SAMAccountName, LDAPProperties.SAMAccountType
 175        };
 76
 177        public static readonly string[] DomainTrustProps =
 178        {
 179            LDAPProperties.TrustAttributes, LDAPProperties.SecurityIdentifier, LDAPProperties.TrustDirection,
 180            LDAPProperties.TrustType, LDAPProperties.CanonicalName
 181        };
 82
 183        public static readonly string[] GPOLocalGroupProps =
 184        {
 185            LDAPProperties.GPLink, LDAPProperties.Name
 186        };
 87
 188        public static readonly string[] CertAbuseProps =
 189        {
 190            LDAPProperties.CertificateTemplates, LDAPProperties.Flags, LDAPProperties.DNSHostName, LDAPProperties.CACert
 191            LDAPProperties.PKIEnrollmentFlag, LDAPProperties.DisplayName, LDAPProperties.Name, LDAPProperties.TemplateSc
 192            LDAPProperties.PKIOverlappedPeriod, LDAPProperties.PKIExpirationPeriod, LDAPProperties.ExtendedKeyUsage, LDA
 193            LDAPProperties.CertificateApplicationPolicy, LDAPProperties.CertificatePolicy, LDAPProperties.IssuancePolici
 194            LDAPProperties.ApplicationPolicies, LDAPProperties.PKIPrivateKeyFlag, LDAPProperties.OIDGroupLink
 195        };
 96
 197        public static readonly string[] StealthProperties = {
 198            LDAPProperties.HomeDirectory, LDAPProperties.ScriptPath, LDAPProperties.ProfilePath
 199        };
 100    }
 101}

Methods/Properties

.cctor()