Skip to content

Instantly share code, notes, and snippets.

@Dattebayooooo
Last active February 3, 2023 07:06
Show Gist options
  • Select an option

  • Save Dattebayooooo/6974ae64dcb6933b992d8034cc340c87 to your computer and use it in GitHub Desktop.

Select an option

Save Dattebayooooo/6974ae64dcb6933b992d8034cc340c87 to your computer and use it in GitHub Desktop.
command to obfuscate python (.py) files to .pyd using nuitka

Requirements:-

  1. Nuitka
    • gcc & ccache (Gets installed during first time execution of command)
  2. Mingw64 [optional]
  3. MSVC build tools [optional]
pip install nuitka==1.3.8

REM - Method 1
nuitka --module --show-memory --show-progress --nofollow-imports --follow-imports-to=utils,src --output-dir=C:\\Obfuscated_pyd abc.py

REM - METHOD 2
nuitka -- module --no-pyi-file --remove-output --nofollow-imports --output-dir=C:\\Obfuscated_pyd <Path to py file>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment