Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

entry['attributes'][prop] TypeError: 'NoneType' object is not subscriptable #194

Open
Script-Nomad opened this issue Aug 16, 2024 · 0 comments

Comments

@Script-Nomad
Copy link

Running into a very frustrating error that seems like a bug while trying to run bloodhound.py and bloodhound-python console script. This is a clean install on a fresh Kali 2024.06 instance.

No idea why this is going on.

Python version: 3.11
Branch: bloodhound-ce

python3 bloodhound.py -u USERNAME -p SECRETPASSWORD -dc SomeDC01 -k -ns 10.200.0.12 -w 25 --zip -d DOM -c All,LoggedOn                                                                                                         
INFO: Found AD domain: dom
INFO: Getting TGT for user
WARNING: Failed to get Kerberos TGT. Falling back to NTLM authentication. Error: [Errno Connection error (SomeDC01.dom:88)] [Errno -2] Name or service not known
INFO: Connecting to LDAP server: SomeDC01.dom
WARNING: LDAP Authentication is refused because LDAP signing is enabled. Trying to connect over LDAPS instead...
INFO: Found 1 domains
INFO: Found 1 domains in the forest
INFO: Found 2300 computers
INFO: Connecting to LDAP server: SomeDC01.dom
WARNING: LDAP Authentication is refused because LDAP signing is enabled. Trying to connect over LDAPS instead...
INFO: Connecting to GC LDAP server: SomeDC01.dom
WARNING: LDAP Authentication is refused because LDAP signing is enabled. Trying to connect over LDAPS instead...
Traceback (most recent call last):
  File "/opt/bloodhound.py/bloodhound.py", line 5, in <module>
    bloodhound.main()
  File "/opt/bloodhound.py/bloodhound/__init__.py", line 343, in main
    bloodhound.run(collect=collect,
  File "/opt/bloodhound.py/bloodhound/__init__.py", line 81, in run
    membership_enum.enumerate_memberships(timestamp=timestamp, fileNamePrefix=fileNamePrefix)
  File "/opt/bloodhound.py/bloodhound/enumeration/memberships.py", line 854, in enumerate_memberships
    self.enumerate_users(timestamp, fileNamePrefix)
  File "/opt/bloodhound.py/bloodhound/enumeration/memberships.py", line 185, in enumerate_users
    'ObjectType': ADUtils.resolve_ad_entry(
                  ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/bloodhound.py/bloodhound/ad/utils.py", line 278, in resolve_ad_entry
    account = ADUtils.get_entry_property(entry, 'sAMAccountName', '')
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/bloodhound.py/bloodhound/ad/utils.py", line 362, in get_entry_property
    value = entry['attributes'][prop]
            ~~~~~^^^^^^^^^^^^^^
TypeError: 'NoneType' object is not subscriptable
                                                                                         
rodry7 added a commit to rodry7/BloodHound.py that referenced this issue Aug 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant