1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
|
<html>
<head >
<title>
worst website ever (real)
</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="jsencrypt.min.js"></script>
<style>
abbr {
font-style: italic;
position: relative
}
abbr:hover::after {
background: #add8e6;
border-radius: 4px;
bottom: 100%;
content: attr(title);
display: block;
left: 100%;
padding: 1em;
position: absolute;
width: 280px;
z-index: 1;
}
</style>
</head>
<body onload="load()" style="height: 100%; overflow: hidden;">
<div id="kanna" onclick="lightsout()"autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"></div>
<script>
function lightsout(){
document.body.innerHTML=""
document.body.style.backgroundColor="black"
document.title = "DONT TOUCH KANNA"
document.body.innerHTML='<img style="display:block;"src="lights-out.gif" id="gif" width=100% height=100%/>'
setTimeout(()=>{
document.getElementById("gif").src = "";
document.getElementById("gif").src = "lights-out.gif";
setTimeout(()=>{
document.body.innerHTML=''
},10)
},700)
}
function readTextFile(file)
{
var promise = new Promise((resolve, reject) => {
var rawFile = new XMLHttpRequest();
rawFile.open("GET", file, false);
rawFile.onreadystatechange = function ()
{
if(rawFile.readyState === 4)
{
if(rawFile.status === 200 || rawFile.status == 0)
{
var allText = rawFile.responseText;
resolve(allText)
}
}
}
rawFile.send(null);
});
return(promise)
} function submit(){
var xhr = new XMLHttpRequest();
xhr.open("POST", window.location.href + 'login/submit', true);
xhr.setRequestHeader('Content-Type', 'application/json');
let sign = new JSEncrypt()
sign.setPublicKey(`-----BEGIN PUBLIC KEY-----
MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQClTC6XhWz6iDHivz/F5A1q+C0Y
dVeaHnd1wktRLgRO3UEzXPnboniUqVgQfZ8QS6CNpwUjXEeolQmgnkqYNGYR/0Dc
EzrNWxCYiN4iLpKuVa0bGEiWo06CShpdgadgoN4FL+mOZybi7ccf2h8niyPfTO9L
6PS1zCGrFD4JibeEfwIDAQAB
-----END PUBLIC KEY-----`)
var singed = sign.encrypt(JSON.stringify({'date':new Date(),'user':document.getElementById("user").value,'pass':document.getElementById("pass").value}))
//console.log(singed,keys.publicKey)
//console.log(JSON.stringify({'data':singed}))
xhr.send(JSON.stringify({'data':singed,enc:true,json:true}))
$.get(window.location.href, function(responseText) {
document.body.innerHTML=(responseText);
});
}
function load(){
readTextFile("kanna.txt").then((kanna)=>{
let left = -300;
let top = -40;
let t = setInterval(()=>{
document.getElementById("kanna").innerHTML+="<div style='user-select: none;white-space: nowrap; position:absolute;left:"+left+"px;top:"+top+"%;transform:scale(.5)'><tt><b>"+(kanna.replaceAll("#","</br>").replaceAll(" ","<font style='color:rgba(1,1,1,0)'>_</font>"))+"</b></div></tt></a>"
left+=300
if (left>=600){
clearInterval(t)
setTimeout(()=>{
document.body.innerHTML+="<tt><div style='position:absolute;bottom:20px;left:50px;font-weight:100;'>login w/ {user:<input placeholder='root' type='text' id='user' name='user'>,pass:<input type='text' id='pass' name='pass'>}</br><sub>will be <abbr title='so that the \"network administrators\"/\"IT people\" cant get in >:) '>encrypted</abbr> dont worry:)<input style='background-color:rgba(80,80,80,.3);border-color:rgba(80,80,80,.1);border:line;border-radius:5px;' type='button' value='submit' onclick='submit()'></sub></div></tt>"
document.body.innerHTML+="<div style='position:absolute;bottom:20px;right:50px;user-select: none;cursor:pointer;' onclick=\"location.href='mailto:[email protected]';\"><tt>need a account? contact [email protected]</tt></div>"
},50)
}
},80)
})
}
</script>
</body>
</tt>
</html>
|