< Summary

Class:SharpHoundCommonLib.LDAPQueries.CommonFilters
Assembly:SharpHoundCommonLib
File(s):D:\a\SharpHoundCommon\SharpHoundCommon\src\CommonLib\LdapQueries\CommonFilters.cs
Covered lines:1
Uncovered lines:13
Coverable lines:14
Total lines:29
Line coverage:7.1% (1 of 14)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Cyclomatic complexity NPath complexity Sequence coverage
SpecificSID(...)100%100%
SpecificGUID(...)100%100%

File(s)

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

#LineLine coverage
 1namespace SharpHoundCommonLib.LDAPQueries
 2{
 3    public static class CommonFilters
 4    {
 05        public static string EnabledOnly => "(!(UserAccountControl:1.2.840.113556.1.4.803:=2))";
 6
 07        public static string NeedsGPCFilePath => "(gpcfilesyspath=*)";
 8
 09        public static string NeedsSPN => "(serviceprincipalname=*)";
 10
 011        public static string ExcludeDomainControllers => "(!(userAccountControl:1.2.840.113556.1.4.803:=8192))";
 12
 013        public static string DomainControllers => "(userAccountControl:1.2.840.113556.1.4.803:=8192)";
 14
 215        public static string TrustedDomains => "(objectclass=trusteddomain)";
 16
 17        public static string SpecificSID(string sid)
 018        {
 019            var hSid = Helpers.ConvertSidToHexSid(sid);
 020            return $"(objectsid={hSid})";
 021        }
 22
 23        public static string SpecificGUID(string guid)
 024        {
 025            var hGuid = Helpers.ConvertGuidToHexGuid(guid);
 026            return $"(objectguid={hGuid})";
 027        }
 28    }
 29}