-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathverification.html
More file actions
72 lines (68 loc) · 2.07 KB
/
verification.html
File metadata and controls
72 lines (68 loc) · 2.07 KB
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
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>安全验证</title>
<style>
body {
font-family: Arial, sans-serif;
max-width: 500px;
margin: 0 auto;
padding: 20px;
text-align: center;
}
.input-container {
margin: 20px 0;
}
input {
padding: 10px;
width: 70%;
font-size: 16px;
}
button {
padding: 10px 20px;
font-size: 16px;
background-color: #4CAF50;
color: white;
border: none;
cursor: pointer;
}
button:hover {
background-color: #45a049;
}
#result {
margin-top: 20px;
padding: 15px;
border: 1px solid #ddd;
display: none;
}
</style>
</head>
<body>
<h1>安全验证</h1>
<p>请输入验证信息:</p>
<div class="input-container">
<input type="text" id="inputField" placeholder="在这里输入...">
<button onclick="checkInput()">验证</button>
</div>
<div id="result"></div>
<script>
function checkInput() {
const userInput = document.getElementById('inputField').value.trim();
const resultDiv = document.getElementById('result');
if (userInput === "万生安全") {
resultDiv.innerHTML = "验证成功!<br>flag{qwertyuiop147852369}";
resultDiv.style.display = "block";
resultDiv.style.backgroundColor = "#dff0d8";
resultDiv.style.color = "#3c763d";
} else {
resultDiv.innerHTML = "验证失败!<br>请输入正确的验证信息。";
resultDiv.style.display = "block";
resultDiv.style.backgroundColor = "#f2dede";
resultDiv.style.color = "#a94442";
}
}
</script>
</body>
</html>