-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgetAnswer_Day03.html
304 lines (262 loc) · 13.5 KB
/
getAnswer_Day03.html
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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" type="text/css" href="css/newStyle.css">
<link rel="stylesheet" type="text/css" href="css/nav.css">
<link rel="stylesheet" type="text/css" href="css/new_main.css">
<link rel="icon" href="img/logo_1.png" type="image/x-icon">
<link rel="shortcut icon" href="img/logo_1.png" type="image/x-icon">
<script async defer data-website-id="0a453f1f-f1bc-4f69-9772-6a1e6cfea828" src="https://stat.buctsnc.cn/umami.js"></script>
<title>Day 3</title>
</head>
<script src="./js/jquery.js"></script>
<body>
<header id="nav" style="display: none">
<img class="logo" src="img/buctlogo.png" alt="logo">
<img class="logo" src="img/snclogo.png" alt="logo">
</header>
<div class="answer_div" id="submit_form" style="display: none">
<form name="answer_form" method="post" class="answer_form" onsubmit="checkSubmit()">
<table>
<tr>
<td>用户名:</td>
<td><input id="nickname" name="nickname" type="text" placeholder="注册过用户名" autocomplete="off" class="text_area"></td>
<td>没有注册?<a href="register.html">注册</a></td>
</tr>
<tr>
<td>电话号码:</td>
<td><input id="contact" name="contact" type="text" placeholder="注册过的电话号码" autocomplete="off" class="text_area"></td>
<td></td>
</tr>
<tr>
<td>获得的答案:</td>
<td><input id="answer_q3" name="answer_q3" type="text" placeholder="Day 3答案" autocomplete="off" class="text_area"></td>
<td>没有找到?<a href="Day_03_index.html">返回</a> </td>
</tr>
</table>
<div class="get_answer_button">
<button class="gab" type="reset" onclick="">重新输入</button>
<button class="gab" type="button" onclick="submits()">提交答案</button>
</div>
</form>
</div>
<!--提交后显示内容-->
<div id="new_main" style="display: none" >
<p class="new_content">
既然签到了,剩下的课对她来说就是可以摸鱼的环节了。打开长鼻象看看今天的热点新闻,打开音乐软件听听习惯的BGM,今天也是摸鱼摆烂的一天呢。<br>
嗯?新闻好像有点意思哦?稍微看一哈。<br>
“……今天的早间新闻内容主要有:上京市珊瑚区地标建筑物央湖中心发生爆炸并有重要数据集被窃取、感知网络公司对旗下产品实控表示遗憾、仿生人伦理协会对感知网络的不负责行为表示强烈谴责。暂无组织宣称对此次事件负责。”<br>
“搞啥子嘛!央湖中心居然爆炸了?”<br>
“这新闻啥都没说嘛,信息量太大了吧……自己动手,丰衣足食……”,苏柠彩一边念叨着,一边电脑上拖出一个新的窗口,开始各种尝试和连接。 毕竟是央湖中心的电脑系统,层层的WAF做的还算非常充足,普通的黑客要绕开还是要费些力气的。具体的数据内容看不到,但是名称还是可以从文件目录判断出来的。 百密一疏,上京的国防部忘记把文件系统的http映射关掉了!<br>
<br>
<div class="code_block">
-rw-r--r-- 1 root root 3106 Dec 5 2019 .bashrc<br>
drwx------ 1 root root 4096 Feb 9 19:27 .config/<br>
drwxr-xr-x 1 root root 4096 Jan 23 23:02 .local/<br>
drwxr-xr-x 1 mod mod 4096 Apr 17 10:23 national_dataset<br>
</div>
<br>
果然,这个national_dataset就非常值得关注呢!直接cd进去看看,然后习惯性的打出一个ll,继续看下面有什么……<br>
<br>
<div class="code_block">
drwxr-xr-x 1 mod mod 4096 Apr 1 16:26 face_measurement/<br>
drwxr-xr-x 1 mod mod 4096 Apr 1 16:26 face_microemotion/<br>
drwxr-xr-x 1 mod mod 4096 Apr 1 16:28 face_recognize/<br>
drwxr-xr-x 1 mod mod 4096 Apr 1 16:27 netizen_id/<br>
</div>
<br>
“什么?人脸识别?不是说好了禁止采集人脸数据的吗?泥萌怎么可以这样喂……”<br>
但是怀着好奇心,她还是点了下去……喔,好像真的有一些训练数据和模型……<br>
<br>
<div class="code_block">
-rw-r--r-- 1 mod mod 8080862 Mar 21 2021 NameIndex.json<br>
-rw-r--r-- 1 mod mod 2654341 Oct 26 1985 data-1.0.json<br>
-rw-r--r-- 1 mod mod 2675994 Oct 26 1985 data-2.0.json<br>
-rw-r--r-- 1 mod mod 2449994 Apr 28 2021 no_kv_ETRS89NO_NGO48_TIN.json<br>
-rw-r--r-- 1 mod mod 5140752 Nov 23 2018 'noise0_model.json (2).caffemodel'<br>
-rw-r--r-- 1 mod mod 5140752 Nov 23 2018 noise0_model.json.caffemodel<br>
-rw-r--r-- 1 mod mod 5146151 Nov 23 2018 'noise0_scale2.0x_model.json (2).caffemodel'<br>
-rw-r--r-- 1 mod mod 5146151 Nov 23 2018 noise0_scale2.0x_model.json.caffemodel<br>
<br>
Error: network error software caused connection abort
</div>
<br>
“果然还是被发现了啊,如果被查到的话会不会被处分呢?应该不会吧,毕竟我又没有下载”<br>
“再说人家是最可爱的美少女喵!真的被抓到~就只好红豆泥斯密马赛啦!”<br>
一天就这样过去了,太阳很快落回地面,上京市的夜晚重新被霓虹所笼罩。扎眼的灯光穿透夜晚的武器照在街道上。<br>
雨又下起了了,淅淅沥沥的打在窗玻璃上模糊了人的视线。但这一切和苏柠彩都没有关系,她依然沉浸在她的赛博世界中,作为网络公民的一员而生活。<br>
未来,会有更多和她一样的人成为这个世界的公民吗?这个网络世界的准则又是怎样?我们很难思考。<br>
苏柠彩也放弃了思考,累了,便又爬上床休息了。<br>
“睡大觉喽!”<br>
</p>
</div>
<div class="new_main_container" id="output_container">
<div id="output">
</div>
</div>
</body>
<script>
window.onload = function(){
$("#nav").fadeIn();
$("#submit_form").fadeIn();
}
let submit = false;
function checkSubmit() {
if(!submit) {
// 表单提交后设置标志位
submit = true;
return true;
}
// 表单已经提交,不允许再次提交
console.log("请不要重复提交表单!");
return false;
}
// 打字机效果
class Typing {
constructor(opts) {
this.opts = opts || {};
this.source = opts.source;
this.output = opts.output;
this.delay = opts.delay || 12;
this.chain = {
parent: null,
dom: this.output,
val: []
};
if (!(typeof this.opts.done === 'function')) this.opts.done = function () {
};
}
init() {
this.chain.val = this.convert(this.source, this.chain.val);
}
convert(dom, arr) {
//将dom节点的子节点转换成数组,
let children = Array.from(dom.childNodes)
for (let i = 0; i < children.length; i++) {
let node = children[i]
if (node.nodeType === 3) {
arr = arr.concat(node.nodeValue.split('')) //将字符串转换成字符串数组,后面打印时才会一个一个的打印
} else if (node.nodeType === 1) {
let val = []
val = this.convert(node, val)
arr.push({
'dom': node,
'val': val
})
}
}
return arr
}
print(dom, val, callback) {
setTimeout(function () {
dom.appendChild(document.createTextNode(val));
callback();
}, this.delay);
}
play(ele) {
//当打印最后一个字符时,动画完毕,执行done
if (!ele.val.length) {
if (ele.parent) this.play(ele.parent);
else this.opts.done();
return true;
}
let current = ele.val.shift() //获取第一个元素,同时删除数组中的第一个元素
if (typeof current === 'string') {
this.print(ele.dom, current, () => {
this.play(ele); //继续打印下一个字符
})
} else {
let dom = current.dom.cloneNode() //克隆节点,不克隆节点的子节点,所以不用加参数true
ele.dom.appendChild(dom)
this.play({
parent: ele,
dom,
val: current.val
})
}
}
start() {
this.init();
this.play(this.chain);
}
}
let source = document.getElementById('new_main')
let output = document.getElementById('output')
let typing = new Typing({
source,
output
})
function isLegalName (str) {
let re = /^[0-9a-zA-Z]*$/;
if (!re.test(str) || str.indexOf(" ") != -1) {
return false;
} else {
return true;
}
}
function isLegalTel(str) {
let re = /^[0-9|+]*$/;
if (!re.test(str) || str.indexOf(" ") != -1) {
return false;
} else {
return true;
}
}
function check(nickname, contact, answer_q3) {
if(nickname.length < 1 || contact.length < 10 || answer_q3.length < 1){
return false;
}
return true;
}
function submits() {
let nickname = document.getElementById("nickname")
let contact = document.getElementById("contact")
let answer_q3 = document.getElementById("answer_q3")
if(check(nickname.value, contact.value, answer_q3.value) && isLegalName(nickname.value) && isLegalTel(contact.value)){
$.ajax({
url:"https://sncdeveloper.cn:8000/argProject/day03",
// url:"http://127.0.0.1:8000/ARG/day03",
method:"post",
async:"false",
data:{"nickname":nickname.value,"contact":contact.value,"answer_q3":answer_q3.value},
dataType:"json",
contentType:"application/x-www-form-urlencoded",
success(result){
nickname.value = ""
contact.value = ""
answer_q3.value = ""
window.alert(result.msg)
if(result.data.solveStatus=="####"){ //不做成功提交后的打字机效果
$("#submit_form").empty();
let intro1 = "<h1 style='display: none; float: top' id='intro1'>Day 01——签到之后</h1>";
let intro2 = "<h1 style='display: none; float: bottom' id='intro2'>(对第二天解密有帮助)</h1>";
$("#submit_form").css({
"display": "flex",
"flex-direction": "column"
})
$("#submit_form").append(intro1, intro2);
$("#intro1").fadeIn();
$("#intro2").fadeIn();
setTimeout(function() {
$("#submit_form").fadeOut(1600);
$("#output_container").fadeIn(2500);
$("#output").fadeIn("slow");
}, 1200);
setTimeout(function() { typing.start(); }, 2500);
}
},
error(msg){
console.log("error"+msg)
window.alert("活动太火爆了,请稍后再试")
}
})
}else{
if (!isLegalName(nickname.value))
alert("用户名只能由数字和字母组成!");
else
alert("联系方式格式有误或答案为空,请重新输入")
}
}
</script>
</html>