Skip to content

[bugfix] Fix ldap import#35

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

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

Conversation

@qu35t-code
Copy link
Contributor

@qu35t-code qu35t-code commented Sep 19, 2025

Same bug :

p0dalirius/ExtractBitlockerKeys#10

 Traceback (most recent call last):
  File "/opt/tools/pyFindUncommonShares/FindUncommonShares.py", line 10, in <module>
    from sectools.windows.ldap import get_computers_from_domain, get_servers_from_domain, get_subnets, raw_ldap_query, init_ldap_session
ImportError: cannot import name 'get_computers_from_domain' from 'sectools.windows.ldap' (unknown location)

This is in addition to this PR :

p0dalirius/sectools#17

CI should be good after merge the sectools PR : https://github.com/p0dalirius/pyFindUncommonShares/actions/runs/17852686127/job/50764603494

[Sep 19, 2025 - 10:12:56 (CEST)] exegol-test pyFindUncommonShares # ExtractBitlockerKeys.py -h
ExtractBitlockerKeys.py v1.3 - by Remi GASCOU (Podalirius)

usage: ExtractBitlockerKeys.py [-h] [-v] [-q] [-t THREADS] [--export-xlsx EXPORT_XLSX] [--export-json EXPORT_JSON] [--export-sqlite EXPORT_SQLITE] --dc-ip ip address [--kdcHost FQDN KDC]
                               [-d DOMAIN] [-u USER] [--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)
  -q, --quiet           Show no information at all.
  -t THREADS, --threads THREADS
                        Number of threads (default: 4).

Output files:
  --export-xlsx EXPORT_XLSX
                        Output XLSX file to store the results in.
  --export-json EXPORT_JSON
                        Output JSON file to store the results in.
  --export-sqlite EXPORT_SQLITE
                        Output SQLITE3 file to store the results in.

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

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 self-assigned this Sep 19, 2025
@p0dalirius p0dalirius added the bug Something isn't working label Sep 19, 2025
@p0dalirius p0dalirius changed the title Fix ldap import [bugfix] Fix ldap import Sep 19, 2025
@p0dalirius p0dalirius merged commit 9d3e5ef into p0dalirius:main Sep 19, 2025
1 check failed
@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