Skip to content

Commit

Permalink
Merge pull request #180 from chvancooten/master
Browse files Browse the repository at this point in the history
Fix edge-case in constrained delegation parsing logic
  • Loading branch information
dirkjanm authored Jul 26, 2024
2 parents c3ae9fe + 67e1604 commit 92521a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bloodhound/ad/computer.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ def get_bloodhound_data(self, entry, collect, skip_acl=False):
)['type'],
})
except KeyError:
object_sam = target.upper().split(".")[0]
object_sam = target.upper().split(".")[0].split("\\")[0]
if object_sam in delegatehosts_cache: continue
delegatehosts_cache.append(object_sam)
object_entry = self.ad.objectresolver.resolve_samname(object_sam + '*', allow_filter=True)
Expand Down
2 changes: 1 addition & 1 deletion bloodhound/enumeration/memberships.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def enumerate_users(self, timestamp="", fileNamePrefix=""):
)['type'],
})
except KeyError:
object_sam = target.upper().split(".")[0]
object_sam = target.upper().split(".")[0].split("\\")[0]
if object_sam in delegatehosts_cache: continue
delegatehosts_cache.append(object_sam)
object_entry = self.addomain.objectresolver.resolve_samname(object_sam + '*', allow_filter=True)
Expand Down

0 comments on commit 92521a0

Please sign in to comment.