72 lines
2.2 KiB
HTML
Executable File
72 lines
2.2 KiB
HTML
Executable File
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Captive Portal</title>
|
|
<style>
|
|
body {
|
|
background-color: #000;
|
|
color: #0F0;
|
|
font-family: 'Courier New', Courier, monospace;
|
|
}
|
|
#terminal {
|
|
white-space: pre;
|
|
overflow: hidden;
|
|
margin: 0 auto;
|
|
padding: 10px;
|
|
}
|
|
#connectBtn {
|
|
display: block;
|
|
position: absolute;
|
|
left: 20px;
|
|
background: #0F0;
|
|
padding: 10px 20px;
|
|
color: #000;
|
|
text-decoration: none;
|
|
margin-top: 20px;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<a id="connectBtn" href="javascript:void(0);" onclick="startHack();">Connect</a>
|
|
<div id="terminal"></div>
|
|
<script>
|
|
var content = [
|
|
"Accessing device...",
|
|
"Device accessed ✔",
|
|
"Deleting files...",
|
|
"Files deleted ✔",
|
|
"Formatting device...",
|
|
"Device formatted ✔. \n\n",
|
|
"(☞ ͡° ͜ʖ ͡°)☞",
|
|
"ᕙ(͡°‿ ͡°)ᕗ",
|
|
/* You should add the rest of your ASCII art here. */
|
|
];
|
|
|
|
function startHack() {
|
|
var terminal = document.getElementById('terminal');
|
|
var counter = 0;
|
|
document.getElementById('connectBtn').style.display = 'none';
|
|
var intervalId = setInterval(function() {
|
|
terminal.textContent += content[counter++] + '\n';
|
|
if (counter === content.length) {
|
|
clearInterval(intervalId);
|
|
}
|
|
}, 1000);
|
|
|
|
// Creating the audio context
|
|
var audioCtx = new (window.AudioContext || window.webkitAudioContext)();
|
|
var oscillator = audioCtx.createOscillator();
|
|
oscillator.type = 'sine';
|
|
oscillator.frequency.value = 8000; // frequency in Hz
|
|
oscillator.connect(audioCtx.destination);
|
|
oscillator.start();
|
|
|
|
// Stop the frequency sound after 1 minute
|
|
setTimeout(function() {
|
|
oscillator.stop();
|
|
}, 60000); // 60000 milliseconds = 1 minute
|
|
}
|
|
</script>
|
|
</body>
|
|
</html>
|