Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
The `flag=*` filter filters out almost all OUs and GPOs which have this flag unset (all in my environement). I don'' think this flag is used in SharpHound GPO processing so removing it should fix the issue without side effects.
  • Loading branch information
Hackndo authored Nov 22, 2021
1 parent 7615860 commit 7d75625
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SharpHound3/LdapBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ internal static LdapQueryData BuildLdapQuery(CollectionMethodResolved methods)
{
//ldapFilterParts.Add("(&(&(objectcategory=groupPolicyContainer)(flags=*))(name=*)(gpcfilesyspath=*))");
//ldapProperties.AddRange(new[] {"gpcfilesyspath", "displayname"});
ldapFilterParts.Add("(&(|(objectcategory=organizationalUnit)(objectclass=domain))(gplink=*)(flags=*))");
ldapFilterParts.Add("(&(|(objectcategory=organizationalUnit)(objectclass=domain))(gplink=*))");
ldapProperties.AddRange(new[] { "gplink", "name" });
}

Expand Down

0 comments on commit 7d75625

Please sign in to comment.