推荐学习书目
› 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
chenPiMeiHaoChi
V2EX  ›  Python

关于 pyarmor 防破解程度的疑问

  •  
  •   chenPiMeiHaoChi · Jul 21, 2023 · 5043 views
    This topic created in 1173 days ago, the information mentioned may be changed or developed.
    最近接到一个定制客户端程序的需求,由于约定金额不包含源码并且采用的是账号验证制,如果被破解了那直接去掉验证账号的代码就随便用了,再加上客户那边有一定技术能力因此需要加密。

    搜了搜 V2 过去关于 pyarmor 的帖子看完还是不知道这东西的破解成本是多高。顺便请问下还有什么其他方法吗,pyarmor 我已经买了。
    6 replies  •  2023-07-24 14:41:51 +08:00
    vicalloy
        1
    vicalloy  
       Jul 21, 2023   ❤️ 1
    用 nutika 或 cython 编译成二进制。
    liantian
        2
    liantian  
       Jul 21, 2023 via iPhone   ❤️ 1
    一般就是…关键文件/模块用 cython /nutika 编译成 pyd…
    roundgis
        3
    roundgis  
       Jul 21, 2023 via Android   ❤️ 1
    部分計算雲端實現
    noahliaszn
        4
    noahliaszn  
       Jul 22, 2023   ❤️ 1
    网上还真有破解的方案具体思路就是自己重新编译 python
    改掉_PyEval_EvalFrameDefault 这个 function 实现 dump 掉 code object
    但是在 vm 和 super mode 下 这种不奏效,_PyEval_EvalFrameDefault 用的是内部实现

    https://forum.tuts4you.com/topic/41945-python-pyarmor-my-protector/?do=findComment&comment=209934
    思路文章:
    https://forum.tuts4you.com/topic/41945-python-pyarmor-my-protector/#comment-203290

    😯 这个是 FLARE-ON9 的第 11 道题 还有 writeup
    https://github.com/levanvn/FLARE-ON9-Chal11_Unpacking-Pyarmor/
    https://devilinside.me/blogs/unpacking-pyarmor

    官方 writeup
    https://www.mandiant.com/sites/default/files/2022-11/11-flareon9-solution.pdf

    总结下来,成本很高。
    sdcg1994
        5
    sdcg1994  
       Jul 22, 2023 via Android   ❤️ 1
    用 cython 编译就行,其他非 native 方法,内存中总归是可以解密出来的
    rev1si0n
        6
    rev1si0n  
       Jul 24, 2023
    说用 cython 或者其他啥编译型的就不用看了,就简单编译下,人家又不是要逆你完整的源码,这不分分钟的事情,总归来说 pyarmor 会比这些强,自带反调试啥的,你自己写,不烦么。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   772 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 38ms · UTC 20:03 · PVG 04:03 · LAX 13:03 · JFK 16:03
    ♥ Do have faith in what you're doing.