Skip to content

Commit

Permalink
Fix GUID display in SD
Browse files Browse the repository at this point in the history
  • Loading branch information
yaumn committed Jul 18, 2023
1 parent 98590e9 commit 876b07a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.29
1.0.30
6 changes: 3 additions & 3 deletions ldeep/utils/sddl.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

from struct import unpack

from ldap3.protocol.formatters.formatters import format_sid, format_uuid
from ldap3.protocol.formatters.formatters import format_sid, format_uuid_le

SDDLTypeFlags = {
'Self Relative' : 0b1000000000000000,
Expand Down Expand Up @@ -115,10 +115,10 @@ def parse_aces(input_buffer, count):

offset = 12
if ace['Object Flags']['Object Type Present']:
ace['GUID'] = format_uuid(input_buffer[offset:offset + 16])
ace['GUID'] = format_uuid_le(input_buffer[offset:offset + 16])
offset += 16
if ace['Object Flags']['Inherited Object Type Present']:
ace['Inherited GUID'] = format_uuid(input_buffer[offset:offset + 16])
ace['Inherited GUID'] = format_uuid_le(input_buffer[offset:offset + 16])
offset += 16

ace['SID'] = format_sid(input_buffer[offset:ace['Size']])
Expand Down

0 comments on commit 876b07a

Please sign in to comment.