-
Notifications
You must be signed in to change notification settings - Fork 70
How to compile CrackMapExec for Windows
Thomas D edited this page Jul 12, 2022
·
22 revisions
- python-2.7.10.msi
- Git-2.6.1-32-bit.exe to clone the impacket repo
- crackmapexec prerequisities with
pip install --upgrade -r requirements.txt
-
VCForPython27.msi to be able to compile the
pyinstaller
core module - pyinstaller with
pip install pyinstaller
General rules to ensure Windows compatibility:
- Remove references to Unix stuff like
os.geteuid()
, that don't make sense on Windows - Patch the code section related to term colors from
from termcolor import cprint, colored
to
from termcolor import cprint, colored
import colorama
colorama.init()
Take a look at the following link for more information on that topic.
- Remove illegal chars in created/accessed filenames
pyinstaller --clean --onefile crackmapexec.py
Find the around-6MB executable in the created dist
folder