ldapdomaindump
ldapdomaindump copied to clipboard
gid = int(group.objectSid.value.split('-')[-1]) TypeError: a bytes-like object is required, not 'str'
python3 ldapdomaindump.py ldap://10.10.73.150
[] Connecting as anonymous user, dumping will probably fail. Consider specifying a username/password to login with
[] Connecting to host...
[] Binding to host
[+] Bind OK
[] Starting domain dump
Traceback (most recent call last):
File "/home/kali/tools/ldap/ldapdomaindump/ldapdomaindump.py", line 3, in
"Connecting as anonymous user, dumping will probably fail"
What scenario are you encountering that you expect anonymous enumeration to work? I'd need some more info to have a look at this issue. In a normal environment, anonymous enumeration will not work so an error is expected.
I just got the same error on a Vulnlab machine (it's probably the same one). It seems to be because the DC allows anonymous bind but only to query a few specific DNs (CN=Users and some OUs), so it's normal the tool can't dump it all :)