如何通过PHP代码显示ioncube解码的php文件? [英] How to display ioncube decoded php-file through PHP code?
问题描述
没有合法的方法这个,并且文件被编译成字节码,所以源代码没有了。虽然保护网站文件非常有意义,使得黑客入侵服务器时更难找到敏感数据,例如数据库连接详细信息,但这样做也可能会使进入恶意软件的难度更高,而不会在进程中破坏站点原始文件应该保留在某处,以便进行更新。听起来好像这是你遇到的保护动机,如果你应该回到提供脚本的人,也许他们会有非编码版本(他们应该!)。如果没有,如果邮件脚本是开源的,您可能会在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屋!