V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
ydcool
V2EX  ›  PHP

关于混淆还原,求 PHP 大神

  •  
  •   ydcool · Nov 13, 2018 · 5933 views
    This topic created in 2733 days ago, the information mentioned may be changed or developed.

    针对有大量 goto 语句的混淆方式,如何还原,有什么思路?

    在线示例: https://paste.ubuntu.com/p/bvw5fV2Pyj/

    3 replies    2019-08-19 22:31:32 +08:00
    ywisax
        1
    ywisax  
       Nov 14, 2018
    干过这个事情,基本思路就是 token_get_all 拿到所有代码符号后,针对存在 goto 语句块重新排序。现有公开搞这类混淆还原的思路都差不多的。。。建议用 nikic/PHP-Parser 来搞这个事情
    ydcool
        2
    ydcool  
    OP
       Nov 16, 2018
    @ywisax 多谢
    tyonly
        3
    tyonly  
       Aug 19, 2019
    @ywisax 思路是有了,就是没有示范,不知道如何着手
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   978 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 19:41 · PVG 03:41 · LAX 12:41 · JFK 15:41
    ♥ Do have faith in what you're doing.