如何解码?

时间:2014-10-26 06:20:30

标签: php decode decoder

谁知道,如何解码此代码?

foreach(array(155=>'QnZYJQ|WZWOQ') as $i1=>$i2){
    $i3=strrev("rtrts");
    define("I".$i1,$i3($i2,'abcdeghijklmopqswyz ~`!@#%^&*()_-+|{}[];:<>,./?ABCDEGHIJKLMOPQSWYZ','ZYWSQPOMLKJIHGEDCBA?/.,><:;][}{|+-_)(*&^%#@!`~ zywsqpomlkjihgedcba'));
} 
$_isIndexPhpScript =TRUE;
unset($_GET[I155], $_POST[I155]);
$GLOBALS[I155] =1; 
require 'cm_ini.php'; 
require $GLOBALS['DEFAULT_INCLUDES_PATH'] .'pages.php';

1 个答案:

答案 0 :(得分:1)

  1. 创建常量I155 = 'enable_cache'
  2. 删除$_GET['enable_cache']$_POST['enable_cache']
  3. 添加全局变量$enable_cache = 1
  4. 主要部分在这里

    foreach(array(155=>'QnZYJQ|WZWOQ') as $i1=>$i2){ 
    // $i1 = 155, $i2 = 'QnZYJQ|WZWOQ'
        $i3=strrev("rtrts");
        // $i3 = strtr -- common php function
        define("I".$i1,$i3($i2,'abcdeghijklmopqswyz ~`!@#%^&*()_-+|{}[];:<>,./?ABCDEGHIJKLMOPQSWYZ','ZYWSQPOMLKJIHGEDCBA?/.,><:;][}{|+-_)(*&^%#@!`~ zywsqpomlkjihgedcba'));
        // executes strtr with QnZYJQ|WZWOQ and predefined dictionary, 
        // result is enable_cache
    }