dragam0217 2016-11-16 09:45
浏览 97
已采纳

编码的PHP代码如何在Apache服务器上运行?

i have his small query.I used the website :http://www.fopo.com.ar/ to encode all of my PHP codes.I encoded all of them and replaced them with my normal codes.The codes still work in the encoded form.I was curious how this happened.Does apache server has some kind of functionality to read the encoded PHP codes?

  • 写回答

1条回答 默认 最新

  • duanshan3427 2018-01-05 11:26
    关注

    Your question is very genuine. It can be answered in several sections.

    What does fopo do: As mentioned by @JustOnUnderMillions, what fopo does is that it converts your code into a base 64 encoded string and then adds that code into an eval function parameter so that it gets executed.

    Does apache server has some kind of functionality to read the encoded PHP codes?

    No, as now you already know the code is plain PHP code that is base 64 encoded and passed into eval to run, it is processed in the same way a normal php file would do, apache can either use PHP as a CGI-binary or as a module either way when a request to php file is received by apache it calles the PHP hander of the sytem, which does all the PHP processing and then tells apache to return the processed response to the user.

    You should read more about PHP obuscation at the below links:

    https://www.upwork.com/hiring/development/understanding-obfuscated-code-deobfuscate-php-javascript/

    https://www.quora.com/What-is-PHP-Obfuscator-and-how-it-works

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?