This repository was archived by the owner on Jul 6, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
504 lines (500 loc) · 29.8 KB
/
index.html
File metadata and controls
504 lines (500 loc) · 29.8 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
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
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
<style>
.my_toolbox-table table tbody tr td span {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
width: 580px;
display: block;
}
.line-limit-length {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
</style>
<div class="bt-form">
<div id="pluginMain" class="bt-w-main">
<div class="bt-w-menu">
<p>端口扫描</p>
<p>Hosts编辑</p>
<p>磁盘工具</p>
<p>SMB工具</p>
<p>命令执行</p>
<p>日志写入</p>
<p>网站压力测试</p>
<p>请求网页</p>
<p id="sitemap-menu" style="display: none;">网站地图生成</p>
<p>关于本插件</p>
</div>
<div class="bt-w-con pd15">
<div class="plugin_body">
<div id="scanPort" style="display: none;">
<div id="scanPortForm">
<H3>端口扫描</H3><br>
<div class='soft-man-con bt-form'><br>
<div class='line'><span class='tname'>目标IP</span>
<div class='info-r'>
<input id='serverIp' placeholder='127.0.0.1' type='text' class='bt-input-text mr5'
value='' style='width: 430px;'>
<br />
<span style='color: rgb(153, 153, 153);'>输入需要扫描开放端口的服务器IP</span>
</div>
</div>
<div class='line'><span class='tname'>扫描范围</span>
<div class='info-r'>
<input id='portStart' placeholder='1' type='number' class='bt-input-text mr5'
style='width: 100px;'> -
<input id='portEnd' placeholder='65535' type='number' class='bt-input-text mr5'
style='width: 100px;'>
<br />
<span style='color: rgb(153, 153, 153);'>扫描端口范围,范围越小耗时越少</span>
</div>
</div>
<div class='line'>
<span class='tname'></span>
<br>
<div class='info-r'>
<button class='btn btn-success btn-sm' id="startScanBTN"
onclick='startScan()'>开始扫描</button>
</div>
</div><br><br><br><br><br><br><br><br><br><br>
<ul class='help-info-text c7 mtb15'>
<li>崩坏原神,淦翻内存!</li>
<li>PS:建议扫描1-1024端口,因为大部分常用端口集中在此范围</li>
<li>本功能基于nmap,如果未安装此软件包或系统不支持此命令,本功能将无法使用</li>
<li>扫描时间随需扫描端口数量的增多而变长。所以扫描端口数较多时,请耐心等待!</li>
</ul>
</div>
</div>
<div id="portScanResultTable" style="display: none;">
<H3>端口扫描
<button class='btn btn-default btn-sm btn-success' onclick='backToScan()'>返回上一页</button>
</H3><br>
<div style="max-height:402px;overflow:auto;border:#ddd 1px solid;">
<div class="divtable">
<table class="table table-hover">
<thead>
<tr>
<th>端口</th>
<th>当前状态</th>
<th>服务类型(仅参考)</th>
</tr>
</thead>
<tbody id="portFormBody">
</tbody>
</table>
</div>
</div>
<ul class='help-info-text c7 mtb15'>
<li>派蒙 —— 最好的应急食品</li>
<li>我叫可莉,是个僵尸,会做牛杂,喜欢占星,目前是西风骑士团的代理团长,经营着一家酒庄</li>
</ul>
</div>
</div>
<div id="hostsList" style="display: none;">
<H3>Hosts编辑
<button class='btn btn-default btn-sm btn-success' onclick='editHosts()'>添加Hosts</button>
<button class='btn btn-default btn-sm btn-success'
onclick='switchToHostsFileEdit()'>编辑源文件</button>
</H3><br>
<div style="max-height:402px;overflow:auto;border:#ddd 1px solid;">
<div class="divtable">
<table class="table table-hover">
<thead>
<tr>
<th>IP</th>
<th>域名</th>
<th>操作</th>
</tr>
</thead>
<tbody id="hostsFormBody" style="display: none;">
</tbody>
</table>
</div>
</div>
<ul class='help-info-text c7 mtb15'>
<li>当你的天空下起大雨,那是我在为你炸乌云~~~</li>
<li>当你的发丝微乱有阵风吹过,那是我在远处想念你~~~ —— 《让风告诉你》</li>
</ul>
</div>
<div id="diskTools" style="display: none;">
<H3>磁盘工具
<button class='btn btn-success btn-sm' onclick="getDiskInfo()">刷新</button>
<button class='btn btn-default btn-sm btn-success'
onclick='switchToFstabFileEdit()'>编辑FSTAB</button>
</H3><br>
<div style="max-height:402px;overflow:auto;border:#ddd 1px solid;">
<div class="divtable">
<table class="table table-hover">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th>挂载点</th>
<th>容量</th>
<th>文件系统</th>
<th>可用操作</th>
</tr>
</thead>
<tbody id="disksFormBody" style="display: none;">
</tbody>
</table>
</div>
</div>
<ul class='help-info-text c7 mtb15'>
<li>数据无价,谨慎操作!本功能处于公测阶段,可能存在未发现的问题,请谨慎使用!</li>
<li>未来旅行很多曲折,但要记得快乐。向过去手挥挥,拜拜! —— 《提瓦特天使降临到你身边》</li>
</ul>
</div>
<div id="smb-mount" style="display: none;">
<H3>SMB工具
<button class='btn btn-success btn-sm' onclick="getSMBList()">刷新</button>
<button class='btn btn-success btn-sm' onclick="smbMount()">挂载SMB</button>
<button class='btn btn-default btn-sm btn-success'
onclick='switchToFstabFileEdit()'>编辑FSTAB</button>
</H3><br>
<div style="max-height:402px;overflow:auto;border:#ddd 1px solid;">
<div class="divtable">
<table class="table table-hover">
<thead>
<tr>
<th>远程地址</th>
<th>挂载点</th>
<th>挂载参数</th>
<th>可用操作</th>
</tr>
</thead>
<tbody id="smb-table-body" style="display: none;">
</tbody>
</table>
</div>
</div>
<ul class='help-info-text c7 mtb15'>
<li>当前本插件仅支持Ubuntu系统!其他系统正在努力适配中!</li>
<li>佚失的诗篇还在等着我们呢,我想听听你的愿望是什么 —— 温迪单曲《可以吗》</li>
</ul>
</div>
<div id="commandExecution" style="display: none;">
<H3>命令执行</H3><br><br>
<textarea id="bashCommand" class="txtsjs bt-input-text" placeholder="echo Vocaloid is ALIVE"
name="sBody" style='line-height:20px; width: 755px; height:300px;'></textarea>
<br><br><br><button class='btn btn-success btn-sm' id="executeCommandBTN"
onclick="executeCommand('commandExecution')">执行命令</button>
<button class='btn btn-danger btn-sm' onclick="cleanCommandBox()">清空命令</button><br>
<ul class='help-info-text c7 mtb15'>
<li>本功能可以让你不需要连接SSH也可以通过Linux命令连接服务器</li>
<li>本页面命令执行时间为无限,可以执行需要很长时间的命令,并且不会卡死宝塔</li>
<li>如果上一次运行的命令还没有执行完成就执行下一个命令,上一个命令将会被强制结束</li>
</ul>
</div>
<div id="logWrite" style="display: none;">
<H3>日志写入</H3><br><br>
<div class='line'>
<span class='tname'>操作类型</span>
<div class='info-r'>
<input id='logType' placeholder='维护网站' type='text' class='bt-input-text mr5' value=''
style='width: 200px;'>
<br />
<span style='color: rgb(153, 153, 153);'>日志的详细信息,就是安全板块,面板操作日志的“操作类型”栏目</span>
</div>
</div>
<div class='line'>
<span class='tname'>操作详情</span>
<div class='info-r'>
<input id='logDetail' placeholder='在2021/12/27月,我维护了网站' type='text'
class='bt-input-text mr5' value='' style='width: 430px;'>
<br />
<span style='color: rgb(153, 153, 153);'>日志的详细信息,就是安全板块,面板操作日志的“详情”栏目</span>
</div>
</div>
<div class='line'>
<span class='tname'></span>
<div class='info-r'>
<button class='btn btn-success btn-sm' onclick='logWrite()'>写入面板日志</button>
</div>
</div><br><br><br><br><br><br><br><br><br><br><br>
<ul class='help-info-text c7 mtb15'>
<li>此处你可以将您对面板的操作手动写入面板日志</li>
<li>我本以为我不过是个旁观者 直到我感觉到如此真实的触碰</li>
<li>当我看到人们含泪的微笑 我便不再是个匆匆过客</li>
<li>如果不曾知晓生离死别的伤痛,又该将什么铭记于心 —— 《Moon Halo》</li>
</ul>
</div>
<div id="websiteStressTest" style="display: none;">
<H3>网站压力测试</H3><br><br>
<div class='line'>
<span class='tname'>请求数量</span>
<div class='info-r'>
<input id='numberOfRequests' placeholder='10000' type='text' class='bt-input-text mr5'
value='' style='width: 430px;'>
<br />
<span style='color: rgb(153, 153, 153);'>总计发送多少个请求</span>
</div>
</div>
<div class='line'>
<span class='tname'>并发数量</span>
<div class='info-r'>
<input id='concurrentNumber' placeholder='50' type='text' class='bt-input-text mr5' value=''
style='width: 430px;'>
<br />
<span style='color: rgb(153, 153, 153);'>建议不要太大,一般普通博客并发并发不会超过50</span>
</div>
</div>
<div class='line'>
<span class='tname'>网页地址</span>
<div class='info-r'>
<input id='stressTestURL' placeholder='https://kagamine.top/' type='text'
class='bt-input-text mr5' value='' style='width: 430px;'>
<br />
<span style='color: rgb(153, 153, 153);'>服务器压测不仅会对目标网站造成较大压力,也会给本服务器造成压力</span>
</div>
</div>
<br>
<div class='line'>
<span class='tname'></span>
<div class='info-r'>
<button class='btn btn-success btn-sm' id="startWebsiteStressTestBTN"
onclick='startWebsiteStressTest()'>开始压测</button>
</div>
</div><br><br><br><br><br><br>
<ul class='help-info-text c7 mtb15'>
<li>此处使用ab压测工具进行压测!</li>
<li>注意:启动本功能后,如果使用“命令执行”功能,将会导致压测停止</li>
<li>可爱是天使的声音,是一次就无法忘记,是红色跳动的精灵,是每天都关禁闭</li>
<li>蒙德城最可爱的萝莉 —— 可莉;璃月风神 —— 七七</li>
</ul>
</div>
<div id="requestPage" style="display: none;">
<H3>请求网页</H3><br><br>
<textarea id="requestPageResult" readonly="" class="txtsjs bt-input-text" name="sBody"
style="line-height:20px;margin: 0px;width: 760px; height:310px;background-color: #333;color:#fff; padding:0 5px">HTTP状态码:200 页面打开耗时:12.27ms 页面HTML内容: <html> <head> <title>Kagamine</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta name="keywords" content="镜音双子,Kagamine,镜音连,镜音铃" /> <meta name="description" content="这个页面是个示例页面" /> </head> <body> <p>镜面双生,最美和音</p> </body> </html> </textarea>
<div class='line'>
<span class='tname'>网页地址</span>
<div class='info-r'>
<input id='requestPageUrl' placeholder='https://www.wunote.cn' type='text'
class='bt-input-text mr5' value='' style='width: 400px;'>
<button class='btn btn-success btn-sm' id="requestPageBTN"
onclick="requestPage()">请求!</button>
<button class='btn btn-danger btn-sm' onclick="cleanRequestPageResult()">清空结果</button>
<br />
<span style='color: rgb(153, 153, 153);'>网页响应时间超过60秒将会超时报错!</span>
</div>
</div><br>
<ul class="help-info-text c7 mtb15">
<li>此处请求网页的UA为Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko)
Chrome/91.0.4472.124 Safari/537.36 Edg/91.0.864.70</li>
</ul>
</div>
<div id="sitemapGeneration" style="display: none;">
<H3>网站地图生成</H3><br><br>
<div style="line-height:34px">
<textarea id="sitemapGenerationResult" readonly=""
style="line-height:20px; margin: 0px; width: 760px; height:250px; background-color: #333; color:#fff; padding:0 5px"
name="sBody">「薪炎永燃」 为世界上所有的美好而战!</textarea>
</div>
<div class='line'><span class='tname'>最大层数</span>
<div class='info-r'>
<input id='maxNumber' placeholder='7' type='number' class='bt-input-text mr5' value=''>
<br />
<span style='color: rgb(153, 153, 153);'>最多遍历X层网页(每增加一层,请求数都会增加)</span>
</div>
</div>
<div class='line'><span class='tname'>网站地址</span>
<div class='info-r'>
<input id='sitemapURL' placeholder='https://www.wunote.cn' type='text'
class='bt-input-text mr5' value='' style='width: 430px;'>
<br />
<span style='color: rgb(153, 153, 153);'>PS:开始生成后,可能产生大量非并发的请求!</span>
</div>
</div>
<div class='line'>
<span class='tname'></span>
<div class='info-r'>
<button class='btn btn-success btn-sm' id="sitemapGenerationBTN"
onclick='sitemapGeneration()'>开始生成</button>
<button class='btn btn-success btn-sm' style="display: none;" id="downloadSitemapBTN"
onclick='downloadSitemap()'>下载网站地图</button>
</div>
</div>
</div>
<div id="aboutPlugin" style="display: none;">
<br>
<center>
<img id="aboutImg" style="width:300px; height:300px; border-radius:100%; overflow:hidden;"
src="/my_toolbox/static/about.png" alt="Unknown-O" />
<br><br>
<p style='color:Grey;font-size:20px;'>为退烧而生</p><br>
<p style='color:Grey;font-size:15px;'>程序版本:V1.9.2</p><br>
<p style='color:Grey;font-size:15px;'>作者邮箱:i@mr-wu.top</p>
<br>
<a class='btn btn-success btn-sm' href='https://www.wunote.cn' target='_blank'
title="去作者博客看看其他有趣的内容?">作者博客</a>
<a class='btn btn-success btn-sm' href='https://www.mr-wu.top/donate' target='_blank'
title="请我喝杯咖啡?">捐助作者</a>
<a class='btn btn-success btn-sm' href='https://www.bt.cn/bbs/thread-52772-1-1.html'
target='_blank' title="你可以在此处与大家一起讨论关于本插件的问题!">论坛讨论</a>
</center>
</div>
</div>
<div id="extraPage">
<div id="commandExecutionResult" style="display: none;">
<H3>执行结果 <button class='btn btn-success btn-sm' onclick="backToPreviousPage()">返回上一页</button></H3>
<br>
<textarea readonly='' id="executionResult"
style='margin: 0px;width: 755px;height: 425px;background-color: #333;color:#fff; padding:0 5px'></textarea>
<ul class="help-info-text c7 mtb15">
<li>我不想就这样沦陷,迷失在黑夜,我想燃烧这生命,就算再壮烈 —— 《绝体绝命》</li>
</ul>
</div>
<div id="hostsEditor" style="display: none;">
<H3>Hosts编辑 <button class='btn btn-success btn-sm' onclick="backToHostsList()">返回上一页</button></H3>
<br><br>
<textarea id="hostEditTextbox" class="txtsjs bt-input-text"
placeholder="162.159.208.43 kagamine.top" name="sBody"
style='line-height:20px; width: 755px; height:310px;'></textarea>
<br><br><button class='btn btn-success btn-sm' id="saveHostsFileBTN"
onclick="saveHostsFile()">保存</button><br>
<ul class='help-info-text c7 mtb15'>
<li>此处可以直接编辑hosts源文件</li>
<li>我们将那一天相同的星星做成记号,重叠声音~~</li>
<li>浮出的憧憬如果能像自己地吐露出浓浓渗透出的后悔的话,会该有多么轻松呢? —— 《流星的脉搏》</li>
</ul>
</div>
<div id="fstabEditor" style="display: none;">
<H3>FSTAB编辑</H3>
<br><br>
<textarea id="fstabEditTextbox" class="txtsjs bt-input-text"
placeholder="/dev/sda1 /kagamine ext4 defaults 0 0" name="sBody"
style='line-height:20px; width: 755px; height:310px;'></textarea>
<br><br><button class='btn btn-success btn-sm' id="saveHostsFileBTN"
onclick="saveFstabFile()">保存</button><br>
<ul class='help-info-text c7 mtb15'>
<li>此处可以直接编辑fstab源文件</li>
<li>小巷派暗黑打油诗人正是本人,往生堂的当代堂主送你一程</li>
<li>天晴海阔,皓月凌空,一波送走。此情此景正适合作诗一首 —— 胡桃单曲《嗷》Remix</li>
</ul>
</div>
<div id="hostsTemplate" style="display: none;">
<div class="row" style="width: 420px; margin-left:7px; margin-top:10px;">
<div class="col-sm-12">
<div class="input-group">
<span class="input-group-addon">IP</span>
<input id="hostsIP" class="form-control" placeholder="1.1.1.1">
</div>
</div>
<div class="col-sm-12" style="margin-top: 10px">
<div class="input-group">
<span class="input-group-addon">域名</span>
<input id="hostsDomain" class="form-control" placeholder="www.wunote.cn">
</div>
</div>
</div>
</div>
<div id="mainPage">
<br><br>
<center>
<img src="/my_toolbox/static/62270332_p1.jpg">
<img src="/my_toolbox/static/62270332_p0.jpg">
</center>
<h2 style='text-align:center;margin-top:15%;'>欢迎使用,您可以在侧边栏选择工具!</h2>
</div>
</div>
</div>
</div>
<div id="fatalError" style="display: none;">
<br>
<center>
<img src="/my_toolbox/static/rin.gif">
</center>
<br>
</div>
<div id="mount-disk-dialog" style="display: none;">
<div class="col-sm-12" style="margin-top: 10px">
<div class="input-group">
<span style="width: 150px;" class="input-group-addon">磁盘名称</span>
<input id="template-disk-1" type="text" class="form-control" value="sdb">
</div>
<div class="input-group">
<span style="width: 150px;" class="input-group-addon">文件系统</span>
<input id="template-filesystem-1" value="ext4" type="text" class="form-control" placeholder="ext4">
</div>
<div class="input-group">
<span style="width: 150px;" class="input-group-addon">挂载点</span>
<input id="template-mount-point-1" more="" value="/kagamine" type="text" class="form-control">
</div>
<div class="input-group">
<span style="width: 150px;" class="input-group-addon">挂载参数</span>
<input id="template-options-1" value="defaults" type="text" class="form-control" placeholder="defaults">
</div>
<ul class="help-info-text c7 mtb15">
<li>如果挂载失败,请检查您输入的文件系统是否正确</li>
</ul>
</div>
</div>
<div id="smb-mount-dialog" style="display: none;">
<div class="col-sm-12" style="margin-top: 10px">
<div class="input-group">
<span style="width: 150px;" class="input-group-addon">远程地址</span>
<input id="template-addr-1" type="text" class="form-control" placeholder="//172.7.12.27/kagamine">
</div>
<div class="input-group">
<span style="width: 150px;" class="input-group-addon">挂载点</span>
<input id="template-mountpoint-1" type="text" class="form-control" placeholder="/kagamine">
</div>
<div class="input-group">
<span style="width: 150px;" class="input-group-addon">用户名</span>
<input id="template-username-1" placeholder="kagamine" type="text" class="form-control">
</div>
<div class="input-group">
<span style="width: 150px;" class="input-group-addon">密码</span>
<input id="template-password-1" placeholder="kagamineYES" type="password" class="form-control"
placeholder="defaults">
</div>
<ul class="help-info-text c7 mtb15">
<li>当前暂时不支持匿名登录</li>
<li>用户名和密码中请不要包含特殊字符,以免出错</li>
</ul>
</div>
</div>
</div>
<script type="text/javascript" src="../my_toolbox/static/main.js"></script>
<script type="text/javascript" src="../my_toolbox/static/console-image.js"></script>
<script type="text/javascript">
$("#sitemap-menu").hide()
$('.layui-layer-page').css({
'width': '900px'
});
$(".bt-w-menu p").click(function () {
$("#extraPage").children('div').hide(100)
var i = $(this).index();
$(this).addClass('bgw').siblings().removeClass('bgw')
$(".plugin_body > div").hide(200).eq(i).show(200);
switch (i) {
case 1:
getHostsList()
break;
case 2:
getDiskInfo()
break;
case 3:
systemDetection("ubuntu", function (result) {
if (!result) {
layer.msg("抱歉!本功能暂时不支持本系统!", {
icon: 2
})
$("#smb-mount").hide(200, function () {
$("#mainPage").show(200)
})
return false
}
getSMBList()
})
break;
case 9:
window.open("https://www.mr-wu.top/donate")
aboutPlugin()
break;
}
});
//loadImage("https://static.llilii.cn/images/donate.png")
</script>