ly4k / Certipy

Tool for Active Directory Certificate Services enumeration and abuse
MIT License
2.43k stars 338 forks source link

ModuleNotFoundError: No module named 'certipy.command_line' when running certipy #166

Closed CyberCJ1999 closed 1 year ago

CyberCJ1999 commented 1 year ago

Traceback (most recent call last): File "/usr/bin/certipy", line 33, in sys.exit(load_entry_point('certipy==0.1.3', 'console_scripts', 'certipy')()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/bin/certipy", line 25, in importlib_load_entry_point return next(matches).load() ^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/importlib/metadata/init.py", line 202, in load module = import_module(match.group('module')) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/importlib/init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "", line 1204, in _gcd_import File "", line 1176, in _find_and_load File "", line 1140, in _find_and_load_unlocked ModuleNotFoundError: No module named 'certipy.command_line'

is this to do with the version of Python I am running?

ly4k commented 1 year ago

Looks like you installed the wrong Certipy. Try pip install certipy-ad

CyberCJ1999 commented 1 year ago

certipy-ad seems to have successfully uninstalled

pip uninstall certipy-ad
WARNING: Skipping certipy-ad as it is not installed.

CyberCJ1999 commented 1 year ago

attempt to install pip like you suggested

pip install certipy-ad
Defaulting to user installation because normal site-packages is not writeable Collecting certipy-ad Obtaining dependency information for certipy-ad from https://files.pythonhosted.org/packages/ed/e3/c08ca4c4098d91e84bf637b0c3e83de7e396243191cec36c0be9c572742e/certipy_ad-4.8.0-py3-none-any.whl.metadata Using cached certipy_ad-4.8.0-py3-none-any.whl.metadata (42 kB) Requirement already satisfied: asn1crypto in /usr/lib/python3/dist-packages (from certipy-ad) (1.5.1) Requirement already satisfied: cryptography>=39.0 in ./.local/lib/python3.11/site-packages (from certipy-ad) (41.0.3) Requirement already satisfied: impacket in /usr/lib/python3/dist-packages (from certipy-ad) (0.11.0) Requirement already satisfied: ldap3 in /usr/lib/python3/dist-packages (from certipy-ad) (2.9.1) Requirement already satisfied: pyasn1==0.4.8 in /usr/lib/python3/dist-packages (from certipy-ad) (0.4.8) Requirement already satisfied: dnspython in /usr/lib/python3/dist-packages (from certipy-ad) (2.4.2) Requirement already satisfied: dsinternals in /usr/lib/python3/dist-packages (from certipy-ad) (1.2.4) Requirement already satisfied: pyopenssl>=23.0.0 in /usr/lib/python3/dist-packages (from certipy-ad) (23.0.0) Requirement already satisfied: requests in /usr/lib/python3/dist-packages (from certipy-ad) (2.31.0) Requirement already satisfied: requests-ntlm in ./.local/lib/python3.11/site-packages (from certipy-ad) (1.2.0) Requirement already satisfied: pycryptodome in ./.local/lib/python3.11/site-packages (from certipy-ad) (3.18.0) Requirement already satisfied: unicrypto in /usr/lib/python3/dist-packages (from certipy-ad) (0.0.10) Requirement already satisfied: cffi>=1.12 in /usr/lib/python3/dist-packages (from cryptography>=39.0->certipy-ad) (1.15.1) Requirement already satisfied: pyspnego>=0.1.6 in /usr/lib/python3/dist-packages (from requests-ntlm->certipy-ad) (0.8.0) Requirement already satisfied: pycryptodomex in /usr/lib/python3/dist-packages (from unicrypto->certipy-ad) (3.11.0) Using cached certipy_ad-4.8.0-py3-none-any.whl (130 kB) Installing collected packages: certipy-ad WARNING: The script certipy is installed in '/home/kali/.local/bin' which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed certipy-ad-4.8.0

CyberCJ1999 commented 1 year ago

'/home/kali/.local/bin' added to PATH

certipy is now working

thank you so so much