pyinstaller 逆向筆記
工具
第一步 解開exe
- 使用
pyinstxtractor
pyinstxtractor demo.exe
- 產出資料夾
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
- 版本不對 PYZ-00.pyz_extracted 資料夾會是空的
- 主要檔案名稱:
main_obfuscate.pyc.encrypted
第二部 搜集資料
找到 key
- 或是把
pyimod00_crypto_key
重新命名成 key.pyc
python
import key
print(key.key)
- 直接拿
pyimod00_crypto_key
前16byte
- 每個py版本不同
3.7
vs 3.8
- 小版本相同
3.8.1
vs 3.8.2
第三部 解開檔案
第四部 decomplier
- 版本須正確
pip install uncompyle6
uncompyle6 -o output.py output.pyc
- 登愣拿到檔案
雷點
- python本版要一樣
- 還敢用 py2 阿
- 請用windows