php urldecode 解码代码

header('Content-Type: text/html; charset=utf-8');
function unscrambler($code) {
    if(! is_array($code)) {
        $code = str_replace('__FILE__', "'$code'", str_replace('eval', '$code=', file_get_contents($code)));
        eval('?>' . $code);
    }else {
        extract($code);
        $code = str_replace("eval", '$code=', $code);
        eval($code);
    }
    if(strstr($code, 'eval')) return unscrambler(get_defined_vars());
    else return $code;
}
echo unscrambler('a.php');//要解码的文件路径

 

posted on 2015-11-04 14:50  技术宅就是那么吊  阅读(570)  评论(0)    收藏  举报