Skip to content

Commit 2b408dc

Browse files
authored
Create index.html
0 parents  commit 2b408dc

File tree

1 file changed

+78
-0
lines changed

1 file changed

+78
-0
lines changed

index.html

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
<html>
2+
<head>
3+
<style>
4+
body {
5+
text-align:center;
6+
background:#408000;
7+
color:#80ff00;
8+
font-size:25px;
9+
}
10+
11+
.tostyle {
12+
background:#408000;
13+
color:#80ff00;
14+
border:none;
15+
font-size:20px;
16+
border-radius:10px;
17+
padding:10px;
18+
border:solid 3px #80ff00;
19+
transition:.5s;
20+
}
21+
22+
.tostyle:hover{
23+
background:#80ff00;
24+
color:#408000;
25+
}
26+
27+
button {
28+
cursor:pointer;
29+
}
30+
31+
p {
32+
font-size:20px;
33+
}
34+
</style>
35+
</head>
36+
<body>
37+
<div style="margin-top:35vh;">
38+
<h1 style="margin-bottom:20px;">Zero Bot Gate</h1>
39+
<form onsubmit="return test()">
40+
<input type="password" placeholder="Enter Your Passphrase" name="in" required id="in" class="tostyle">
41+
<button type="submit" class="tostyle" style=
42+
"margin-left:20px;width:50px;text-align:center;">></button>
43+
</form>
44+
<button class="tostyle" style=
45+
"margin-top:25px;" onclick="/help.html">Need a new passphrase?</button>
46+
<p>By entering a passphrase and proceeding, you agree to our ToS.</p>
47+
</div>
48+
</body>
49+
<script>
50+
const bcrypt = require('bcrypt');
51+
const feild = document.getElementById("in").innerHTML;
52+
53+
const data = [
54+
"password"
55+
]
56+
57+
async function hash(pass) {
58+
const hash = await bcrypt.hash(pass, "noAI");
59+
return hash;
60+
}
61+
62+
async function check( item, index ) {
63+
works = hash(item) === data[index];
64+
}
65+
66+
async function test() {
67+
const password = feild.innerHTML;
68+
const works = false;
69+
data.forEach( check );
70+
71+
if ( works ) {
72+
feild.placeholder = "NOT A PASSWORD";
73+
} else {
74+
window.location = "/pass.html";
75+
}
76+
}
77+
</script>
78+
</html>

0 commit comments

Comments
 (0)