Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How obfuscate python bytecode with Pyinstaller 3.0

I am trying to figure out how I can obfuscate python bytecode with new PyInstaller.

c:\Anaconda32\envs\myenv\Scripts\pyinstaller.exe --distpath=./dist/win32 --workpath=./build/win32 --uac-admin --uac-uiaccess --key=MYKEY app.spec

However after building, I still hack the sources with PyInstaller Exe Rebuilder as shown here:

enter image description here

like image 605
SpanishBoy Avatar asked Sep 02 '25 05:09

SpanishBoy


1 Answers

for more security you can use pyarmor and pyinstaller lib

use command:

  1. pip install pyarmor
  2. pip install pyinstaller
  3. pyarmor pack filename.py
like image 130
pentestor Avatar answered Sep 04 '25 18:09

pentestor