ly4k / Certipy

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

How to create a single one-file budled executable for Certipy ? #212

Open w0lfcat opened 4 months ago

w0lfcat commented 4 months ago

First of all, thanks ly4k for your research. Certipy works fine in Python environment.

However, where Python is not available, I always convert .py to .exe.

This is what I normally do to convert .py to .exe. pyinstaller --onefile myscript.py

However, instead of Certipy.py, there is a setup.py file in this repo.

What is the right way to convert Certipy to a single one-file budled executable?

cmjlove1 commented 2 months ago

certipy.exe has already been pre-packaged here. https://github.com/Syslifters/offsec-tools/blob/main/bin/Certipy.exe

newcodor commented 2 months ago

To convert Certipy to a single one-file,please use:
pyinstaller .\Certipy.spec or pyinstaller -F certipy\entry.py -n Certipy.exe --hidden-import unicrypto.backends.pycryptodomex