-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
3067 lines (2339 loc) · 110 KB
/
Copy pathindex.html
File metadata and controls
3067 lines (2339 loc) · 110 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" dir="ltr">
<head>
<meta name="generator" content="Hugo 0.152.2"><meta charset='utf-8'>
<meta name='viewport' content='width=device-width, initial-scale=1'><meta name='description' content="靡不有初,鲜克有终">
<title>kakahuote</title>
<link rel='canonical' href='https://blog.928330.xyz/'>
<link rel="stylesheet" href="/scss/style.min.39ecf65bc226010541aa6d3e165db03375656b61e3e66bd0edb6ef189caf76fb.css"><meta property='og:title' content="kakahuote">
<meta property='og:description' content="靡不有初,鲜克有终">
<meta property='og:url' content='https://blog.928330.xyz/'>
<meta property='og:site_name' content='kakahuote'>
<meta property='og:type' content='website'><meta property='og:updated_time' content=' 2025-12-04T21:20:43+08:00 '/>
<meta name="twitter:title" content="kakahuote">
<meta name="twitter:description" content="靡不有初,鲜克有终"><link rel="alternate" type="application/rss+xml" href="https://blog.928330.xyz/index.xml">
<link rel="shortcut icon" href="/favicon.ico" />
<style>
#geek-loader {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background-color: #050505;
z-index: 9999999;
display: flex;
justify-content: center;
align-items: center;
font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
transition: opacity 0.5s ease-out, transform 0.5s cubic-bezier(0.6, -0.28, 0.735, 0.045);
overflow: hidden;
cursor: progress;
touch-action: none;
}
#geek-loader::after {
content: " ";
display: block;
position: absolute;
top: 0; left: 0; bottom: 0; right: 0;
background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%),
linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
z-index: 2;
background-size: 100% 2px, 3px 100%;
pointer-events: none;
opacity: 0.6;
}
.terminal-window {
width: 800px;
height: 500px;
max-width: 90%;
background: rgba(13, 17, 23, 0.96);
border: 1px solid #30363d;
border-radius: 8px;
box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05),
0 50px 100px rgba(0, 0, 0, 0.8),
0 0 50px rgba(0, 255, 127, 0.05);
display: flex;
flex-direction: column;
position: relative;
backdrop-filter: blur(12px);
transform: translateY(0);
overflow: hidden;
transition: filter 0.1s, transform 0.1s, border-color 0.1s;
}
@media (max-width: 768px) {
.terminal-window {
height: 60vh;
max-width: 92%;
backdrop-filter: none;
background: #0d1117;
box-shadow: 0 10px 40px rgba(0,0,0,0.8);
}
#geek-loader::after { opacity: 0.2; }
}
.terminal-window.interference {
animation: glitch-anim 0.2s infinite;
filter: contrast(1.2) brightness(1.2) hue-rotate(5deg);
border-color: #ffbd2e;
}
.terminal-window.critical-error {
animation: glitch-anim-hard 0.1s infinite;
filter: contrast(1.5) brightness(0.8) sepia(1) hue-rotate(-50deg);
border-color: #ff5f56;
}
@keyframes glitch-anim {
0% { transform: translate(0) }
20% { transform: translate(-2px, 2px) }
40% { transform: translate(-2px, -2px) }
60% { transform: translate(2px, 2px) }
80% { transform: translate(2px, -2px) }
100% { transform: translate(0) }
}
@keyframes glitch-anim-hard {
0% { transform: translate(0) skew(0deg); }
20% { transform: translate(-5px, 0) skew(-10deg); }
40% { transform: translate(5px, 0) skew(10deg); }
60% { transform: translate(-2px, 5px) skew(0deg); }
80% { transform: translate(2px, -5px) skew(0deg); }
100% { transform: translate(0) skew(0deg); }
}
.noise-overlay {
position: absolute;
top: 0; left: 0; width: 100%; height: 100%;
pointer-events: none; z-index: 10;
background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.1'/%3E%3C/svg%3E");
opacity: 0;
transition: opacity 0.1s;
}
.terminal-window.interference .noise-overlay { opacity: 0.15; }
.terminal-window.critical-error .noise-overlay { opacity: 0.35; }
.terminal-header {
display: flex; justify-content: space-between; align-items: center;
padding: 10px 16px; background: #0d1117;
border-bottom: 1px solid #30363d; flex-shrink: 0; z-index: 5;
}
.terminal-controls { display: flex; gap: 8px; }
.control-dot { width: 12px; height: 12px; border-radius: 50%; }
.close { background: #ff5f56; }
.minimize { background: #ffbd2e; }
.maximize { background: #27c93f; }
.terminal-status {
color: #8b949e; font-size: 12px; font-family: monospace;
display: flex; gap: 15px; opacity: 0.8;
}
.signal-indicator { display: flex; gap: 2px; align-items: flex-end; height: 12px; }
.signal-bar { width: 3px; background: #30363d; transition: background 0.2s; }
.signal-bar.active { background: #7ee787; }
.signal-bar.weak { background: #ffbd2e; }
.signal-bar.offline { background: #ff5f56; }
.signal-bar:nth-child(1) { height: 4px; }
.signal-bar:nth-child(2) { height: 6px; }
.signal-bar:nth-child(3) { height: 8px; }
.signal-bar:nth-child(4) { height: 12px; }
.terminal-content {
flex: 1; padding: 16px; overflow: hidden;
color: #c9d1d9; font-size: 13px; line-height: 1.6;
display: flex; flex-direction: column; justify-content: flex-start;
position: relative; z-index: 1;
}
.line { min-height: 1.6em; white-space: pre-wrap; word-break: break-all; margin-bottom: 2px; }
.c-user { color: #d2a8ff; font-weight: bold; }
.c-host { color: #c9d1d9; }
.c-path { color: #79c0ff; font-weight: bold; }
.c-prompt { color: #7ee787; }
.c-cmd { color: #e6edf3; font-weight: bold; }
.c-green { color: #7ee787; }
.c-red { color: #ff7b72; }
.c-blue { color: #79c0ff; }
.c-yellow { color: #d29922; }
.c-purple { color: #d2a8ff; }
.c-gray { color: #8b949e; }
.c-orange { color: #ffa657; }
.c-matrix { color: #0f0; text-shadow: 0 0 5px #0f0; }
.blink-red { animation: blink-red 0.5s infinite; color: #ff7b72; font-weight: bold; }
.cursor-block {
display: inline-block; width: 9px; height: 16px;
background-color: #c9d1d9; vertical-align: middle;
margin-left: 2px; margin-bottom: -2px;
animation: blink 1s step-end infinite;
}
.typing .cursor-block { animation: none; opacity: 1; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes blink-red { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.loader-hidden {
opacity: 0; transform: scale(0.95) translateY(20px); pointer-events: none;
}
.progress-track { color: #30363d; }
.skip-hint {
position: absolute; bottom: 15px; width: 100%; text-align: center;
color: #484f58; font-size: 10px; opacity: 0;
animation: fadeInHint 1s ease-in forwards 1s; pointer-events: none;
}
@keyframes fadeInHint { to { opacity: 1; } }
</style>
<div id="geek-loader">
<div class="terminal-window" id="term-window">
<div class="noise-overlay"></div>
<div class="terminal-header">
<div class="terminal-controls">
<div class="control-dot close"></div>
<div class="control-dot minimize"></div>
<div class="control-dot maximize"></div>
</div>
<div class="terminal-status">
<div class="signal-indicator" id="signal-bars">
<div class="signal-bar active"></div>
<div class="signal-bar active"></div>
<div class="signal-bar active"></div>
<div class="signal-bar active"></div>
</div>
<div id="connection-status">NET: STABLE</div>
<div>MEM: <span id="mem-usage">14</span>%</div>
</div>
</div>
<div class="terminal-content" id="term-content"></div>
<div class="skip-hint">Double tap to skip initialization...</div>
</div>
</div>
<script>
(function() {
const isMobile = window.innerWidth < 768;
const CONFIG = {
typingBaseSpeed: 15,
typingVariance: 10,
maxLoadTime: isMobile ? 4000 : 6000,
isLoaded: false,
skipMode: false,
interferenceChance: 0.15
};
const loader = document.getElementById('geek-loader');
const termWindow = document.getElementById('term-window');
const termContent = document.getElementById('term-content');
const memUsage = document.getElementById('mem-usage');
const signalBars = document.querySelectorAll('.signal-bar');
const connectionStatus = document.getElementById('connection-status');
window.addEventListener('load', () => { CONFIG.isLoaded = true; });
document.addEventListener('DOMContentLoaded', () => {
setTimeout(() => { CONFIG.isLoaded = true; }, 1000);
});
if (document.readyState === 'complete') CONFIG.isLoaded = true;
setTimeout(() => {
if (!CONFIG.isLoaded) {
CONFIG.isLoaded = true;
CONFIG.skipMode = true;
}
}, CONFIG.maxLoadTime);
loader.addEventListener('dblclick', () => { CONFIG.skipMode = true; CONFIG.isLoaded = true; });
loader.addEventListener('touchstart', (e) => {
if(e.touches.length > 1) { CONFIG.skipMode = true; CONFIG.isLoaded = true; }
});
setInterval(() => {
if (!CONFIG.isLoaded) {
memUsage.innerText = Math.floor(Math.random() * 40) + 20;
if (Math.random() > 0.8) {
const quality = Math.floor(Math.random() * 4);
signalBars.forEach((bar, i) => {
bar.className = 'signal-bar';
if (i <= quality) bar.classList.add(quality < 2 ? 'weak' : 'active');
});
if (quality < 2) {
connectionStatus.innerText = "NET: FLUCTUATING";
connectionStatus.style.color = "#ffbd2e";
if (!CONFIG.skipMode) triggerInterference(150);
} else {
connectionStatus.innerText = "NET: STABLE";
connectionStatus.style.color = "#8b949e";
}
}
} else {
signalBars.forEach(b => b.className = 'signal-bar active');
connectionStatus.innerText = "NET: SECURE";
connectionStatus.style.color = "#7ee787";
}
}, 600);
const sleep = ms => new Promise(r => setTimeout(r, CONFIG.skipMode ? 0 : ms));
const randomInt = (min, max) => Math.floor(Math.random() * (max - min + 1)) + min;
function triggerInterference(duration = 150, critical = false) {
if (CONFIG.skipMode || CONFIG.isLoaded) return;
const className = critical ? 'critical-error' : 'interference';
termWindow.classList.add(className);
setTimeout(() => termWindow.classList.remove(className), duration);
}
function createLine() {
const div = document.createElement('div');
div.className = 'line';
termContent.appendChild(div);
termContent.scrollTop = termContent.scrollHeight;
return div;
}
function getPrompt() {
const paths = ['~', '~/blog', '~/deploy', '/var/www', '/etc/nginx', '~/satellite', '/usr/bin', '~/lab', '/tmp/cache'];
const path = paths[Math.floor(Math.random() * paths.length)];
return `<span class="c-user">admin</span><span class="c-gray">@</span><span class="c-host">node-x</span>:<span class="c-path">${path}</span><span class="c-prompt">$</span> `;
}
async function typeText(text, element) {
if (CONFIG.skipMode) {
element.innerHTML = element.innerHTML.replace('<span class="cursor-block"></span>', '') + text;
return;
}
element.classList.add('typing');
let cursorHtml = '<span class="cursor-block"></span>';
let currentHtml = element.innerHTML.replace(cursorHtml, '');
for (let i = 0; i < text.length; i++) {
if (CONFIG.skipMode) {
element.innerHTML = currentHtml + text.substring(i);
break;
}
const speed = CONFIG.isLoaded ? 1 : randomInt(CONFIG.typingBaseSpeed, CONFIG.typingBaseSpeed + CONFIG.typingVariance);
await sleep(speed);
currentHtml += text[i];
element.innerHTML = currentHtml + cursorHtml;
termContent.scrollTop = termContent.scrollHeight;
}
element.classList.remove('typing');
}
async function backspace(count, element) {
if (CONFIG.skipMode) return;
element.classList.add('typing');
let cursorHtml = '<span class="cursor-block"></span>';
let fullHtml = element.innerHTML.replace(cursorHtml, '');
for (let i = 0; i < count; i++) {
if (CONFIG.skipMode) break;
await sleep(20);
fullHtml = fullHtml.slice(0, -1);
element.innerHTML = fullHtml + cursorHtml;
}
element.classList.remove('typing');
}
async function printLog(text, colorClass = '') {
const line = createLine();
if (CONFIG.skipMode) {
line.innerHTML = `<span class="c-gray">>></span> <span class="${colorClass}">${text}</span>`;
return;
}
const timestamp = new Date().toLocaleTimeString('en-US', {hour12: false});
line.innerHTML = `<span class="c-gray">[${timestamp}]</span> <span class="${colorClass}">${text}</span>`;
if (Math.random() < CONFIG.interferenceChance) triggerInterference(80);
await sleep(CONFIG.isLoaded ? 2 : randomInt(5, 30));
}
async function progressBar(label, width = 15) {
if (CONFIG.skipMode) {
createLine().innerHTML = `${label} [DONE] 100%`;
return;
}
const line = createLine();
const empty = '░';
const fill = '█';
const barWidth = isMobile ? 10 : width;
for (let i = 0; i <= barWidth; i++) {
if (CONFIG.skipMode || (CONFIG.isLoaded && i < barWidth)) i = barWidth;
const percent = Math.round((i / barWidth) * 100);
const filledStr = fill.repeat(i);
const emptyStr = empty.repeat(barWidth - i);
const color = i === barWidth ? 'c-green' : 'c-blue';
line.innerHTML = `${label} [<span class="${color}">${filledStr}<span class="progress-track">${emptyStr}</span></span>] ${percent}%`;
if (i === Math.floor(barWidth/2) && Math.random() < 0.3) {
triggerInterference(200);
await sleep(300);
}
await sleep(CONFIG.isLoaded ? 2 : randomInt(15, 50));
}
}
const rareScenarios = [
async () => {
const line = createLine(); line.innerHTML = getPrompt() + '<span class="cursor-block"></span>';
await typeText('sudo rm -rf /', line);
await sleep(600); triggerInterference(300, true);
await backspace(11, line);
await sleep(100);
await typeText('./deploy.sh --safe', line);
line.innerHTML = line.innerHTML.replace('<span class="cursor-block"></span>', '');
await printLog('Initializing safety protocols...', 'c-green');
await progressBar('System Recovery');
},
async () => {
const line = createLine(); line.innerHTML = getPrompt() + '<span class="cursor-block"></span>';
await typeText('python3 train_core.py', line);
line.innerHTML = line.innerHTML.replace('<span class="cursor-block"></span>', '');
await printLog('TensorFlow v2.14.0 init...', 'c-purple');
for(let i=1; i<=3; i++) { createLine().innerHTML = `Epoch ${i}/100: loss: 0.${9-i}23`; await sleep(50); }
createLine().innerHTML = `<span class="c-red blink-red">WARNING: SENTIENCE DETECTED</span>`;
triggerInterference(500, true); await sleep(300);
createLine().innerHTML = `<span class="c-purple">AI: "I see you."</span>`;
await sleep(400);
createLine().innerHTML = `<span class="c-gray">Purging buffer...</span>`;
await progressBar('Memory Wipe');
},
async () => {
const line = createLine(); line.innerHTML = getPrompt() + '<span class="cursor-block"></span>';
await typeText('vim config.sys', line);
line.innerHTML = line.innerHTML.replace('<span class="cursor-block"></span>', '');
await sleep(100); termContent.innerHTML = '';
createLine().innerHTML = `<span class="c-blue">~</span>`;
const cmd = createLine(); cmd.innerHTML = ':q<span class="cursor-block"></span>';
await sleep(300);
createLine().innerHTML = `<span class="c-red">E37: No write since last change</span>`;
triggerInterference(200, true);
cmd.innerHTML = ':wq!<span class="cursor-block"></span>';
await sleep(200); termContent.innerHTML = '';
await printLog('Config saved.', 'c-green');
}
];
const normalScenarios = [
async () => {
await typeText('dmesg | tail -n 5', createLine());
const logs = ["[ 0.000] Linux version 6.5.0", "[ 0.451] ACPI: OK", "[ 1.022] EXT4-fs: mounted", "[ 1.455] systemd: OK"];
for (let l of logs) await printLog(l, 'c-gray');
await printLog('Kernel initialized.', 'c-green');
},
async () => {
await typeText('docker build -t blog .', createLine());
await printLog('Sending context 45MB', 'c-gray');
await progressBar('Pulling layers');
await printLog('Built 3a1b2c', 'c-green');
},
async () => {
await typeText('kubectl get pods', createLine());
await printLog('api-0 0/1 CrashLoopBackOff', 'c-red');
await sleep(200); triggerInterference(100);
await typeText('kubectl scale --replicas=3 deploy/api', createLine());
await printLog('deployment.apps/api scaled', 'c-green');
},
async () => {
await typeText('terraform apply -auto-approve', createLine());
await printLog('+ aws_instance.web', 'c-green');
await progressBar('Provisioning', 15);
await printLog('Apply complete!', 'c-green');
},
async () => {
await typeText('ansible-playbook site.yml', createLine());
await printLog('TASK [Gathering Facts] ... ok', 'c-green');
await printLog('TASK [Install Nginx] ... changed', 'c-yellow');
await progressBar('Deploying Configs');
},
async () => {
await typeText('nmap -v 10.0.0.1', createLine());
await printLog('Scanning 1000 ports', 'c-blue');
await progressBar('Stealth Scan');
await printLog('Open ports: 80, 443', 'c-green');
},
async () => {
await typeText('msfconsole -x "run"', createLine());
await printLog('=[ metasploit v6.3.4 ]', 'c-blue');
await printLog('[*] Started reverse TCP handler', 'c-gray');
await progressBar('Sending Stage', 10);
await printLog('[+] Session 1 opened', 'c-green');
},
async () => {
await typeText('./ghidra_analyze binary.exe', createLine());
await printLog('Analyzing PE Header...', 'c-gray');
triggerInterference(100);
await progressBar('Decompiling', 12);
await printLog('42 functions exported.', 'c-green');
},
async () => {
await typeText('tshark -i eth0 -f "port 80"', createLine());
await printLog('Capturing on \'eth0\'', 'c-gray');
for(let i=0; i<4; i++) { await printLog(`192.168.1.${randomInt(10,99)} -> GET /index.html`, 'c-blue'); await sleep(30); }
await printLog('Packets captured.', 'c-green');
},
async () => {
await typeText('./matrix.sh', createLine());
for(let i=0; i<5; i++) {
if(CONFIG.skipMode) break;
createLine().innerHTML = `<span class="c-matrix">${Math.random().toString(36).substring(2).repeat(3)}</span>`;
await sleep(50);
}
await printLog('Follow the white rabbit.', 'c-green');
},
async () => {
await typeText('git push origin main', createLine());
await printLog('Enumerating objects: 32', 'c-gray');
await progressBar('Compressing');
await printLog('Push successful.', 'c-green');
},
async () => {
await typeText('npm run start', createLine());
await printLog('Starting react-scripts...', 'c-blue');
await progressBar('Optimizing');
await printLog('Compiled successfully.', 'c-green');
},
async () => {
await typeText('cargo build --release', createLine());
await progressBar('Compiling', 12);
await printLog('Finished release [optimized]', 'c-green');
},
async () => {
await typeText('go run main.go', createLine());
await printLog('Compiling...', 'c-blue');
await sleep(100);
await printLog('Server listening on :8080', 'c-green');
},
async () => {
await typeText('python3 manage.py migrate', createLine());
await printLog('Applying contenttypes...', 'c-gray');
await printLog('Applying auth...', 'c-gray');
await printLog('Migration applied.', 'c-green');
},
async () => {
await typeText('./xmrig --donate-level 1', createLine());
await printLog('XMRig 6.18.0', 'c-orange');
await printLog('CPU: AMD Ryzen 9 5950X', 'c-blue');
await printLog('speed 14200.5 H/s', 'c-green');
},
async () => {
await typeText('java -jar server.jar nogui', createLine());
await printLog('[INFO]: Starting Minecraft 1.20', 'c-gray');
await progressBar('Generating World', 10);
await printLog('[INFO]: Done (2.4s)!', 'c-green');
},
async () => {
await typeText('blender -b file.blend -f 1', createLine());
await printLog('Fra:1 Mem:4096M', 'c-gray');
await progressBar('Ray Tracing', 12);
await printLog('Frame 1 saved.', 'c-green');
},
async () => {
await typeText('uplink --connect sat-42', createLine());
await printLog('Aligning dish...', 'c-blue');
await progressBar('Signal Lock');
triggerInterference(300);
await printLog('Uplink established.', 'c-green');
},
async () => {
await typeText('make coffee', createLine());
await sleep(200);
await printLog('Error: 418 I\'m a teapot', 'c-yellow');
await typeText('brew install coffee', createLine());
await printLog('Pouring...', 'c-green');
},
async () => {
await typeText('whoami', createLine());
await sleep(100);
await printLog('root', 'c-green');
await typeText('ls -la', createLine());
await printLog('drwxr-xr-x 2 root root 4096 .', 'c-gray');
await printLog('drwxr-xr-x 3 root root 4096 ..', 'c-gray');
await printLog('-rw-r--r-- 1 root root 120 secret.txt', 'c-gray');
},
async () => {
await typeText('grep -r "TODO" .', createLine());
await sleep(300);
await printLog('./main.js: // TODO: fix memory leak', 'c-yellow');
await printLog('./style.css: // TODO: center div', 'c-yellow');
await printLog('Found 2 matches.', 'c-gray');
},
async () => {
await typeText('ping 8.8.8.8', createLine());
await printLog('64 bytes from 8.8.8.8: icmp_seq=1 ttl=118 time=14.2 ms', 'c-gray');
await printLog('64 bytes from 8.8.8.8: icmp_seq=2 ttl=118 time=13.8 ms', 'c-gray');
await typeText('^C', createLine());
},
async () => {
await typeText('. build/envsetup.sh', createLine());
await printLog('including device/generic/mini_emulator/vendorsetup.sh', 'c-gray');
await typeText('lunch aosp_arm-eng', createLine());
await progressBar('Building ROM');
await printLog('Build completed.', 'c-green');
},
async () => {
await typeText('redis-cli ping', createLine());
await printLog('PONG', 'c-green');
await typeText('redis-cli info | grep memory', createLine());
await printLog('used_memory_human: 1.2M', 'c-gray');
},
async () => {
await typeText('ffmpeg -i video.mp4 output.gif', createLine());
await printLog('Stream #0:0 -> #0:0 (h264 -> gif)', 'c-blue');
await progressBar('Encoding', 15);
await printLog('Conversion failed successfully.', 'c-green');
},
async () => {
await typeText('ssh user@192.168.1.5', createLine());
await printLog('Authenticating...', 'c-gray');
await sleep(300);
await printLog('Welcome to Ubuntu 22.04 LTS', 'c-green');
},
async () => {
await typeText('cat /var/log/syslog | grep "error"', createLine());
triggerInterference(100);
await printLog('Oct 27 10:00:01 server kernel: [Hardware Error]', 'c-red');
await printLog('Oct 27 10:00:02 server systemd[1]: Failed to start service.', 'c-red');
},
async () => {
await typeText('openssl genrsa -out key.pem 2048', createLine());
await printLog('Generating RSA private key, 2048 bit long modulus', 'c-gray');
await printLog('...................................+++++', 'c-gray');
await printLog('e is 65537 (0x010001)', 'c-gray');
}
];
async function run() {
document.body.style.overflow = 'hidden';
const roll = Math.random();
const scenario = roll < 0.1
? rareScenarios[Math.floor(Math.random() * rareScenarios.length)]
: normalScenarios[Math.floor(Math.random() * normalScenarios.length)];
await scenario();
let waitCounter = 0;
const networkLogs = [
"Resolving CDN topology...",
"Handshake negotiation pending...",
"Optimizing asset delivery...",
"Bypassing proxy gateway...",
"Allocating swap memory...",
"Verifying integrity checksums...",
"Hydrating DOM tree...",
"Mounting virtual filesystem...",
"Syncing with satellite relay..."
];
const retryLogs = [
{ msg: "Connection unstable. Retrying...", color: "c-yellow" },
{ msg: "Packet loss detected. Rerouting...", color: "c-orange" },
{ msg: "Switching to backup node...", color: "c-blue" },
{ msg: "Flushing DNS cache...", color: "c-gray" }
];
while (!CONFIG.isLoaded && !CONFIG.skipMode) {
const logIdx = Math.floor(Math.random() * networkLogs.length);
await printLog(networkLogs[logIdx], 'c-gray');
waitCounter++;
if (waitCounter % 3 === 0) {
const retryAction = retryLogs[Math.floor(Math.random() * retryLogs.length)];
triggerInterference(200);
await printLog(retryAction.msg, retryAction.color);
}
await sleep(600);
}
const line = createLine();
line.innerHTML = getPrompt() + '<span class="cursor-block"></span>';
await typeText('init 5', line, 5.0);
line.innerHTML = line.innerHTML.replace('<span class="cursor-block"></span>', '');
await sleep(50);
termWindow.className = 'terminal-window';
const welcome = createLine();
welcome.innerHTML = `<span class="c-green">System Ready. GUI Starting...</span>`;
welcome.style.textShadow = "0 0 10px #7ee787";
await sleep(300);
loader.classList.add('loader-hidden');
document.body.style.overflow = '';
setTimeout(() => loader.remove(), 500);
}
run();
})();
</script>
</head>
<body class="">
<script>
(function() {
const colorSchemeKey = 'StackColorScheme';
if(!localStorage.getItem(colorSchemeKey)){
localStorage.setItem(colorSchemeKey, "auto");
}
})();
</script><script>
(function() {
const colorSchemeKey = 'StackColorScheme';
const colorSchemeItem = localStorage.getItem(colorSchemeKey);
const supportDarkMode = window.matchMedia('(prefers-color-scheme: dark)').matches === true;
if (colorSchemeItem == 'dark' || colorSchemeItem === 'auto' && supportDarkMode) {
document.documentElement.dataset.scheme = 'dark';
} else {
document.documentElement.dataset.scheme = 'light';
}
})();
</script>
<div class="container main-container flex on-phone--column extended"><aside class="sidebar left-sidebar sticky ">
<button class="hamburger hamburger--spin" type="button" id="toggle-menu" aria-label="切换菜单">
<span class="hamburger-box">
<span class="hamburger-inner"></span>
</span>
</button>
<header>
<figure class="site-avatar">
<a href="/" id="avatar-link">
<img class="site-logo original-logo" src="/img/avatar_hu_4804467f7cda2058.png" width="300" height="300" loading="lazy" alt="原始头像">
<img class="site-logo hover-logo" src="/img/avatar-hover_hu_f231304c77e946da.png" width="300" height="300" loading="lazy" alt="悬停头像">
</a>
<span class="emoji">🤝</span>
</figure>
<div class="site-meta">
<h1 class="site-name"><a href="/">kakahuote</a></h1>
<h2 class="site-description">靡不有初,鲜克有终</h2>
</div>
</header>
<ol class="menu-social">
<li>
<a
href='https://bilibili.com'
target="_blank"
title="bilibili"
rel="me"
>
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-brand-bilibili"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M3 10a4 4 0 0 1 4 -4h10a4 4 0 0 1 4 4v6a4 4 0 0 1 -4 4h-10a4 4 0 0 1 -4 -4v-6z" /><path d="M8 3l2 3" /><path d="M16 3l-2 3" /><path d="M9 13v-2" /><path d="M15 11v2" /></svg>
</a>
</li>
<li>
<a
href='https://github.com'
target="_blank"
title="GitHub"
rel="me"
>
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-brand-github" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
<path d="M9 19c-4.3 1.4 -4.3 -2.5 -6 -3m12 5v-3.5c0 -1 .1 -1.4 -.5 -2c2.8 -.3 5.5 -1.4 5.5 -6a4.6 4.6 0 0 0 -1.3 -3.2a4.2 4.2 0 0 0 -.1 -3.2s-1.1 -.3 -3.5 1.3a12.3 12.3 0 0 0 -6.2 0c-2.4 -1.6 -3.5 -1.3 -3.5 -1.3a4.2 4.2 0 0 0 -.1 3.2a4.6 4.6 0 0 0 -1.3 3.2c0 4.6 2.7 5.7 5.5 6c-.6 .6 -.6 1.2 -.5 2v3.5" />
</svg>
</a>
</li>
</ol>
<ol class="menu" id="main-menu">
<li class='current' >
<a href='/' >
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-home" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z"/>
<polyline points="5 12 3 12 12 3 21 12 19 12" />
<path d="M5 12v7a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-7" />
<path d="M9 21v-6a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v6" />
</svg>
<span>主页</span>
</a>
</li>
<li >
<a href='/archives/' >
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-archive" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z"/>
<rect x="3" y="4" width="18" height="4" rx="2" />
<path d="M5 8v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-10" />
<line x1="10" y1="12" x2="14" y2="12" />
</svg>
<span>归档</span>
</a>
</li>
<li >
<a href='/search/' >
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-search" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z"/>
<circle cx="10" cy="10" r="7" />
<line x1="21" y1="21" x2="15" y2="15" />
</svg>
<span>搜索</span>
</a>
</li>
<li >
<a href='/%E5%8F%8B%E9%93%BE/' >
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z"/>
<path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5" />
<path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5" />
</svg>
<span>友链</span>
</a>
</li>
<li class="menu-bottom-section">
<ol class="menu">
<li id="dark-mode-toggle">
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-toggle-left" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z"/>
<circle cx="8" cy="12" r="2" />
<rect x="2" y="6" width="20" height="12" rx="6" />
</svg>
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-toggle-right" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z"/>
<circle cx="16" cy="12" r="2" />
<rect x="2" y="6" width="20" height="12" rx="6" />
</svg>
<span>暗色模式</span>
</li>
</ol>
</li>
</ol>
</aside>
<aside class="sidebar right-sidebar sticky">
<form action="/search/" class="search-form widget" >
<p>
<label>搜索</label>
<input name="keyword" required placeholder="输入关键词..." />
<button title="搜索">
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-search" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z"/>
<circle cx="10" cy="10" r="7" />
<line x1="21" y1="21" x2="15" y2="15" />
</svg>
</button>
</p>
</form>
<section class="widget archives">
<div class="widget-icon">
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-infinity" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z"/>
<path d="M9.828 9.172a4 4 0 1 0 0 5.656 a10 10 0 0 0 2.172 -2.828a10 10 0 0 1 2.172 -2.828 a4 4 0 1 1 0 5.656a10 10 0 0 1 -2.172 -2.828a10 10 0 0 0 -2.172 -2.828" />
</svg>
</div>
<h2 class="widget-title section-title">归档</h2>
<div class="widget-archive--list">
<div class="archives-year">
<a href="/archives/#2025">
<span class="year">2025</span>