推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
XiiLii
V2EX  ›  Python

加密的 exe 如何运行?

  •  
  •   XiiLii · Jul 20, 2022 · 2467 views
    This topic created in 1418 days ago, the information mentioned may be changed or developed.

    今天我用 pyinstaller 加密打包了一个小脚本成 exe 文件,然后把该 exe 文件解包出来,发现解包出来的 pyimod00_crypto_key 文件中包含未加密的前 16 个明文密码。为何必须将明文密码也放进 exe 呢?是不是没有明文密码,exe 就无法正常执行?

    koast
        1
    koast  
       Jul 20, 2022   ❤️ 1
    呃,不存 key 程序怎么验证 key 对不对呢。。至少也得存个 hash 只不过这类东西本来就没往安全上想,所以就会这样了。想加密还是得像 lua 那种一样,在混淆,字节码替换,运行时修改上下功夫 不过说实话 即使你下了很大功夫 最好的结果也就是让逆向的人最终得到的是一堆没有符号的东西罢了,搞再多混淆也只是让别人多花点功夫解析下 ast 而已 说白了就是你只能增加攻击成本 做不到完全无法破解。。。
    rev1si0n
        2
    rev1si0n  
       Jul 21, 2022   ❤️ 1
    用 pyinstaller 就别想着反破解了吧,这东西就是让你用着方便。要想防破解试试 pyarmor
    XiiLii
        3
    XiiLii  
    OP
       Jul 21, 2022
    @koast 好的,谢谢
    XiiLii
        4
    XiiLii  
    OP
       Jul 21, 2022
    @rev1si0n 好的,感谢
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1138 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 17:36 · PVG 01:36 · LAX 10:36 · JFK 13:36
    ♥ Do have faith in what you're doing.