编码的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?
我有他的小查询。我使用了网站: http://www.fopo.com.ar/ 对我的所有PHP代码进行编码。我对所有这些代码进行了编码,并用我的普通代码替换它们。 代码仍然以编码的形式工作。我很好奇这是怎么发生的。是什么apache服务器有一些功能来读取编码的PHP代码? p> div>
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