Skip to content

Error while getting users #8

@rodry7

Description

@rodry7

Having this error while trying to perform an authenticated password spraying using this comand:
sprayhound -p PASS -d domain.com -dc 10.10.10.10 -lu USER -lp 'PASSWORD' -t 1 -vv

[X] An error occurred while looking for users via LDAP
[X] Failed getting ldap credentials
[X] An error occurred while executing SprayHound
Traceback (most recent call last):
  File "/usr/local/bin/sprayhound", line 8, in <module>
    sys.exit(run())
             ^^^^^
  File "/usr/local/lib/python3.12/dist-packages/sprayhound/core.py", line 228, in run
    CLI().run()
  File "/usr/local/lib/python3.12/dist-packages/sprayhound/core.py", line 218, in run
    ).run()
      ^^^^^
  File "/usr/local/lib/python3.12/dist-packages/sprayhound/core.py", line 68, in run
    self.get_ldap_credentials(lower=self.lower, upper=self.upper)
  File "/usr/local/lib/python3.12/dist-packages/sprayhound/core.py", line 93, in get_ldap_credentials
    ret = self.ldap.get_users(self)
          ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/dist-packages/sprayhound/modules/ldapconnection.py", line 129, in get_users
    bad_password_count=0 if 'badPwdCount' not in entry['attributes'] else int(entry['attributes']['badPwdCount']),
                                                                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: int() argument must be a string, a bytes-like object or a real number, not 'list'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions