-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathblog.html
More file actions
244 lines (207 loc) · 9.38 KB
/
blog.html
File metadata and controls
244 lines (207 loc) · 9.38 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Blog | Daniel Han</title>
<link rel="icon" type="image/png" href="images/f1zzyicon.png">
<link rel="stylesheet" href="styles.css">
<link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&display=swap" rel="stylesheet">
</head>
<body>
<div class="grid-bg"></div>
<nav class="nav">
<div class="nav-container">
<a href="index.html"><div class="nav-logo nav-glitch" data-text="> Daniel Han">> Daniel Han</div></a>
<div class="nav-links">
<a href="index.html#about" class="hacker-text" data-value="About">About</a>
<a href="index.html#education" class="hacker-text" data-value="Education">Education</a>
<a href="index.html#experience" class="hacker-text" data-value="Experience">Experience</a>
<a href="blog.html" class="hacker-text active" data-value="Blog">Blog</a>
<a href="misc.html" class="hacker-text" data-value="Misc">Misc</a>
<a href="index.html#contact" class="hacker-text" data-value="Contact">Contact</a>
</div>
</div>
</nav>
<section class="section" style="padding-top: 8rem;">
<div class="container">
<div class="back-btn-container">
<a href="index.html#home" class="back-btn">
< Back_to_Home
</a>
</div>
<div class="section-header">
<h2 class="section-title hacker-text" data-value="> blog_posts">> blog_posts</h2>
</div>
<div class="blog-grid">
<article class="blog-card">
<div class="blog-header">
<span class="blog-date">Feb 19 2026</span>
</div>
<h3 class="blog-title">Time Traveling on LinkedIn</h3>
<p class="blog-desc">
How I used Burp Suite to bypass client-side validation and force a future start date on my profile.
</p>
<a href="posts/time-traveling-on-linkedin.html" class="read-more">Read_Entry ></a>
</article>
<article class="blog-card">
<div class="blog-header"><span class="blog-date">-- -- ----</span></div>
<h3 class="blog-title">---</h3>
<p class="blog-desc">---</p>
<span class="read-more disabled">Read_Entry ></span>
</article>
<article class="blog-card">
<div class="blog-header"><span class="blog-date">-- -- ----</span></div>
<h3 class="blog-title">---</h3>
<p class="blog-desc">---</p>
<span class="read-more disabled">Read_Entry ></span>
</article>
</div>
</div>
</section>
<footer class="footer">
<div class="container">
<p>© 2026 Daniel Han. All rights reserved.</p>
</div>
</footer>
<div id="terminal-overlay" class="terminal-overlay" style="display: none; background: transparent; z-index: 9998; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; align-items: center; justify-content: center;">
<div class="terminal-window" style="transform: scale(1); opacity: 1;">
<div class="terminal-header">
<div class="terminal-btn red"></div>
<div class="terminal-btn yellow"></div>
<div class="terminal-btn green"></div>
</div>
<div class="terminal-body" id="terminal-content"></div>
</div>
</div>
<div id="malware-overlay" class="malware-overlay">
<div class="malware-corruption"></div>
<div class="malware-modal">
<h2 class="malware-title">Are You Still Browsing?</h2>
<p>You have been inactive for some time.</p>
<p>You will be signed out soon to keep the connection safe.</p>
<div class="countdown-container">
<span id="malware-countdown">60</span><span>s until connection drop...</span>
</div>
<button id="malware-yes-btn" class="malware-btn">[CONTINUE]</button>
</div>
</div>
<script src="script.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.2/gsap.min.js"></script>
<script>
// --- EXACT ORIGINAL CUSTOM BINARY MATRIX RAIN ---
const overlay = document.getElementById('terminal-overlay');
let matrixInterval;
function startMatrixRain() {
if (!overlay) return;
if (matrixInterval) clearInterval(matrixInterval); // Prevent doubles
let matrixCanvas = document.getElementById('matrix-canvas');
if (!matrixCanvas) {
matrixCanvas = document.createElement('canvas');
matrixCanvas.id = 'matrix-canvas';
matrixCanvas.style.position = 'absolute';
matrixCanvas.style.top = '0';
matrixCanvas.style.left = '0';
matrixCanvas.style.width = '100%';
matrixCanvas.style.height = '100%';
matrixCanvas.style.zIndex = '0';
matrixCanvas.style.pointerEvents = 'none';
overlay.prepend(matrixCanvas);
}
const ctx = matrixCanvas.getContext('2d');
let w = matrixCanvas.width = window.innerWidth;
let h = matrixCanvas.height = window.innerHeight;
const cols = Math.floor(w / 20) + 1;
const yPos = Array(cols).fill(0);
function drawMatrix() {
ctx.fillStyle = 'rgba(0, 0, 0, 0.1)';
ctx.fillRect(0, 0, w, h);
ctx.font = '14pt "JetBrains Mono", monospace';
yPos.forEach((y, ind) => {
const text = Math.random() > 0.5 ? '1' : '0';
const colorChance = Math.random();
if (colorChance > 0.98) {
ctx.fillStyle = 'rgba(255, 0, 193, 0.6)'; // Hot Pink
} else if (colorChance > 0.93) {
ctx.fillStyle = 'rgba(255, 255, 255, 0.5)'; // White
} else if (colorChance > 0.78) {
ctx.fillStyle = 'rgba(0, 212, 255, 0.3)'; // Blue
} else {
ctx.fillStyle = 'rgba(0, 255, 65, 0.3)'; // Hacker Green
}
const x = ind * 20;
ctx.fillText(text, x, y);
if (y > 100 + Math.random() * 10000) yPos[ind] = 0;
else yPos[ind] = y + 20;
});
}
matrixInterval = setInterval(drawMatrix, 50);
}
// --- YOUR EXACT INACTIVITY MALWARE TIMEOUT ---
const inactivityLimit = 60 * 1000; // 60 seconds
let inactivityTimer;
let countdownInterval;
let isMalwareActive = false;
let timeLeft = 60;
const malwareOverlay = document.getElementById('malware-overlay');
const countdownDisplay = document.getElementById('malware-countdown');
const yesBtn = document.getElementById('malware-yes-btn');
const terminalContent = document.getElementById('terminal-content');
const terminalWindow = document.querySelector('.terminal-window');
function resetInactivityTimer() {
if (isMalwareActive) return;
clearTimeout(inactivityTimer);
inactivityTimer = setTimeout(triggerMalware, inactivityLimit);
}
function triggerMalware() {
isMalwareActive = true;
timeLeft = 60;
if(countdownDisplay) countdownDisplay.innerText = timeLeft;
if(malwareOverlay) malwareOverlay.classList.add('active');
countdownInterval = setInterval(() => {
timeLeft--;
if(countdownDisplay) countdownDisplay.innerText = timeLeft;
if (timeLeft <= 0) {
triggerSessionExpired();
}
}, 1000);
}
function triggerSessionExpired() {
clearInterval(countdownInterval);
if(malwareOverlay) malwareOverlay.classList.remove('active');
// Hide the rest of the page so it looks like a real crash
document.querySelector('.nav').style.display = 'none';
document.querySelector('.section').style.display = 'none';
document.body.classList.add('loading');
if (typeof gsap !== 'undefined' && terminalWindow && overlay) {
gsap.killTweensOf([terminalWindow, overlay]);
gsap.set(overlay, { display: 'flex', opacity: 1 });
gsap.set(terminalWindow, { scale: 1, x: "0vw", y: "0vh", rotation: 0, opacity: 1 });
} else if (overlay) {
overlay.style.display = 'flex';
}
if (terminalContent) {
terminalContent.innerHTML = `
<span class="cmd-user">guest@daniel-han-portfolio</span>:<span class="cmd-path">~</span>$ connection_status<br>
<span class="cmd-error">Connection closed by remote host.</span><br>
<span class="cmd-error">Session expired. Idle state detected.</span><br><br>
<span class="cmd-user">guest@daniel-han-portfolio</span>:<span class="cmd-path">~</span>$ Please refresh the page to establish a new secure connection.<span class="cmd-input"></span>
`;
}
startMatrixRain();
}
if (yesBtn) {
yesBtn.addEventListener('click', () => {
isMalwareActive = false;
clearInterval(countdownInterval);
if(malwareOverlay) malwareOverlay.classList.remove('active');
resetInactivityTimer();
});
}
['mousemove', 'keydown', 'scroll', 'click', 'touchstart'].forEach(evt => {
window.addEventListener(evt, resetInactivityTimer);
});
resetInactivityTimer();
</script>
</body>
</html>