dirkjanm / ldapdomaindump

Active Directory information dumper via LDAP
MIT License
1.19k stars 190 forks source link

TypeError: a bytes-like object is required, not 'str' #29

Closed DesBlock closed 4 years ago

DesBlock commented 4 years ago

image

Proposed fix is this, but I'm getting weird SID strings on the last value when doing so. Change line 350 to:

sid_value = format_sid(group.objectSid.value)
gid = int(sid_value.split('-')[-1])

image

image

dirkjanm commented 4 years ago

are you sure this is not related to #26?

DesBlock commented 4 years ago

Quite possible, this came up while trying the Monteverde box from HTB. It is similar to the Forest box referenced in Issues #26. Feel free to close it. I appreciate your input on the reason for failure. Clarified some questions I have on the box.