franc-pentest/ldeep

No module named 'Crypto'

Closed this issue · 1 comments

Steps to reproduce :

git clone https://github.com/franc-pentest/ldeep.git
cd ldeep
python3 -m venv ./venv
source ./venv/bin/activate
pip3 install -r requirements.txt
python3 setup.py install
./venv/bin/ldeep ldap -u "r.thompson" -p "rY4n5eva" -d "cascade.local" -s ldap://"10.10.10.182" groups
Traceback (most recent call last):
  File "/workspace/ldeep/venv/lib/python3.11/site-packages/ldap3/utils/ntlm.py", line 500, in ntowf_v2
    from Crypto.Hash import MD4  # try with the Crypto library if present
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named 'Crypto'

During handling of the above exception, another exception occurred:

Fix :

python3 -m pip install pycryptodome
(venv) root@exegol-test ldeep # ./venv/bin/ldeep ldap -u "r.thompson" -p "rY4n5eva" -d "cascade.local" -s ldap://"10.10.10.182" groups
Data Share
Audit Share
Finance
Factory
Remote Management Users
WinRMRemoteWMIUsers__

Fixed in #42