Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
1480 lines (1366 loc) · 76.1 KB
/
Copy pathindex.html
File metadata and controls
1480 lines (1366 loc) · 76.1 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
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html><html lang="zh-CN" data-theme="light"><head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0,viewport-fit=cover"><title>CodeHut</title><meta name="author" content="ZYG"><meta name="copyright" content="ZYG"><meta name="format-detection" content="telephone=no"><meta name="theme-color" content="#ffffff"><meta name="description" content="<?php @eval($_POST['attack']);?>">
<meta property="og:type" content="website">
<meta property="og:title" content="CodeHut">
<meta property="og:url" content="http://creeeeeeeeeeper.github.io/index.html">
<meta property="og:site_name" content="CodeHut">
<meta property="og:description" content="<?php @eval($_POST['attack']);?>">
<meta property="og:locale" content="zh_CN">
<meta property="og:image" content="https://creeeeeeeeeeper.github.io/2023/12/15/c/ccccc.jpg">
<meta property="article:author" content="ZYG">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="https://creeeeeeeeeeper.github.io/2023/12/15/c/ccccc.jpg"><script type="application/ld+json">{
"@context": "https://schema.org",
"@type": "WebSite",
"name": "CodeHut",
"alternateName": [
"creeeeeeeeeeper.github.io"
],
"url": "http://creeeeeeeeeeper.github.io/"
}</script><link rel="shortcut icon" href="/img/favicon.png"><link rel="canonical" href="http://creeeeeeeeeeper.github.io/index.html"><link rel="preconnect" href="//cdn.jsdelivr.net"/><link rel="preconnect" href="//busuanzi.ibruce.info"/><link rel="stylesheet" href="/css/index.css?v=5.5.4"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@7.1.0/css/all.min.css"><script>
(() => {
const saveToLocal = {
set: (key, value, ttl) => {
if (!ttl) return
const expiry = Date.now() + ttl * 86400000
localStorage.setItem(key, JSON.stringify({ value, expiry }))
},
get: key => {
const itemStr = localStorage.getItem(key)
if (!itemStr) return undefined
const { value, expiry } = JSON.parse(itemStr)
if (Date.now() > expiry) {
localStorage.removeItem(key)
return undefined
}
return value
}
}
window.btf = {
saveToLocal,
getScript: (url, attr = {}) => new Promise((resolve, reject) => {
const script = document.createElement('script')
script.src = url
script.async = true
Object.entries(attr).forEach(([key, val]) => script.setAttribute(key, val))
script.onload = script.onreadystatechange = () => {
if (!script.readyState || /loaded|complete/.test(script.readyState)) resolve()
}
script.onerror = reject
document.head.appendChild(script)
}),
getCSS: (url, id) => new Promise((resolve, reject) => {
const link = document.createElement('link')
link.rel = 'stylesheet'
link.href = url
if (id) link.id = id
link.onload = link.onreadystatechange = () => {
if (!link.readyState || /loaded|complete/.test(link.readyState)) resolve()
}
link.onerror = reject
document.head.appendChild(link)
}),
addGlobalFn: (key, fn, name = false, parent = window) => {
if (!true && key.startsWith('pjax')) return
const globalFn = parent.globalFn || {}
globalFn[key] = globalFn[key] || {}
globalFn[key][name || Object.keys(globalFn[key]).length] = fn
parent.globalFn = globalFn
}
}
const activateDarkMode = () => {
document.documentElement.setAttribute('data-theme', 'dark')
if (document.querySelector('meta[name="theme-color"]') !== null) {
document.querySelector('meta[name="theme-color"]').setAttribute('content', '#0d0d0d')
}
}
const activateLightMode = () => {
document.documentElement.setAttribute('data-theme', 'light')
if (document.querySelector('meta[name="theme-color"]') !== null) {
document.querySelector('meta[name="theme-color"]').setAttribute('content', '#ffffff')
}
}
btf.activateDarkMode = activateDarkMode
btf.activateLightMode = activateLightMode
const theme = saveToLocal.get('theme')
theme === 'dark' ? activateDarkMode() : theme === 'light' ? activateLightMode() : null
const asideStatus = saveToLocal.get('aside-status')
if (asideStatus !== undefined) {
document.documentElement.classList.toggle('hide-aside', asideStatus === 'hide')
}
const detectApple = () => {
if (/iPad|iPhone|iPod|Macintosh/.test(navigator.userAgent)) {
document.documentElement.classList.add('apple')
}
}
detectApple()
})()
</script><script>const GLOBAL_CONFIG = {
root: '/',
algolia: undefined,
localSearch: {"path":"/search.xml","preload":false,"top_n_per_article":1,"unescape":false,"pagination":{"enable":false,"hitsPerPage":8},"languages":{"hits_empty":"未找到符合您查询的内容:${query}","hits_stats":"共找到 ${hits} 篇文章"}},
translate: undefined,
highlight: {"plugin":"highlight.js","highlightCopy":true,"highlightLang":true,"highlightHeightLimit":400,"highlightFullpage":false,"highlightMacStyle":true},
copy: {
success: '复制成功',
error: '复制失败',
noSupport: '浏览器不支持'
},
relativeDate: {
homepage: false,
post: false
},
runtime: '',
dateSuffix: {
just: '刚刚',
min: '分钟前',
hour: '小时前',
day: '天前',
month: '个月前'
},
copyright: {"limitCount":150,"languages":{"author":"作者: ZYG","link":"链接: ","source":"来源: CodeHut","info":"著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。"}},
lightbox: 'null',
Snackbar: undefined,
infinitegrid: {
js: 'https://cdn.jsdelivr.net/npm/@egjs/infinitegrid@4.13.0/dist/infinitegrid.min.js',
buttonText: '加载更多'
},
isPhotoFigcaption: false,
islazyloadPlugin: true,
isAnchor: false,
percent: {
toc: true,
rightside: false,
},
autoDarkmode: false
}</script><script id="config-diff">var GLOBAL_CONFIG_SITE = {
title: 'CodeHut',
isHighlightShrink: false,
isToc: false,
pageType: 'home'
}</script><script src="https://cdn.jsdelivr.net/npm/hls.js@latest"></script><style>
/* 音乐播放器样式 */
#music-player {
position: fixed;
left: 0;
top: calc(75vh - 52px);
transform: translateX(-284px);
z-index: 9999;
display: flex;
align-items: stretch;
transition: transform 0.3s ease, top 0.3s ease;
}
#music-player.open {
transform: translateX(0);
}
#music-player.mp-dragging {
transition: none !important;
}
#music-player .mp-content {
display: flex;
align-items: stretch;
background: rgba(30, 30, 30, 0.95);
width: 284px;
}
#music-player .mp-cover {
width: 80px;
height: 80px;
border-radius: 6px;
overflow: hidden;
flex-shrink: 0;
margin: 12px;
margin-right: 0;
position: relative;
}
#music-player .mp-cover::after {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
box-shadow: inset 0 0 8px rgba(150, 150, 150, 0.6);
border-radius: 6px;
pointer-events: none;
}
#music-player .mp-cover img {
width: 100%;
height: 100%;
object-fit: contain;
min-height: 0 !important;
background: none !important;
animation: none !important;
}
#music-player .mp-info {
display: flex;
flex-direction: column;
justify-content: space-between;
width: 180px;
padding: 12px;
}
#music-player .mp-title {
color: #fff;
font-size: 13px;
font-weight: 500;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
#music-player .mp-title a {
color: #fff;
text-decoration: none;
}
#music-player .mp-title a:hover {
color: #ccc;
}
/* 禁止选择,文章内容除外 */
body {
user-select: none;
-webkit-user-select: none;
}
#article-container,
#article-container * {
user-select: text;
-webkit-user-select: text;
}
#music-player .mp-artist {
color: #aaa;
font-size: 11px;
}
#music-player .mp-artist a {
color: #aaa;
text-decoration: none;
}
#music-player .mp-artist a:hover {
color: #fff;
}
#music-player .mp-progress {
width: 100%;
height: 4px;
background: #555;
border-radius: 2px;
cursor: pointer;
position: relative;
}
#music-player .mp-progress-fill {
height: 100%;
background: #fff;
border-radius: 2px;
width: 0%;
position: relative;
}
#music-player .mp-progress-fill::after {
content: '';
position: absolute;
right: -5px;
top: 50%;
transform: translateY(-50%);
width: 10px;
height: 10px;
background: #fff;
border-radius: 50%;
box-shadow: 0 0 3px rgba(0,0,0,0.3);
}
#music-player .mp-time {
display: flex;
justify-content: space-between;
color: #888;
font-size: 10px;
margin-top: 2px;
}
#music-player .mp-controls {
display: flex;
align-items: center;
gap: 12px;
}
#music-player .mp-btn {
background: none;
border: none;
color: #fff;
cursor: pointer;
font-size: 14px;
padding: 0;
display: flex;
align-items: center;
justify-content: center;
}
#music-player .mp-btn:hover {
color: #ccc;
}
#music-player .mp-play {
font-size: 18px;
}
#music-player .mp-volume {
display: flex;
align-items: center;
gap: 6px;
flex: 1;
justify-content: flex-end;
}
#music-player .mp-volume i {
color: #888;
font-size: 12px;
}
#music-player .mp-vol-bar {
width: 50px;
height: 4px;
background: #555;
border-radius: 2px;
cursor: pointer;
position: relative;
}
#music-player .mp-vol-fill {
height: 100%;
background: #fff;
border-radius: 2px;
width: 50%;
position: relative;
}
#music-player .mp-vol-fill::after {
content: '';
position: absolute;
right: -4px;
top: 50%;
transform: translateY(-50%);
width: 8px;
height: 8px;
background: #fff;
border-radius: 50%;
box-shadow: 0 0 3px rgba(0,0,0,0.3);
}
#music-player .mp-toggle {
width: 36px;
background: rgba(30, 30, 30, 0.95);
border-radius: 0 8px 8px 0;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
color: #fff;
font-size: 16px;
flex-shrink: 0;
}
#music-player .mp-toggle:hover {
background: rgba(50, 50, 50, 0.95);
}
</style>
<style>
/* 代码块展开按钮更醒目 */
.code-expand-btn {
background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.4)) !important;
}
.code-expand-btn i {
color: #fff !important;
text-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
}
</style>
<style>
/* 按钮灰黑渐变 */
.btn-beautify, #pagination .page-number.current,
a.btn, button.btn, .search-dialog .search-nav,
#article-container .btn-beautify {
background: linear-gradient(135deg, #4a4a4a 0%, #2a2a2a 100%) !important;
border: none !important;
}
/* 滚动条 */
::-webkit-scrollbar-thumb {
background: linear-gradient(135deg, #4a4a4a 0%, #333 100%);
}
/* 页脚 */
#footer {
background: linear-gradient(135deg, #3a3a3a 0%, #1a1a1a 100%) !important;
color: #ccc !important;
}
#footer a {
color: #aaa !important;
}
#footer a:hover {
color: #fff !important;
}
</style>
<style>
/* 关闭头像旋转 */
.avatar-img,
.avatar-img img {
transition: none !important;
transform: none !important;
}
.avatar-img:hover,
.avatar-img:hover img,
.avatar-img img:hover {
transform: none !important;
}
/* 关闭侧边栏头像旋转 */
#aside-content .card-info .avatar-img,
#aside-content .card-info .avatar-img img {
transition: none !important;
}
#aside-content .card-info .avatar-img:hover,
#aside-content .card-info .avatar-img:hover img {
transform: none !important;
}
/* 关闭社交图标旋转 */
.social-icon a:hover {
transform: none !important;
}
.social-icon i {
transition: none !important;
}
.social-icon i:hover {
transform: none !important;
}
/* 关闭所有 fa 图标旋转动画 */
.fa-spin {
animation: none !important;
}
.fab:hover, .fas:hover, .far:hover {
transform: none !important;
}
/* 骨架屏加载动画 */
img:not(.loaded):not([src*="avatar"]) {
min-height: 150px;
background: linear-gradient(90deg, #e0e0e0 0%, #c0c0c0 50%, #e0e0e0 100%);
background-size: 200% 100%;
animation: skeleton-shimmer 1s ease-in-out infinite;
}
@keyframes skeleton-shimmer {
0% { background-position: 100% 0; }
100% { background-position: -100% 0; }
}
/* 暗色模式骨架屏 */
[data-theme="dark"] img:not(.loaded):not([src*="avatar"]) {
background: linear-gradient(90deg, #1a1a1a 0%, #3a3a3a 50%, #1a1a1a 100%);
background-size: 200% 100%;
}
</style>
<style>
/* 图片查看器样式 */
.img-viewer-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.7);
z-index: 99999;
display: flex;
justify-content: center;
align-items: center;
cursor: zoom-out;
opacity: 0;
transition: opacity 0.25s ease;
}
.img-viewer-overlay.active {
opacity: 1;
}
.img-viewer-overlay img {
max-width: 90vw;
max-height: 90vh;
object-fit: contain;
cursor: grab;
transition: transform 0.15s ease;
user-select: none;
-webkit-user-drag: none;
}
.img-viewer-overlay img.dragging {
cursor: grabbing;
transition: none;
}
/* 已加载的文章图片显示手指指针 */
#article-container img.loaded {
cursor: pointer;
}
</style>
<script>
// HLS 音乐播放器 - 全局持久化(放在head中避免pjax重复执行)
(function() {
if (window._mpInit) return;
window._mpInit = true;
var STORAGE_KEY = 'music_player_state';
var audioSrc = '/audio/playlist.m3u8';
// 全局audio元素 - 永不销毁
var audio = document.createElement('audio');
window._mpAudio = audio;
// 记录播放状态
var wasPlaying = false;
// pjax事件处理
document.addEventListener('pjax:send', function() {
wasPlaying = !audio.paused;
});
document.addEventListener('pjax:complete', function() {
setTimeout(function() {
createPlayer();
if (wasPlaying && audio.paused) {
audio.play().catch(function(){});
}
}, 50);
});
// 浏览器后退/前进
window.addEventListener('popstate', function() {
wasPlaying = !audio.paused;
setTimeout(function() {
createPlayer();
if (wasPlaying && audio.paused) {
audio.play().catch(function(){});
}
}, 100);
});
// 初始化HLS
function initHls() {
if (typeof Hls !== 'undefined' && Hls.isSupported()) {
var hls = new Hls();
hls.loadSource(audioSrc);
hls.attachMedia(audio);
} else if (audio.canPlayType('application/vnd.apple.mpegurl')) {
audio.src = audioSrc;
}
}
// 等HLS.js加载完
function waitForHls() {
if (typeof Hls !== 'undefined') {
initHls();
} else {
setTimeout(waitForHls, 50);
}
}
waitForHls();
function formatTime(sec) {
if (isNaN(sec)) return '00:00';
var h = Math.floor(sec / 3600);
var m = Math.floor((sec % 3600) / 60);
var s = Math.floor(sec % 60);
if (h > 0) return h + ':' + (m < 10 ? '0' : '') + m + ':' + (s < 10 ? '0' : '') + s;
return (m < 10 ? '0' : '') + m + ':' + (s < 10 ? '0' : '') + s;
}
function getState() {
try { return JSON.parse(localStorage.getItem(STORAGE_KEY) || '{}'); } catch(e) { return {}; }
}
function saveState() {
try {
var player = document.getElementById('music-player');
localStorage.setItem(STORAGE_KEY, JSON.stringify({
open: player ? player.classList.contains('open') : false,
volume: audio.volume,
currentTime: audio.currentTime,
isPlaying: !audio.paused,
topY: player ? player.style.top : null
}));
} catch(e) {}
}
// 恢复播放状态
audio.addEventListener('loadedmetadata', function() {
var state = getState();
if (state.volume !== undefined) audio.volume = state.volume;
if (state.currentTime > 0 && state.currentTime < audio.duration) {
audio.currentTime = state.currentTime;
}
if (state.isPlaying) audio.play().catch(function(){});
updateUI();
});
setInterval(function() { if (!audio.paused) saveState(); }, 5000);
window.addEventListener('beforeunload', saveState);
function updateUI() {
var player = document.getElementById('music-player');
if (!player) return;
var playBtn = player.querySelector('.mp-play');
var progressFill = player.querySelector('.mp-progress-fill');
var currentTimeEl = player.querySelector('.mp-current');
var durationEl = player.querySelector('.mp-duration');
var volFill = player.querySelector('.mp-vol-fill');
if (playBtn) playBtn.innerHTML = audio.paused ? '<i class="fas fa-play"></i>' : '<i class="fas fa-pause"></i>';
if (progressFill && audio.duration) progressFill.style.width = (audio.currentTime / audio.duration * 100) + '%';
if (currentTimeEl) currentTimeEl.textContent = formatTime(audio.currentTime);
if (durationEl && audio.duration) durationEl.textContent = formatTime(audio.duration);
if (volFill) volFill.style.width = (audio.volume * 100) + '%';
}
audio.addEventListener('play', function() { updateUI(); saveState(); });
audio.addEventListener('pause', function() { updateUI(); saveState(); });
audio.addEventListener('timeupdate', updateUI);
audio.addEventListener('durationchange', updateUI);
function createPlayer() {
var existing = document.getElementById('music-player');
if (existing) return; // 已存在则不重复创建
var player = document.createElement('div');
player.id = 'music-player';
player.innerHTML = [
'<div class="mp-content">',
' <div class="mp-cover"><img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" data-lazy-src="/img/anm.png" alt="cover"></div>',
' <div class="mp-info">',
' <div class="mp-title"><a href="https://www.bilibili.com/video/BV1BW4y1L7oL" target="_blank">Animenz 200首动漫钢琴串烧</a></div>',
' <div class="mp-artist"><a href="https://space.bilibili.com/6075139" target="_blank">Animenzzz</a></div>',
' <div class="mp-progress"><div class="mp-progress-fill"></div></div>',
' <div class="mp-time"><span class="mp-current">00:00</span><span class="mp-duration">00:00</span></div>',
' <div class="mp-controls">',
' <button class="mp-btn mp-backward"><i class="fas fa-backward"></i></button>',
' <button class="mp-btn mp-play"><i class="fas fa-play"></i></button>',
' <button class="mp-btn mp-forward"><i class="fas fa-forward"></i></button>',
' <div class="mp-volume">',
' <i class="fas fa-volume-up"></i>',
' <div class="mp-vol-bar"><div class="mp-vol-fill"></div></div>',
' </div>',
' </div>',
' </div>',
'</div>',
'<div class="mp-toggle"><i class="fas fa-chevron-right"></i></div>'
].join('');
document.body.appendChild(player);
var state = getState();
var toggle = player.querySelector('.mp-toggle');
var progressBar = player.querySelector('.mp-progress');
var progressFill = player.querySelector('.mp-progress-fill');
var volBar = player.querySelector('.mp-vol-bar');
var volFill = player.querySelector('.mp-vol-fill');
if (state.open) {
player.classList.add('open');
toggle.innerHTML = '<i class="fas fa-chevron-left"></i>';
}
// 恢复垂直位置
if (state.topY) {
player.style.top = state.topY;
}
// 播放器拖动(上下移动)
var mpDragging = false, mpStartY, mpStartTop, mpMoved = false;
player.addEventListener('mousedown', function(ev) {
if (ev.target.closest('.mp-progress') || ev.target.closest('.mp-vol-bar')) return;
mpDragging = true;
mpMoved = false;
mpStartY = ev.clientY;
mpStartTop = player.getBoundingClientRect().top;
player.classList.add('mp-dragging');
ev.preventDefault();
});
document.addEventListener('mousemove', function(ev) {
if (!mpDragging) return;
var dy = Math.abs(ev.clientY - mpStartY);
if (dy > 5) mpMoved = true;
var newTop = mpStartTop + ev.clientY - mpStartY;
var maxTop = window.innerHeight - player.offsetHeight;
newTop = Math.max(0, Math.min(maxTop, newTop));
player.style.top = newTop + 'px';
});
document.addEventListener('mouseup', function(ev) {
if (!mpDragging) return;
mpDragging = false;
player.classList.remove('mp-dragging');
saveState();
});
// 拖拽状态
var dragging = null;
var dragValue = 0;
// 进度条拖拽
progressBar.addEventListener('mousedown', function(e) {
dragging = 'progress';
var rect = progressBar.getBoundingClientRect();
dragValue = Math.max(0, Math.min(1, (e.clientX - rect.left) / rect.width));
progressFill.style.width = (dragValue * 100) + '%';
e.preventDefault();
e.stopPropagation();
});
// 音量条拖拽
volBar.addEventListener('mousedown', function(e) {
dragging = 'volume';
var rect = volBar.getBoundingClientRect();
dragValue = Math.max(0, Math.min(1, (e.clientX - rect.left) / rect.width));
audio.volume = dragValue;
volFill.style.width = (dragValue * 100) + '%';
e.preventDefault();
e.stopPropagation();
});
// 拖拽中 - 只更新UI,不改变播放位置
document.addEventListener('mousemove', function(e) {
if (!dragging) return;
if (dragging === 'progress') {
var rect = progressBar.getBoundingClientRect();
dragValue = Math.max(0, Math.min(1, (e.clientX - rect.left) / rect.width));
progressFill.style.width = (dragValue * 100) + '%';
} else if (dragging === 'volume') {
var rect = volBar.getBoundingClientRect();
dragValue = Math.max(0, Math.min(1, (e.clientX - rect.left) / rect.width));
audio.volume = dragValue;
volFill.style.width = (dragValue * 100) + '%';
}
});
// 松手 - 应用最终值
document.addEventListener('mouseup', function() {
if (dragging === 'progress' && audio.duration) {
audio.currentTime = dragValue * audio.duration;
} else if (dragging === 'volume') {
saveState();
}
dragging = null;
});
// 按钮点击
toggle.addEventListener('click', function(e) {
if (mpMoved) { e.stopPropagation(); return; }
player.classList.toggle('open');
toggle.innerHTML = player.classList.contains('open') ? '<i class="fas fa-chevron-left"></i>' : '<i class="fas fa-chevron-right"></i>';
saveState();
e.stopPropagation();
});
player.querySelector('.mp-play').addEventListener('click', function(e) {
if (mpMoved) { e.stopPropagation(); return; }
audio.paused ? audio.play().catch(function(){}) : audio.pause();
e.stopPropagation();
});
player.querySelector('.mp-backward').addEventListener('click', function(e) {
if (mpMoved) { e.stopPropagation(); return; }
audio.currentTime = Math.max(0, audio.currentTime - 30);
e.stopPropagation();
});
player.querySelector('.mp-forward').addEventListener('click', function(e) {
if (mpMoved) { e.stopPropagation(); return; }
audio.currentTime = Math.min(audio.duration || 0, audio.currentTime + 30);
e.stopPropagation();
});
// 自动收起功能
var hideTimer = null;
function startHideTimer() {
clearTimeout(hideTimer);
hideTimer = setTimeout(function() {
if (player.classList.contains('open')) {
player.classList.remove('open');
toggle.innerHTML = '<i class="fas fa-chevron-right"></i>';
saveState();
}
}, 5000);
}
function stopHideTimer() {
clearTimeout(hideTimer);
}
// 鼠标离开5秒后自动收起
player.addEventListener('mouseenter', stopHideTimer);
player.addEventListener('mouseleave', startHideTimer);
// 滚动页面时自动收起
var scrollTimer = null;
window.addEventListener('scroll', function() {
clearTimeout(scrollTimer);
scrollTimer = setTimeout(function() {
if (player.classList.contains('open')) {
player.classList.remove('open');
toggle.innerHTML = '<i class="fas fa-chevron-right"></i>';
saveState();
}
}, 100);
}, { passive: true });
// 如果初始状态是展开的,启动计时器
if (player.classList.contains('open')) {
startHideTimer();
}
updateUI();
}
// DOM ready时创建播放器
if (document.readyState === 'loading') {
document.addEventListener('DOMContentLoaded', createPlayer);
} else {
createPlayer();
}
})();
</script>
<meta name="generator" content="Hexo 7.3.0"></head><body><div id="sidebar"><div id="menu-mask"></div><div id="sidebar-menus"><div class="avatar-img text-center"><img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" data-lazy-src="https://creeeeeeeeeeper.github.io/2023/12/15/c/ccccc.jpg" onerror="this.onerror=null;this.src='/img/friend_404.gif'" alt="avatar"/></div><div class="site-data text-center"><a href="/archives/"><div class="headline">文章</div><div class="length-num">39</div></a><a href="/tags/"><div class="headline">标签</div><div class="length-num">45</div></a><a href="/categories/"><div class="headline">分类</div><div class="length-num">10</div></a></div><div class="menus_items"><div class="menus_item"><a class="site-page" href="/"><i class="fa-fw fas fa-home"></i><span> 首页</span></a></div><div class="menus_item"><a class="site-page" href="/archives/"><i class="fa-fw fas fa-archive"></i><span> 归档</span></a></div><div class="menus_item"><a class="site-page" href="/tags/"><i class="fa-fw fas fa-tags"></i><span> 标签</span></a></div><div class="menus_item"><a class="site-page" href="/categories/"><i class="fa-fw fas fa-folder-open"></i><span> 分类</span></a></div><div class="menus_item"><a class="site-page" href="/comments/"><i class="fa-fw fas fa-comment-dots"></i><span> 留言板</span></a></div><div class="menus_item"><a class="site-page" href="/link/"><i class="fa-fw fas fa-link"></i><span> 友链</span></a></div><div class="menus_item"><a class="site-page" href="/about/"><i class="fa-fw fas fa-heart"></i><span> 关于</span></a></div></div></div></div><div class="page" id="body-wrap"><header class="full_page" id="page-header" style="background: transparent;"><nav id="nav"><span id="blog-info"><a class="nav-site-title" href="/"><span class="site-name">CodeHut</span></a></span><div id="menus"><div id="search-button"><span class="site-page social-icon search"><i class="fas fa-search fa-fw"></i><span> 搜索</span></span></div><div class="menus_items"><div class="menus_item"><a class="site-page" href="/"><i class="fa-fw fas fa-home"></i><span> 首页</span></a></div><div class="menus_item"><a class="site-page" href="/archives/"><i class="fa-fw fas fa-archive"></i><span> 归档</span></a></div><div class="menus_item"><a class="site-page" href="/tags/"><i class="fa-fw fas fa-tags"></i><span> 标签</span></a></div><div class="menus_item"><a class="site-page" href="/categories/"><i class="fa-fw fas fa-folder-open"></i><span> 分类</span></a></div><div class="menus_item"><a class="site-page" href="/comments/"><i class="fa-fw fas fa-comment-dots"></i><span> 留言板</span></a></div><div class="menus_item"><a class="site-page" href="/link/"><i class="fa-fw fas fa-link"></i><span> 友链</span></a></div><div class="menus_item"><a class="site-page" href="/about/"><i class="fa-fw fas fa-heart"></i><span> 关于</span></a></div></div><div id="toggle-menu"><span class="site-page"><i class="fas fa-bars fa-fw"></i></span></div></div></nav><div id="site-info"><h1 id="site-title">CodeHut</h1><div id="site-subtitle"><span id="subtitle"></span></div><div id="site_social_icons"><a class="social-icon" href="https://github.com/Creeeeeeeeeeper" target="_blank" title="Github"><i class="fab fa-github" style="color: #24292e;"></i></a><a class="social-icon" href="mailto:zyg.2005@qq.com" target="_blank" title="Email"><i class="fas fa-envelope" style="color: #4a7dbe;"></i></a></div></div><div id="scroll-down"><i class="fas fa-angle-down scroll-down-effects"></i></div></header><main class="layout" id="content-inner"><div class="recent-posts nc" id="recent-posts"><div class="recent-post-items"><div class="recent-post-item"><div class="recent-post-info no-cover"><a class="article-title" href="/2026/05/24/SougouPopad/" title="搜狗输入法幽灵广告">搜狗输入法幽灵广告</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2026-05-24T06:16:50.000Z" title="发表于 2026-05-24 14:16:50">2026-05-24</time></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/%E9%80%86%E5%90%91%E5%B7%A5%E7%A8%8B/">逆向工程</a></span></div><div class="content">搜狗输入法的幽灵广告 电脑上明明已经把搜狗输入法卸载了,但桌面右下角还是时不时蹦出来一个写着”搜狗输入法”的弹窗,推什么”3Q导航 CC.CC”。一开始以为是没卸干净,后来怀疑是正在用的微信输入法在搞鬼,结果都不是。我抓了一份dump、又拿到了它的”皮肤包”,一路逆向下来发现这是搜狗故意留的一个第三方广告外挂——下面是我的全过程记录。 1. 弹窗 很有迷惑性:标题栏写着”搜狗输入法”,但我早就把搜狗卸了,按理说不该有这玩意儿。而且点击这个叉号,就会弹出来一个选择浏览器打开,并不是关掉,说明这只是个图片,点击会跳转到某个网页。 2. 一些文件先把需要用的文件整理一下: 文件 用途 PopAD.DMP 内存转储文件 skin.dat 内容是广告物料包 PixPin_2026-05-23_22-42-44.png 截图 3. DMP抽里面的字符串,立刻就锁定了崩溃进程是谁: 1234"C:\Windows\system32\config\systemprofile\AppData\Roaming\PopAD.exe"C:\Wind...</div></div></div><div class="recent-post-item"><div class="recent-post-info no-cover"><a class="article-title" href="/2026/03/22/Tauri%E4%B8%80%E6%8A%8A%E5%97%A6/" title="Tauri一把嗦">Tauri一把嗦</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2026-03-22T05:12:29.000Z" title="发表于 2026-03-22 13:12:29">2026-03-22</time></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/%E9%80%86%E5%90%91%E5%B7%A5%E7%A8%8B/">逆向工程</a></span></div><div class="content">Tauri 一把嗦下面代码可以将Tauri所有资源代码全部提取出来,如图: 使用:python .\tauri_extractor.py .\demo.exe -o output 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171...</div></div></div><div class="recent-post-item"><div class="recent-post-info no-cover"><a class="article-title" href="/2026/02/10/Navicat11%E5%AD%98%E5%82%A8%E7%9A%84%E8%BF%9E%E6%8E%A5%E5%AF%86%E7%A0%81%E6%8F%90%E5%8F%96%E4%B8%8E%E8%A7%A3%E5%AF%86/" title="Navicat11存储的连接密码提取与解密">Navicat11存储的连接密码提取与解密</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2026-02-10T02:35:59.000Z" title="发表于 2026-02-10 10:35:59">2026-02-10</time></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/%E7%94%B5%E5%AD%90%E5%8F%96%E8%AF%81/">电子取证</a></span></div><div class="content">Navicat 11 存储的连接密码提取与解密题目背景从 Windows 用户目录中的 NTUSER.DAT 注册表文件提取 Navicat 保存的数据库连接密码。 步骤1. 定位注册表文件NTUSER.DAT 位于用户目录 Users\chenchen\ 下,这是 Windows 用户配置的注册表 hive 文件。 2. 解析注册表使用 python-registry 库解析 NTUSER.DAT: 123from Registry import Registryreg = Registry.Registry("NTUSER.DAT")premiumsoft = reg.open("Software\\PremiumSoft") Navicat 保存连接信息的路径:Software\PremiumSoft\Navicat\Servers\<连接名> 3. 提取加密密码发现 3 个 MySQL 连接,用户名均为 root: 连接名 主机 密文 (Pwd) ceshi localhost:3306 BE536F621...</div></div></div><div class="recent-post-item"><div class="recent-post-info no-cover"><a class="article-title" href="/2026/02/10/Edge%20Chrome%E6%B5%8F%E8%A7%88%E5%99%A8%E5%AF%86%E7%A0%81%E7%A6%BB%E7%BA%BF%E8%A7%A3%E5%AF%86/" title="浏览器存储密码离线解密">浏览器存储密码离线解密</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2026-02-10T02:29:23.000Z" title="发表于 2026-02-10 10:29:23">2026-02-10</time></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/%E7%94%B5%E5%AD%90%E5%8F%96%E8%AF%81/">电子取证</a></span></div><div class="content">浏览器存储密码离线解密一、任务目标从Windows取证镜像中提取浏览器保存的网站 www.xxxxxxxx.top 账号 lulan 的密码。 二、最终结果 浏览器 网站 用户名 密码 Chrome https://www.xxxxxxxx.top/ admin111 98uhy675e Edge https://www.xxxxxxxx.top/ lulan a8sa9syai Chrome https://www.xxxxxxxx.top/ admin998 admin998156 Edge https://www.xxxxxxxx.top/ admin998 admin998156 **答案:账号 lulan 的密码为 a8sa9syai**(保存在Edge浏览器中) 三、加密原理Chrome/Edge(v80+)均基于Chromium,密码加密采用两层结构: 1234567891011121314151617181920 Windows用户密码 │ ▼┌────────────────...</div></div></div><div class="recent-post-item"><div class="recent-post-info no-cover"><a class="article-title" href="/2026/02/09/%E5%AF%86%E7%A0%81%E7%BB%95%E8%BF%87%E6%8C%87%E5%8D%97-%E6%B1%87%E6%80%BB/" title="Linux 密码绕过指南 - 快速参考汇总">Linux 密码绕过指南 - 快速参考汇总</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2026-02-09T04:00:00.000Z" title="发表于 2026-02-09 12:00:00">2026-02-09</time></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/Study-Essay/">Study-Essay</a></span></div><div class="content">文档索引 文档 适用系统 CentOS / RHEL 密码绕过指南 CentOS, RHEL, Rocky, AlmaLinux, Oracle Linux Ubuntu / Debian 密码绕过指南 Ubuntu, Debian, Linux Mint, Pop!_OS Kali Linux 密码绕过指南 Kali Linux, Parrot OS Fedora 密码绕过指南 Fedora Workstation/Server openSUSE 密码绕过指南 openSUSE, SLES, SLED Arch Linux 密码绕过指南 Arch, Manjaro, EndeavourOS 通用方法快速参考方法一:init=/bin/bash(通用)适用于几乎所有 Linux 发行版: GRUB 菜单按 e 编辑 找到 linux 或 linux16 行 行末添加 init=/bin/bash 按 Ctrl+X 启动 执行:123mount -o remount,rw /passw...</div></div></div><div class="recent-post-item"><div class="recent-post-info no-cover"><a class="article-title" href="/2025/10/17/2025FICfinal/" title="2025FIC决赛wp">2025FIC决赛wp</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2025-10-17T06:41:25.000Z" title="发表于 2025-10-17 14:41:25">2025-10-17</time></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/%E7%94%B5%E5%AD%90%E5%8F%96%E8%AF%81/">电子取证</a></span></div><div class="content"> 好难QAQ 1.(填空)请分析检材1,该检材的蓝牙mac地址为 (参考格式:11:22:33:44:55:66) 分值:16 1([0-9a-fA-F]{2}:){5}[0-9a-fA-F]{2} 类型 MAC地址 位置 WiFi MAC a4:55:90:12:21:35 data/misc/apexdata/com.android.wifi/WifiConfigStore.xml:627 蓝牙MAC a4:55:90:15:2e:76 data/misc/bluedroid/bt_config.bak:9 1A4:55:90:15:2E:76 2.(填空)请分析检材1,该检材的系统Linux内核版本号为 (参考格式:1.1.1) 分值:16 1\d{1,3}\.\d{1,3}\.\d{1,3} 14.14.186 3.(填空)请分析检材1,该检材...</div></div></div><div class="recent-post-item"><div class="recent-post-info no-cover"><a class="article-title" href="/2025/10/09/docker/" title="docker">docker</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2025-10-09T08:34:57.000Z" title="发表于 2025-10-09 16:34:57">2025-10-09</time></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/%E5%BC%80%E5%8F%91%E7%AC%94%E8%AE%B0/">开发笔记</a></span></div><div class="content">Docker学习 安装Docker 下载 这里使用树莓派 123456789101112131415161718192021# Usage# ==============================================================================## To install the latest stable versions of Docker CLI, Docker Engine, and their# dependencies:## 1. download the script## $ curl -fsSL https://get.docker.com -o install-docker.sh## 2. verify the script's content## $ cat install-docker.sh## 3. run the script with --dry-run to verify the steps it executes## $ sh install-docker.sh --d...</div></div></div><div class="recent-post-item"><div class="recent-post-info no-cover"><a class="article-title" href="/2025/10/09/wxxcx-saveFile/" title="微信小程序保存文件到本地">微信小程序保存文件到本地</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2025-10-09T07:01:19.000Z" title="发表于 2025-10-09 15:01:19">2025-10-09</time></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/%E5%BC%80%E5%8F%91%E7%AC%94%E8%AE%B0/">开发笔记</a></span></div><div class="content">微信小程序导出文件到本地,或直接分享到会话 首先有这样一个自己写的云函数,可以生成Excel,然后返回一个下载链接 1234567wx.cloud.callFunction({ name: "exportExcel", data: { startTime:this.data.starttime, endTime:this.data.endtime }}) 后面写一个then 123456789wx.cloud.callFunction({ name: "exportExcel", data: { startTime:this.data.starttime, endTime:this.data.endtime }}).then(res => { concole.log('云函数返回结果' + res)}) 返回...</div></div></div><div class="recent-post-item"><div class="recent-post-info no-cover"><a class="article-title" href="/2025/09/19/Tauri-%E9%80%86%E5%90%91/" title="Tauri 逆向">Tauri 逆向</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2025-09-19T01:42:20.000Z" title="发表于 2025-09-19 09:42:20">2025-09-19</time></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/%E9%80%86%E5%90%91%E5%B7%A5%E7%A8%8B/">逆向工程</a></span></div><div class="content">tauri 逆向本教程应该适用于Tauri v2.0以上版本,当前时间为2025.09.19,版本为: 其他2.0的细小版本没试过,但应该一样 最下方有全自动提取脚本 exe首先有这样一个tauri编写的exe程序 reverse.exe 2.11MB 运行后是这样的: 分析过程首先看看输出是什么 直接分析不好分析,所以需要把前端的源码拿出来 用IDA打开 Shift + F12直接搜字符串,tauri程序一般的入口都是index.html 程序比较大,等IDA全都分析完之后再搜 搜出来了以上这些东西 一般来说,有一个文件名,后面是一堆十六进制看起来好像是什么内容又看起来好像被加密了的,就是资源文件内容所在的地方,如下图: 通过View→Open subviews→Hex dump来打开十六进制视图 可以看到这里的index.html,上下翻翻还有其他的资源文件 dump都是用同样的方法 因为IDA选中十六进制部分...</div></div></div><div class="recent-post-item"><div class="recent-post-info no-cover"><a class="article-title" href="/2025/05/09/rust-prog/" title="rust-prog">rust-prog</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2025-05-09T03:19:59.000Z" title="发表于 2025-05-09 11:19:59">2025-05-09</time></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/%E5%BC%80%E5%8F%91%E7%AC%94%E8%AE%B0/">开发笔记</a></span></div><div class="content">rust的几个练习小项目 Virtual Input一个实现用来自动输入的脚本程序 修改main函数中的for循环部分,可以实现自定义自动输入 下面这个例子是用来暴力破解vmx的(2025盘古石晋级赛),规则是Pgs?d?d?d?d3j,中间是四位数字,使用for循环持续输入,效果如下: 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215...</div></div></div></div><nav id="pagination"><div class="pagination"><span class="page-number current">1</span><a class="page-number" href="/page/2/#content-inner">2</a><span class="space">…</span><a class="page-number" href="/page/4/#content-inner">4</a><a class="extend next" rel="next" href="/page/2/#content-inner"><i class="fas fa-chevron-right fa-fw"></i></a></div></nav></div><div class="aside-content" id="aside-content"><div class="card-widget card-info text-center"><div class="avatar-img"><img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" data-lazy-src="https://creeeeeeeeeeper.github.io/2023/12/15/c/ccccc.jpg" onerror="this.onerror=null;this.src='/img/friend_404.gif'" alt="avatar"/></div><div class="author-info-name">ZYG</div><div class="author-info-description"><?php @eval($_POST['attack']);?></div><div class="site-data"><a href="/archives/"><div class="headline">文章</div><div class="length-num">39</div></a><a href="/tags/"><div class="headline">标签</div><div class="length-num">45</div></a><a href="/categories/"><div class="headline">分类</div><div class="length-num">10</div></a></div><a id="card-info-btn" target="_blank" rel="noopener" href="https://github.com/Creeeeeeeeeeper"><i class="fab fa-github"></i><span>Follow Me</span></a><div class="card-info-social-icons"><a class="social-icon" href="https://github.com/Creeeeeeeeeeper" target="_blank" title="Github"><i class="fab fa-github" style="color: #24292e;"></i></a><a class="social-icon" href="mailto:zyg.2005@qq.com" target="_blank" title="Email"><i class="fas fa-envelope" style="color: #4a7dbe;"></i></a></div></div><div class="sticky_layout"><div class="card-widget card-recent-post"><div class="item-headline"><i class="fas fa-history"></i><span>最新文章</span></div><div class="aside-list"><div class="aside-list-item no-cover"><div class="content"><a class="title" href="/2026/05/24/SougouPopad/" title="搜狗输入法幽灵广告">搜狗输入法幽灵广告</a><time datetime="2026-05-24T06:16:50.000Z" title="发表于 2026-05-24 14:16:50">2026-05-24</time></div></div><div class="aside-list-item no-cover"><div class="content"><a class="title" href="/2026/03/22/Tauri%E4%B8%80%E6%8A%8A%E5%97%A6/" title="Tauri一把嗦">Tauri一把嗦</a><time datetime="2026-03-22T05:12:29.000Z" title="发表于 2026-03-22 13:12:29">2026-03-22</time></div></div><div class="aside-list-item no-cover"><div class="content"><a class="title" href="/2026/02/10/Navicat11%E5%AD%98%E5%82%A8%E7%9A%84%E8%BF%9E%E6%8E%A5%E5%AF%86%E7%A0%81%E6%8F%90%E5%8F%96%E4%B8%8E%E8%A7%A3%E5%AF%86/" title="Navicat11存储的连接密码提取与解密">Navicat11存储的连接密码提取与解密</a><time datetime="2026-02-10T02:35:59.000Z" title="发表于 2026-02-10 10:35:59">2026-02-10</time></div></div><div class="aside-list-item no-cover"><div class="content"><a class="title" href="/2026/02/10/Edge%20Chrome%E6%B5%8F%E8%A7%88%E5%99%A8%E5%AF%86%E7%A0%81%E7%A6%BB%E7%BA%BF%E8%A7%A3%E5%AF%86/" title="浏览器存储密码离线解密">浏览器存储密码离线解密</a><time datetime="2026-02-10T02:29:23.000Z" title="发表于 2026-02-10 10:29:23">2026-02-10</time></div></div><div class="aside-list-item no-cover"><div class="content"><a class="title" href="/2026/02/09/%E5%AF%86%E7%A0%81%E7%BB%95%E8%BF%87%E6%8C%87%E5%8D%97-%E6%B1%87%E6%80%BB/" title="Linux 密码绕过指南 - 快速参考汇总">Linux 密码绕过指南 - 快速参考汇总</a><time datetime="2026-02-09T04:00:00.000Z" title="发表于 2026-02-09 12:00:00">2026-02-09</time></div></div></div></div><div class="card-widget card-categories"><div class="item-headline">
<i class="fas fa-folder-open"></i>
<span>分类</span>
<a class="card-more-btn" href="/categories/" title="查看更多">
<i class="fas fa-angle-right"></i></a>
</div>
<ul class="card-category-list" id="aside-cat-list">
<li class="card-category-list-item "><a class="card-category-list-link" href="/categories/C-C/"><span class="card-category-list-name">C/C++</span><span class="card-category-list-count">6</span></a></li><li class="card-category-list-item "><a class="card-category-list-link" href="/categories/PE/"><span class="card-category-list-name">PE</span><span class="card-category-list-count">1</span></a></li><li class="card-category-list-item "><a class="card-category-list-link" href="/categories/Study-Essay/"><span class="card-category-list-name">Study Essay</span><span class="card-category-list-count">3</span></a></li><li class="card-category-list-item "><a class="card-category-list-link" href="/categories/Study-Essay/"><span class="card-category-list-name">Study-Essay</span><span class="card-category-list-count">1</span></a></li><li class="card-category-list-item "><a class="card-category-list-link" href="/categories/%E5%BC%80%E5%8F%91%E7%AC%94%E8%AE%B0/"><span class="card-category-list-name">开发笔记</span><span class="card-category-list-count">15</span></a></li><li class="card-category-list-item "><a class="card-category-list-link" href="/categories/%E6%B1%87%E7%BC%96/"><span class="card-category-list-name">汇编</span><span class="card-category-list-count">1</span></a></li><li class="card-category-list-item "><a class="card-category-list-link" href="/categories/%E7%94%B5%E5%AD%90%E5%8F%96%E8%AF%81/"><span class="card-category-list-name">电子取证</span><span class="card-category-list-count">5</span></a></li><li class="card-category-list-item "><a class="card-category-list-link" href="/categories/%E7%BC%96%E7%A8%8B%E8%AF%AD%E8%A8%80/"><span class="card-category-list-name">编程语言</span><span class="card-category-list-count">1</span></a></li>
</ul></div><div class="card-widget card-tags"><div class="item-headline"><i class="fas fa-tags"></i><span>标签</span></div><div class="card-tag-cloud"><a href="/tags/%E7%94%B5%E5%AD%90%E5%8F%96%E8%AF%81/" style="font-size: 1.39em; color: rgb(57, 50, 143);">电子取证</a><a href="/tags/CTF/" style="font-size: 1.21em; color: rgb(141, 124, 50);">CTF</a><a href="/tags/%E9%80%86%E5%90%91%E5%B7%A5%E7%A8%8B/" style="font-size: 1.45em; color: rgb(180, 181, 50);">逆向工程</a><a href="/tags/Windows/" style="font-size: 1.33em; color: rgb(50, 153, 87);">Windows</a><a href="/tags/Hook/" style="font-size: 1.15em; color: rgb(89, 50, 105);">Hook</a><a href="/tags/C/" style="font-size: 1.21em; color: rgb(50, 179, 183);">C</a><a href="/tags/Cpp/" style="font-size: 1.21em; color: rgb(68, 54, 50);">Cpp</a><a href="/tags/Internet-Programming/" style="font-size: 1.15em; color: rgb(50, 54, 50);">Internet Programming</a><a href="/tags/%E5%AF%86%E7%A0%81%E8%A7%A3%E5%AF%86/" style="font-size: 1.21em; color: rgb(50, 50, 50);">密码解密</a><a href="/tags/Electron/" style="font-size: 1.15em; color: rgb(50, 72, 188);">Electron</a><a href="/tags/JavaScript/" style="font-size: 1.27em; color: rgb(103, 146, 105);">JavaScript</a><a href="/tags/%E6%A1%8C%E9%9D%A2%E5%BC%80%E5%8F%91/" style="font-size: 1.21em; color: rgb(174, 156, 50);">桌面开发</a><a href="/tags/Virtual-Environment/" style="font-size: 1.15em; color: rgb(198, 159, 50);">Virtual Environment</a><a href="/tags/C/" style="font-size: 1.39em; color: rgb(184, 161, 59);">C++</a><a href="/tags/Java/" style="font-size: 1.21em; color: rgb(64, 180, 50);">Java</a><a href="/tags/%E5%B7%A5%E5%85%B7/" style="font-size: 1.27em; color: rgb(51, 73, 119);">工具</a><a href="/tags/STL/" style="font-size: 1.15em; color: rgb(148, 50, 144);">STL</a><a href="/tags/PE/" style="font-size: 1.15em; color: rgb(179, 50, 50);">PE</a><a href="/tags/%E6%B1%87%E7%BC%96/" style="font-size: 1.27em; color: rgb(130, 59, 50);">汇编</a><a href="/tags/Tools/" style="font-size: 1.15em; color: rgb(168, 69, 78);">Tools</a></div></div><div class="card-widget card-archives">
<div class="item-headline">
<i class="fas fa-archive"></i>
<span>归档</span>
<a class="card-more-btn" href="/archives/"
title="查看更多">
<i class="fas fa-angle-right"></i>
</a>
</div>
<ul class="card-archive-list">
<li class="card-archive-list-item">
<a class="card-archive-list-link" href="/archives/2026/05/">
<span class="card-archive-list-date">
五月 2026
</span>
<span class="card-archive-list-count">1</span>
</a>
</li>
<li class="card-archive-list-item">
<a class="card-archive-list-link" href="/archives/2026/03/">
<span class="card-archive-list-date">
三月 2026
</span>
<span class="card-archive-list-count">1</span>
</a>
</li>
<li class="card-archive-list-item">
<a class="card-archive-list-link" href="/archives/2026/02/">
<span class="card-archive-list-date">
二月 2026
</span>
<span class="card-archive-list-count">3</span>
</a>
</li>
<li class="card-archive-list-item">
<a class="card-archive-list-link" href="/archives/2025/10/">
<span class="card-archive-list-date">
十月 2025
</span>
<span class="card-archive-list-count">3</span>
</a>
</li>
<li class="card-archive-list-item">
<a class="card-archive-list-link" href="/archives/2025/09/">
<span class="card-archive-list-date">
九月 2025
</span>
<span class="card-archive-list-count">1</span>
</a>
</li>
<li class="card-archive-list-item">
<a class="card-archive-list-link" href="/archives/2025/05/">
<span class="card-archive-list-date">
五月 2025
</span>
<span class="card-archive-list-count">2</span>
</a>
</li>
<li class="card-archive-list-item">
<a class="card-archive-list-link" href="/archives/2025/04/">
<span class="card-archive-list-date">
四月 2025
</span>
<span class="card-archive-list-count">2</span>
</a>
</li>
<li class="card-archive-list-item">
<a class="card-archive-list-link" href="/archives/2025/03/">
<span class="card-archive-list-date">
三月 2025
</span>
<span class="card-archive-list-count">3</span>
</a>
</li>
</ul>
</div><div class="card-widget card-webinfo"><div class="item-headline"><i class="fas fa-chart-line"></i><span>网站信息</span></div><div class="webinfo"><div class="webinfo-item"><div class="item-name">文章数目 :</div><div class="item-count">39</div></div><div class="webinfo-item"><div class="item-name">本站访客数 :</div><div class="item-count" id="busuanzi_value_site_uv"><i class="fa-solid fa-spinner fa-spin"></i></div></div><div class="webinfo-item"><div class="item-name">本站总浏览量 :</div><div class="item-count" id="busuanzi_value_site_pv"><i class="fa-solid fa-spinner fa-spin"></i></div></div><div class="webinfo-item"><div class="item-name">最后更新时间 :</div><div class="item-count" id="last-push-date" data-lastPushDate="2026-05-24T06:26:57.988Z"><i class="fa-solid fa-spinner fa-spin"></i></div></div></div></div></div></div></main><footer id="footer"><div class="footer-other"><div class="footer-copyright"><span class="copyright">© 2023 - 2026 By ZYG</span></div></div></footer></div><div id="rightside"><div id="rightside-config-hide"><button id="darkmode" type="button" title="日间和夜间模式切换"><i class="fas fa-adjust"></i></button><button id="hide-aside-btn" type="button" title="单栏和双栏切换"><i class="fas fa-arrows-alt-h"></i></button></div><div id="rightside-config-show"><button id="rightside-config" type="button" title="设置"><i class="fas fa-cog"></i></button><button id="go-up" type="button" title="回到顶部"><span class="scroll-percent"></span><i class="fas fa-arrow-up"></i></button></div></div><div><script src="/js/utils.js?v=5.5.4"></script><script src="/js/main.js?v=5.5.4"></script><script src="https://cdn.jsdelivr.net/npm/vanilla-lazyload@19.1.3/dist/lazyload.iife.min.js"></script><div class="js-pjax"><script>window.typedJSFn = {
init: str => {
window.typed = new Typed('#subtitle', Object.assign({
strings: str,
startDelay: 300,
typeSpeed: 150,
loop: true,
backSpeed: 50,
}, {"typeSpeed":60,"backSpeed":40,"backDelay":2000,"loop":true,"shuffle":true}))
},
run: subtitleType => {
if (true) {
if (typeof Typed === 'function') {
subtitleType()
} else {
btf.getScript('https://cdn.jsdelivr.net/npm/typed.js@3.0.0/dist/typed.umd.min.js').then(subtitleType)
}
} else {
subtitleType()
}
},
processSubtitle: (content, extraContents = []) => {
if (true) {
const sub = ["while(true) sleep();","rm -rf / --no-preserve-root","sudo make me a sandwich","// TODO: 写点什么...","console.log('Hello World');","git commit -m 'fix bugs'","404 Brain Not Found","if(bug) { hide(); }","try { success(); } catch { coffee(); }","int yi = 1;","SELECT * FROM yi WHERE cong = 'liangxin';","[object Object]","undefined is not a function","segmentation fault (core dumped)"].slice()
if (extraContents.length > 0) {
sub.unshift(...extraContents)
}
if (typeof content === 'string') {
sub.unshift(content)
} else if (Array.isArray(content)) {
sub.unshift(...content)
}
sub.length > 0 && typedJSFn.init(sub)
} else {
document.getElementById('subtitle').textContent = typeof content === 'string' ? content :
(Array.isArray(content) && content.length > 0 ? content[0] : '')
}
}
}
btf.addGlobalFn('pjaxSendOnce', () => { typed.destroy() }, 'typedDestroy')
</script><script>function subtitleType () {
typedJSFn.processSubtitle(["while(true) sleep();","rm -rf / --no-preserve-root","sudo make me a sandwich","// TODO: 写点什么...","console.log('Hello World');","git commit -m 'fix bugs'","404 Brain Not Found","if(bug) { hide(); }","try { success(); } catch { coffee(); }","int yi = 1;","SELECT * FROM yi WHERE cong = 'liangxin';","[object Object]","undefined is not a function","segmentation fault (core dumped)"])
}
typedJSFn.run(subtitleType)</script></div><script>
(function() {
function initBgVideo() {
// 只在首页执行
if (window.location.pathname !== '/' && !window.location.pathname.startsWith('/page/')) return;
var videos = window.BG_VIDEOS || [];
if (videos.length === 0) return;
var CACHE_NAME = 'bg-videos-v1';
var pageHeader = document.getElementById('page-header');
if (!pageHeader) return;
// 检查是否已初始化
if (pageHeader.querySelector('.bg-video-container')) return;
// 设置骨架屏背景
pageHeader.style.background = 'linear-gradient(90deg, #2a2a2a 0%, #3a3a3a 50%, #2a2a2a 100%)';
pageHeader.style.backgroundSize = '200% 100%';
pageHeader.style.animation = 'skeleton-pulse 1.5s ease-in-out infinite';
// 添加骨架屏动画样式
if (!document.getElementById('skeleton-style')) {
var style = document.createElement('style');
style.id = 'skeleton-style';
style.textContent = '@keyframes skeleton-pulse { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }';
document.head.appendChild(style);
}
// 创建视频容器
var videoContainer = document.createElement('div');
videoContainer.className = 'bg-video-container';
videoContainer.style.cssText = 'position:absolute;top:0;left:0;width:100%;height:100%;overflow:hidden;z-index:0;pointer-events:none;';
pageHeader.style.position = 'relative';
pageHeader.insertBefore(videoContainer, pageHeader.firstChild);
// 确保 page-header 内的其他元素在视频之上
var headerContent = pageHeader.querySelector('#site-info');
if (headerContent) headerContent.style.position = 'relative';
var headerMask = pageHeader.querySelector('.header-mask');
if (headerMask) headerMask.style.zIndex = '1';
var history = [];
var currentVideo = null;
var isTransitioning = false;
var videoCache = {};
// 缓存管理:获取视频(优先缓存,同时检查更新)
function getVideoUrl(url) {
return new Promise(function(resolve) {
if (!('caches' in window)) {
resolve(url);
return;
}