diff options
author | grant-kun <[email protected]> | 2022-09-26 07:14:29 -0500 |
---|---|---|
committer | grant-kun <[email protected]> | 2022-09-26 07:14:29 -0500 |
commit | 86feb9e6403cfa6198ffb6895877c1c00d2a738a (patch) | |
tree | cf29210132c5ffb2be80afe04eb0fa231dac3382 /index.html | |
parent | 47e3ae49258f9ddfb91b570745fedeaef4f0fc8f (diff) |
update (not working)
Diffstat (limited to 'index.html')
-rw-r--r-- | index.html | 110 |
1 files changed, 0 insertions, 110 deletions
diff --git a/index.html b/index.html deleted file mode 100644 index d912753..0000000 --- a/index.html +++ /dev/null @@ -1,110 +0,0 @@ -<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>
\ No newline at end of file |