OctoSpaccHub/public/stuff/locked-tgreact.html

54 lines
91 KiB
HTML
Raw Normal View History

2020-11-09 23:08:27 +01:00
<!DOCTYPE html>
<html lang="en">
<!-- Yes I know this webpage is crap and I should separate assets into different files and everything blah blah blah I don't care -->
<head>
<title>Locked Access Telegram React</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
2020-11-09 23:39:21 +01:00
<body style="text-align:center; overflow:hidden; height:100%; background-color:#303030; color:#FFFFFF;">
2020-11-09 23:08:27 +01:00
<!-- ASCII to SHA256 Encoding script borrowed from https://geraintluff.github.io/sha256/ -->
<script>var sha256=function a(b){function c(a,b){return a>>>b|a<<32-b}for(var d,e,f=Math.pow,g=f(2,32),h="length",i="",j=[],k=8*b[h],l=a.h=a.h||[],m=a.k=a.k||[],n=m[h],o={},p=2;64>n;p++)if(!o[p]){for(d=0;313>d;d+=p)o[d]=p;l[n]=f(p,.5)*g|0,m[n++]=f(p,1/3)*g|0}for(b+="\x80";b[h]%64-56;)b+="\x00";for(d=0;d<b[h];d++){if(e=b.charCodeAt(d),e>>8)return;j[d>>2]|=e<<(3-d)%4*8}for(j[j[h]]=k/g|0,j[j[h]]=k,e=0;e<j[h];){var q=j.slice(e,e+=16),r=l;for(l=l.slice(0,8),d=0;64>d;d++){var s=q[d-15],t=q[d-2],u=l[0],v=l[4],w=l[7]+(c(v,6)^c(v,11)^c(v,25))+(v&l[5]^~v&l[6])+m[d]+(q[d]=16>d?q[d]:q[d-16]+(c(s,7)^c(s,18)^s>>>3)+q[d-7]+(c(t,17)^c(t,19)^t>>>10)|0),x=(c(u,2)^c(u,13)^c(u,22))+(u&l[1]^u&l[2]^l[1]&l[2]);l=[w+x|0].concat(l),l[4]=l[4]+w|0}for(d=0;8>d;d++)l[d]=l[d]+r[d]|0}for(d=0;8>d;d++)for(e=3;e+1;e--){var y=l[d]>>8*e&255;i+=(16>y?0:"")+y.toString(16)}return i};</script>
2020-11-09 23:39:21 +01:00
<div id="bar" style="position:absolute; top:0; right:0; left:0;">
2020-11-09 23:08:27 +01:00
<span id="Status">Please insert the unlock password.</span>
2020-11-09 23:39:21 +01:00
<input id="LockIN" type="password"></input>
2020-11-09 23:08:27 +01:00
<img id="Lock" value="calculate" style="height:32px;" src="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhLS0gQ3JlYXRlZCB3aXRoIElua3NjYXBlIChodHRwOi8vd3d3Lmlua3NjYXBlLm9yZy8pIC0tPgo8c3ZnIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6Y2M9Imh0dHA6Ly9jcmVhdGl2ZWNvbW1vbnMub3JnL25zIyIgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIiB4bWxuczpzdmc9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4bWxuczpzb2RpcG9kaT0iaHR0cDovL3NvZGlwb2RpLnNvdXJjZWZvcmdlLm5ldC9EVEQvc29kaXBvZGktMC5kdGQiIHhtbG5zOmlua3NjYXBlPSJodHRwOi8vd3d3Lmlua3NjYXBlLm9yZy9uYW1lc3BhY2VzL2lua3NjYXBlIiB3aWR0aD0iNjUwIiBoZWlnaHQ9IjgxMiIgdmlld0JveD0iNDIgMTE5IDY1MCA4MTIiIGlua3NjYXBlOmV4cG9ydC14ZHBpPSI3Ni4yMzUyOTEiIGlua3NjYXBlOmV4cG9ydC15ZHBpPSI3Ni4yMzUyOTEiIGlua3NjYXBlOm91dHB1dF9leHRlbnNpb249Im9yZy5pbmtzY2FwZS5vdXRwdXQuc3ZnLmlua3N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IHgyPSIxNy44NTkwODUiIHhsaW5rOmhyZWY9IiNsaW5lYXJHcmFkaWVudDEyMDcxIiB5MT0iNi44Nzk1MzQ3IiB5Mj0iMy45NTY2NjAzIi8+CiAgICA8bGluZWFyR3JhZGllbnQgaWQ9ImxpbmVhckdyYWRpZW50OTg0NSI+CiAgICAgIDxzdG9wIGlkPSJzdG9wOTg0NyIgb2Zmc2V0PSIwIiBzdHlsZT0ic3RvcC1jb2xvcjojZmZmZmZmO3N0b3Atb3BhY2l0eToxOyIvPgogICAgICA8c3RvcCBpZD0ic3RvcDk4NDkiIG9mZnNldD0iMS4wMDAwMDAwIiBzdHlsZT0ic3RvcC1jb2xvcjojZmZmZmZmO3N0b3Atb3BhY2l0eTowLjQ5NDg0NTM2OyIvPgogICAgPC9saW5lYXJHcmFkaWVudD4KICAgIDxsaW5lYXJHcmFkaWVudCBncmFkaWVudFRyYW5zZm9ybT0ibWF0cml4KDAuNDUzNDQ1LDAsMCwwLjQ3MDAyNiwzMC4xNzI0OCwyNC4zODk0KSIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiIGlkPSJsaW5lYXJHcmFkaWVudDE4OTQiIGlua3NjYXBlOmNvbGxlY3Q9ImFsd2F5cyIgeDE9IjEwLjkwNzI2OSIgeDI9IjMwLjg3NTQ0NiIgeGxpbms6aHJlZj0iI2xpbmVhckdyYWRpZW50OTg0NSIgeTE9IjI1LjAwMjI4MSIgeTI9IjM2LjEyNzI4MSIvPgogICAgPGxpbmVhckdyYWRpZW50IGlkPSJsaW5lYXJHcmFkaWVudDExMzI3Ij4KICAgICAgPHN0b3AgaWQ9InN0b3AxMTMyOSIgb2Zmc2V0PSIwIiBzdHlsZT0ic3RvcC1jb2xvcjojOGY1OTAyO3N0b3Atb3BhY2l0eToxOyIvPgogICAgICA8c3RvcCBpZD0ic3Rv
</div>
<div id="app" style="display:none;">
2020-11-09 23:39:21 +01:00
<embed src="https://evgeny-nadymov.github.io/telegram-react/" style="position:absolute; top:6%; bottom:0; left:0; right:0; overflow:hidden; width:100%; height:94%;"></embed>
2020-11-09 23:08:27 +01:00
</div>
<script>
var locked = 1;
document.getElementById("Lock").onclick = function() {
if (locked == 1) {
if (sha256(document.getElementById("LockIN").value) == "9992c69a82eaba0fc969138c6b27152615b3a57b09ed936bd09b75f1b80d0117") {
locked = 0;
document.getElementById("app").style.display = "block";
document.getElementById("LockIN").value = "";
document.getElementById("Status").textContent = "Currently unlocked.";
} else {
document.getElementById("LockIN").value = "";
document.getElementById("Status").textContent = "Wrong password. Please retry.";
}
}
else {
locked = 1;
document.getElementById("app").style.display = "none";
document.getElementById("LockIN").value = "";
document.getElementById("Status").textContent = "Relocked. Please insert the unlock password.";
}
}
</script>
</body>
</html>