Giter VIP home page Giter VIP logo

Comments (3)

maxzhang666 avatar maxzhang666 commented on June 12, 2024 1

又尝试了一上午,最终还原了代码

自论坛文章后,原作者看起来应该是改良了算法

原有的二次gzcompress跟base64编码都去掉了

反而加密了中文字符跟一些常见内置函数名

在最后的eval中直接调用了解码函数在内存中还原了代码

故沿着本身算法还原后还会有乱码

最后用了str_replace等一系列彩笔字符串替换函数还原了代码

最后还是感谢大佬的文章给了我灵感

谢谢

from php-enphp-decoder.

ganlvtech avatar ganlvtech commented on June 12, 2024

如果用 PHP-Parser 的话最好用专业点的调试器,比如在 PhpStorm 中调试,看着能方便点。

就我目前来看,php parser 不会出问题,他的语法分析器还是很靠谱的。

from php-enphp-decoder.

maxzhang666 avatar maxzhang666 commented on June 12, 2024

如果用 PHP-Parser 的话最好用专业点的调试器,比如在 PhpStorm 中调试,看着能方便点。

就我目前来看,php parser 不会出问题,他的语法分析器还是很靠谱的。


我又来了、、、

今晚研究的题目是魔方1

不是很懂虚拟机

如果原始文件是对其他文件有依赖的话这时候该怎么处理这个文件?

直接运行目标文件的话会提示依赖的函数未定义

抱歉我表达能力不太好

a文件依赖b文件里的B函数

魔方的加密方式不像zym那样是代码还原后执行

所以运行原始文件的时候就已经报错了,这个时候该怎么解决呢?

原来是我理解错误。。。

后面尝试发现格式化得到的func_map 中decode参数是空白

尝试debug、、

整明白了 以我现在的水平还造不出来这个指令集

歇菜了、、

打扰了、、、

from php-enphp-decoder.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.