admin/index_testenv.php
(开头部分) 6KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
@set_time_limit(0);
require_once(dirname(__FILE__)."/config.php");
AjaxHead();
if(!function_exists('TestWriteable'))
{
// 检测是否可写
function TestWriteable($d, $c=TRUE)
{
$tfile = '_write_able.txt';
$d = preg_replace("/\/$/", '', $d);
$fp = @fopen($d.'/'.$tfile,'w');
if(!$fp)
{
if( $c==false )
{
@chmod($d, 0777);
return false;
}
else return TestWriteable($d, true);
}
else
{
fclose($fp);
return @unlink($d.'/'.$tfile) ? true : false;
}
}
}
if(!function_exists('TestExecuteable'))
{
// 检查是否具目录可执行
function TestExecuteable($d='.', $siteuRL='', $rootDir='') {
$testStr = '<'.chr(0x3F).'p'.chr(hexdec(68)).chr(112)."\n\r";
$filename = md5($d).'.php';
$testStr .= 'function test(){ echo md5(\''.$d.'\');}'."\n\rtest();\n\r";
$testStr .= chr(0x3F).'>';
$reval = false;
if(empty($rootDir)) $rootDir = DEDEROOT;
if (TestWriteable($d))
{
@file_put_contents($d.'/'.$filename, $testStr);
$remoteUrl = $siteuRL.'/'.str_replace($rootDir, '', str_replace("\\", '/',realpath($d))).'/'.$filename;
$tempStr = @PostHost($remoteUrl);
$reval = (md5($d) == trim($tempStr))? true : false;
unlink($d.'/'.$filename);
return $reval;
} else
{
return -1;
}
}
}
if(!function_exists('PostHost'))
{
function PostHost($host,$data='',$method='GET',$showagent=null,$port=null,$timeout=30){
$parse = @parse_url($host);
if (empty($parse)) return false;
后面还有 149 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。