Skip to content

Commit

Permalink
Fix BUG SpecterOps#70
Browse files Browse the repository at this point in the history
  • Loading branch information
godylockz committed Sep 13, 2023
1 parent 4ddf1b2 commit 764106f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/CommonLib/Processors/ACLProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,7 @@ public IEnumerable<ACE> ProcessACL(byte[] ntSecurityDescriptor, string objectDom
//Cool ACE courtesy of @rookuu. Allows a principal to add itself to a group and no one else
if (aceRights.HasFlag(ActiveDirectoryRights.Self) &&
!aceRights.HasFlag(ActiveDirectoryRights.WriteProperty) &&
!aceRights.HasFlag(ActiveDirectoryRights.GenericWrite) && objectType == Label.Group &&
aceType == ACEGuids.WriteMember)
!aceRights.HasFlag(ActiveDirectoryRights.GenericWrite) && objectType == Label.Group)
yield return new ACE
{
PrincipalType = resolvedPrincipal.ObjectType,
Expand Down

0 comments on commit 764106f

Please sign in to comment.