Skip to content

[bugfix] Fix ldap import#15

Merged
p0dalirius merged 1 commit intop0dalirius:mainfrom
qu35t-code:fix-import
Sep 19, 2025
Merged

[bugfix] Fix ldap import#15
p0dalirius merged 1 commit intop0dalirius:mainfrom
qu35t-code:fix-import

Conversation

@qu35t-code
Copy link
Copy Markdown
Contributor

Same as :

p0dalirius/pyFindUncommonShares#35
p0dalirius/sectools#17
p0dalirius/ExtractBitlockerKeys#10

Before :

Traceback (most recent call last):
  File "/opt/tools/pyLDAPWordlistHarvester/LDAPWordlistHarvester.py", line 9, in <module>
    from sectools.windows.ldap import raw_ldap_query, init_ldap_session
ImportError: cannot import name 'raw_ldap_query' from 'sectools.windows.ldap' (unknown location)

After :

LDAPWordlistHarvester.py v1.2 - by Remi GASCOU (Podalirius)

usage: LDAPWordlistHarvester.py [-h] [-v] [-o OUTPUTFILE] --dc-ip ip address [--kdcHost FQDN KDC] [-d DOMAIN] [-u USER] [--ldaps] [--no-pass | -p PASSWORD | -H [LMHASH:]NTHASH | --aes-key hex key]
                                [-k]

options:
  -h, --help            show this help message and exit
  -v, --verbose         Verbose mode. (default: False)
  -o OUTPUTFILE, --outputfile OUTPUTFILE
                        Path to output file of wordlist.

Authentication & connection:
  --dc-ip ip address    IP Address of the domain controller or KDC (Key Distribution Center) for Kerberos. If omitted it will use the domain part (FQDN) specified in the identity parameter
  --kdcHost FQDN KDC    FQDN of KDC for Kerberos.
  -d DOMAIN, --domain DOMAIN
                        (FQDN) domain to authenticate to
  -u USER, --user USER  user to authenticate with
  --ldaps               Use LDAPS instead of LDAP

Credentials:
  --no-pass             Don't ask for password (useful for -k)
  -p PASSWORD, --password PASSWORD
                        Password to authenticate with
  -H [LMHASH:]NTHASH, --hashes [LMHASH:]NTHASH
                        NT/LM hashes, format is LMhash:NThash
  --aes-key hex key     AES key to use for Kerberos Authentication (128 or 256 bits)
  -k, --kerberos        Use Kerberos authentication. Grabs credentials from .ccache file (KRB5CCNAME) based on target parameters. If valid credentials cannot be found, it will use the ones
                        specified in the command line

@p0dalirius p0dalirius changed the title Fix ldap import [bugfix] Fix ldap import Sep 19, 2025
@p0dalirius p0dalirius self-assigned this Sep 19, 2025
@p0dalirius p0dalirius added the bug Something isn't working label Sep 19, 2025
@p0dalirius p0dalirius merged commit e5f1862 into p0dalirius:main Sep 19, 2025
@qu35t-code qu35t-code deleted the fix-import branch September 19, 2025 09:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants