這次來討論python
一般有二個方式 pyintaller 或 nuitka
先講 nuitka
安裝
pip install nuitka
執行需要 patchelf
sudo apt install patchelf
再來就可以直接用了
python3 -m nuitka --standalone test.py
產生二個目錄
test.build
test.distt
執行檔在
test.distt 裡的 test.bin
編譯出來的 myscript.sh.x 即可實現「可執行、不可讀取」的效果。