查找用Zend Guard编码的PHP文件

查找用Zend Guard编码的PHP文件,php,zend-guard,Php,Zend Guard,有没有一种方法可以在源代码树中找到使用编码的PHP文件 有关于尝试解码Zend编码文件的问题,但我继承了一个大型PHP应用程序,该应用程序必须使用某个远程库中的Zend编码文件,因为我在应用程序的错误日志中不断获得以下输出: //Copyright UserScape, Inc. 2005-2008 <html><body> <a href="http://www.zend.com/products/zend_guard"> <img border="

有没有一种方法可以在源代码树中找到使用编码的PHP文件

有关于尝试解码Zend编码文件的问题,但我继承了一个大型PHP应用程序,该应用程序必须使用某个远程库中的Zend编码文件,因为我在应用程序的错误日志中不断获得以下输出:

//Copyright UserScape, Inc. 2005-2008

<html><body>
<a href="http://www.zend.com/products/zend_guard">
<img border="0" src="http://www.zend.com/images/store/safeguard_optimizer_img.gif" align="right">
</a>
<center><h1>Zend Optimizer not installed</h1></center>
<p>This file was encoded by the
<a href="http://www.zend.com/products/zend_guard">Zend Guard</a>. 
In order to run it, please install the 
<a href="http://www.zend.com/products/zend_optimizer">Zend Optimizer</a> 
(available without charge), version 3.0.0 or later. </p>
<h2>Seeing this message instead of the website you expected?</h2>
This means that this webserver is not configured correctly. 
In order to view this website properly, please contact the 
website's system administrator/webmaster with the following 
message:<br><br>
<tt>The component "Zend Optimizer" is not installed on the
Web Server and therefore cannot service encoded files. 
Please download and install the Zend Optimizer (available 
without charge) on the Web Server.</tt><br><br>
<b>Note</b>: Zend Technologies cannot resolve issues related
to this message appearing on websites not belonging to 
<a href="http://www.zend.com">Zend Technologies</a>. 
<h2>What is the Zend Optimizer?</h2>
<p>The Zend Optimizer is one of the most popular PHP plugins 
for performance-improvement, and has been available without 
charge, since the early days of PHP 4. It improves performance 
by scanning PHP's intermediate code and passing it through 
multiple Optimization Passes to replace inefficient code 
patterns with more efficient code blocks. The replaced code 
blocks perform exactly the same operations as the original 
code, only faster. </p>
<p>In addition to improving performance, the Zend Optimizer 
also enables PHP to transparently load files encoded by the 
Zend Guard. </p>
<p>The Zend Optimizer is a free product available for download 
from <a href="http://www.zend.com">Zend Technologies</a>. 
Zend Technologies also developed the PHP scripting engine, 
known as the <a href="http://www.zend.com/products/zend_engine">Zend Engine</a>.</p>
</body></html>
//版权所有UserScape,Inc.2005-2008
未安装Zend Optimizer
此文件由
. 
要运行它,请安装
(免费提供),3.0.0或更高版本

是否看到此消息而不是您期望的网站? 这意味着此Web服务器未正确配置。 为了正确浏览本网站,请联系 网站的系统管理员/网站管理员具有以下信息 信息:

组件“Zend Optimizer”未安装在 Web服务器,因此无法为编码文件提供服务。 请下载并安装Zend Optimizer(可用 (免费)在Web服务器上。

注意:Zend Technologies无法解决相关问题 此消息出现在不属于 . 什么是Zend优化器? Zend Optimizer是最流行的PHP插件之一 用于性能改进,并且在没有 收费,从PHP4的早期开始。它提高了性能 通过扫描PHP的中间代码并通过 多个优化过程以替换低效代码 具有更高效代码块的模式。被替换的代码 块执行与原始块完全相同的操作 代码,只是更快

除了提高性能,Zend Optimizer 还允许PHP透明地加载由 泽德卫兵

Zend Optimizer是可供下载的免费产品 从…起 Zend Technologies还开发了PHP脚本引擎, 被称为

我不知道该文件在应用程序中的位置!我找不到任何关于Zend Guard编码的文件特征的信息,所以我不知道在文件系统中搜索什么。这是毫无帮助的。“userscape”“helpspot”(显然是userscape的产品)甚至“zend”的简单
grep
s都是空白的

编辑:然而,根据Zend Guard的使用,所以我相当肯定这些文件中不会有任何可识别的PHP代码



是否有一种通用的方法来定位文件系统中Zend Guard编码的PHP文件?文件是否有可搜索的公共属性?

我相信大多数Zend Optimizer编码的文件都会以类似以下内容的标题开头:

<?php @Zend;

如果不知道它是如何混淆文件的,我不能确定,但我建议对
eval
preg\u replace/e
base64\u decode
等内容进行grepping。很遗憾,
eval
只返回大量的和Javascript点击。其他方面你有什么收获吗?您还可以执行类似于
grep-r eval*| grep php
的操作,以递归方式查找包含
eval
的文件,然后对php的结果进行grep处理,这可能有助于跳过javascript。没有什么后果。我对Zend Optimizer的(有限的)理解是,为了处理这些文件,您必须安装一个PHP扩展,因此我怀疑在源代码级别是否有任何可检测的内容。换句话说,我希望该文件在纯文本编辑器中是完全杂乱无章的。我很确定我需要的是帮助识别这些文件的一些共同特征。我的意思是,优化器必须有一种识别它们的方法。根据Zend Guard的使用,因此我更确信这些文件中不会有任何可识别的PHP代码。问题已经表明,在项目范围内搜索“Zend”不会返回任何结果。搜索“@Zend”同样不会返回任何结果。你能指出任何公开的Zend编码文件的例子来证实你的断言吗?@beporter:。()是的,这看起来确实很像我在日志中看到的输出。在绝望中,我在服务器的整个文件系统上运行了grep,并在一个完全不同的apachevhost文件夹中找到了“helpspot”文件!这就解决了这个问题,但这些文件如何将条目添加到我的应用程序日志中的谜团仍然存在(当然,这是一个完全不同的问题)。谢谢