You should only install from source if you intend to hack on the source code and/or submit a PR!
If you just intend on using the tool, get the binaries!
APT package Kali Linux only
From apt using Kali Linux
#~ apt install crackmapexec
It's highly recommended you use Pipx to install CME as it isolates all its dependencies for you and eliminates 90% of all problems you'll usually encounter while installing it this way.
#~ python3 -m pip install pipx
#~ pipx ensurepath
#~ pipx install crackmapexec
You should be using the binaries in 99% of the cases as it requires no installation (outside of Python 3 itself).
Go to the actions tab (at the top of the repo), click on the latest build and download the appropriate binary according to your OS.
Binaries are compiled for python3.8
Actions · byt3bl33d3r/CrackMapExec
Releases · byt3bl33d3r/CrackMapExec
Note: you need to be logged into Github in order to download the binaries from the Actions feature
Installing from Source
You should only install from source if you intend on making changes to the code and/or submitting a PR
Please note the --recursive flag passed to the git clone command. This flag will make git automatically download all of the sub-modules CME depends on. Without this flag installation will fail and heads might explode.
You're going to need to install Poetry which is what CME uses to manage dependencies.