如何通过PHP代码显示ioncube解码的php文件? [英] How to display ioncube decoded php-file through PHP code?

查看:170
本文介绍了如何通过PHP代码显示ioncube解码的php文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个需要支持的公司的网站。支持该网站的人向我提供了所有档案文件和数据库,将其移动到我的主机。我移动了,这一切都很好。我发现一个问题 - 电子邮件表单不起作用。我想我需要更改邮件服务器设置,但我无法做到这一点,因为具有此设置的文件由ionCube编码。我安装在我的主机上,但是在我的本地计算机上,我无法编辑此文件。在服务器端通过php解码后,有没有办法显示这个php文件?

解决方案

没有合法的方法这个,并且文件被编译成字节码,所以源代码没有了。虽然保护网站文件非常有意义,使得黑客入侵服务器时更难找到敏感数据,例如数据库连接详细信息,但这样做也可能会使进入恶意软件的难度更高,而不会在进程中破坏站点原始文件应该保留在某处,以便进行更新。听起来好像这是你遇到的保护动机,如果你应该回到提供脚本的人,也许他们会有非编码版本(他们应该!)。如果没有,如果邮件脚本是开源的,您可能会在Web上找到可以重新创建文件的非编码主文件。最坏的情况,你可能需要写一个新的表格,但这不应该太繁重。 (披露,我与ionCube联系)。


I have a website of one company that I need to support. Guys who were supporting that website gave me all the archives with files and db to move it to my hosting. I moved it and it was all good to this day. I found one issue - the email form doesn't work. I figured that I need to change mail-server settings but I can't do it, because file with this settings are encoded by ionCube. I have it installed on my hosting, but on my local computer I can't edit this file. Is there some way to display this php-file after decode through php on server-side?

解决方案

There's no legal way to do this, and files are compiled to bytecode so source code is gone. While it makes excellent sense to protect website files to make it harder for hackers to find sensitive data such as database connection details when they break into a server, and doing so can also make it much harder to introduce malware without breaking a site in the process, the original files should be kept somewhere too so that updates can be made. It sounds as though this was the motivation behind the protection that you have come across, and if you should go back to the people who provided the scripts, perhaps they will have the non-encoded versions too (they should!). If not and if the mail scripts are opensource, you may find non-encoded master files on the web that you can recreate the files with. Worst case, you may need to write a new form, but that shouldn't be too onerous. (disclosure, I am associated with ionCube).

这篇关于如何通过PHP代码显示ioncube解码的php文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆