-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
358 lines (317 loc) · 13.1 KB
/
index.html
File metadata and controls
358 lines (317 loc) · 13.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Shellfolio | Terminal Portfolio</title>
<style>
/* Base Styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
:root {
--bg-color: #050505;
--terminal-green: #00ff41;
--accent-color: #008f11;
--text-main: #e0e0e0;
--font-mono: 'Courier New', Courier, monospace;
}
body {
background-color: var(--bg-color);
color: var(--terminal-green);
font-family: var(--font-mono);
height: 100vh;
display: flex;
flex-direction: column;
overflow: hidden;
position: relative;
}
/* Matrix Canvas Background */
#matrix-bg {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 0;
opacity: 0.12;
pointer-events: none;
}
.scanlines {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%);
background-size: 100% 4px;
z-index: 1;
pointer-events: none;
}
/* Top Right UI */
.top-right-ui {
position: absolute;
top: 20px;
right: 20px;
text-align: right;
z-index: 10;
background: rgba(5, 5, 5, 0.85);
padding: 10px;
border-radius: 4px;
border: 1px solid rgba(0, 255, 65, 0.2);
}
.top-right-ui h1 {
font-size: 0.9rem;
margin-bottom: 0.5rem;
text-transform: uppercase;
letter-spacing: 2px;
color: var(--text-main);
}
.email-btn {
display: inline-block;
background: transparent;
border: 1px solid var(--terminal-green);
color: var(--terminal-green);
padding: 6px 12px;
font-size: 0.75rem;
text-decoration: none;
transition: all 0.3s ease;
}
.email-btn:hover {
background-color: var(--terminal-green);
color: var(--bg-color);
box-shadow: 0 0 10px var(--terminal-green);
}
/* Terminal Styling */
.terminal-container {
position: relative;
padding: 120px 20px 80px 20px;
font-size: 1rem;
line-height: 1.4;
flex-grow: 1;
overflow-y: auto;
scrollbar-width: none;
width: 100%;
z-index: 2;
}
@media (min-width: 768px) {
.terminal-container { padding: 140px 40px 80px 40px; }
}
.terminal-container::-webkit-scrollbar { display: none; }
.output-line {
margin-bottom: 5px;
white-space: pre-wrap;
word-break: break-all;
}
.input-area {
display: flex;
align-items: center;
margin-top: 10px;
}
.prompt {
color: var(--terminal-green);
margin-right: 10px;
white-space: nowrap;
}
#terminal-input {
background: transparent;
border: none;
color: var(--terminal-green);
font-family: var(--font-mono);
font-size: 1rem;
outline: none;
flex-grow: 1;
width: 100%;
}
/* Fixed Bottom Credit - Your Legacy Link */
.footer-credit {
position: fixed;
bottom: 10px;
right: 20px;
font-size: 0.65rem;
opacity: 0.5;
z-index: 5;
text-decoration: none;
color: var(--terminal-green);
}
.bottom-hint {
position: fixed;
bottom: 25px;
left: 50%;
transform: translateX(-50%);
font-size: 0.7rem;
opacity: 0.3;
letter-spacing: 2px;
z-index: 5;
}
.man-page {
color: #fff;
background: rgba(0, 255, 65, 0.05);
padding: 15px;
border-left: 3px solid var(--terminal-green);
margin: 10px 0;
font-size: 0.9rem;
}
.cmd-highlight { color: var(--terminal-green); font-weight: bold; }
.terminal-link { color: #4ade80; text-decoration: underline; cursor: pointer; }
/* Easter Egg Styling */
.matrix-glitch {
color: #ff0055;
text-shadow: 2px 2px #00ff41;
font-weight: bold;
}
</style>
</head>
<body onclick="document.getElementById('terminal-input').focus()">
<canvas id="matrix-bg"></canvas>
<div class="scanlines"></div>
<div class="top-right-ui" id="ui-header">
<h1 id="ui-title">CONNECT</h1>
<a href="#" id="ui-mail-link" class="email-btn">[ SEND_MESSAGE ]</a>
</div>
<div class="terminal-container" id="terminal-history">
<div id="terminal-content">
<div id="initial-message" class="output-line">System initialized. Type 'help' to begin.</div>
<div id="command-history"></div>
</div>
<div class="input-area">
<span class="prompt" id="terminal-prompt">user@dev:~$</span>
<input type="text" id="terminal-input" autofocus autocomplete="off" spellcheck="false">
</div>
</div>
<div class="bottom-hint">Type "man root"</div>
<!-- Link back to creator -->
<a href="https://lakhan.dev" target="_blank" class="footer-credit">Shellfolio Engine by Dev Lakhan</a>
<script>
/* CONFIG: Users can edit these values to customize the portfolio
*/
const CONFIG = {
name: "Dev Lakhan, CC", // Change "Dev Lakhan, CC" to "YOUR NAME"
description: "Technologist. Aspiring Ethical Hacker.", // Change "Technologist. Aspiring Ethical Hacker." to "YOUR DESCRIPTION"
email: "root@lakhan.dev", // Change "root@lakhan.dev" to "YOUR EMAIL"
linkedin: "https://www.linkedin.com/in/devlakhan/", // Change "https://www.linkedin.com/in/devlakhan/" to "YOUR LINKEDIN"
prompt: "root@lakhan.dev:~$", // Change "root@lakhan.dev~$" to "YOUR PROMPT"
files: { // Change these titles and URL's to your own titles and URLs. Pay attention to \n (line breaks). Be vigilant to not change anything else.
'projects.txt': `[ PROJECT ALPHA ] - Nmap Commands Cheat Sheet\nURL: https://github.com/DevChthonic/nmap-commands\n\n[ PROJECT BETA ] - Partial Phone Number Generator\nURL: https://github.com/DevChthonic/50221337.xyz-Partial-Phone-Number-Generator\n\n[ PROJECT GAMMA ] - Rubber Ducky Framework\nURL: https://github.com/DevChthonic/rubberducky-demo`,
'skills.cap': `- Network Security\n- Penetration Testing\n- Linux Admin\n- Python/Bash\n- SOC Analysis`,
'certifications.key': `[ COMPLETED ]\n- ISC2: Certified in Cybersecurity (CC)\n\n[ TARGET ]\n- TryHackMe: SAL1\n- TryHackMe: PT1\n- Level Effect: CDCP`
}
};
// Initialize UI
document.getElementById('ui-mail-link').href = `mailto:${CONFIG.email}`;
document.getElementById('terminal-prompt').textContent = CONFIG.prompt;
const input = document.getElementById('terminal-input');
const historyContainer = document.getElementById('command-history');
const terminal = document.getElementById('terminal-history');
const canvas = document.getElementById('matrix-bg');
const ctx = canvas.getContext('2d');
// Matrix Rain
let width = canvas.width = window.innerWidth;
let height = canvas.height = window.innerHeight;
let columns = Math.floor(width / 20);
const characters = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ$+-*/=%\"'#&_(),.;:?!\\|{}<>[]^~";
const drops = Array(columns).fill(1);
function drawMatrix() {
ctx.fillStyle = "rgba(5, 5, 5, 0.05)";
ctx.fillRect(0, 0, width, height);
ctx.fillStyle = "#00ff41";
ctx.font = "15px monospace";
for (let i = 0; i < drops.length; i++) {
const text = characters.charAt(Math.floor(Math.random() * characters.length));
ctx.fillText(text, i * 20, drops[i] * 20);
if (drops[i] * 20 > height && Math.random() > 0.975) drops[i] = 0;
drops[i]++;
}
}
window.addEventListener('resize', () => {
width = canvas.width = window.innerWidth;
height = canvas.height = window.innerHeight;
columns = Math.floor(width / 20);
drops.length = columns;
drops.fill(1);
});
// Command Engine
const COMMANDS = {
'ls': Object.keys(CONFIG.files).join(' '),
'whoami': CONFIG.name + ": Technologist",
'help': 'Commands: ls, cat [file], whoami, man root, clear, sudo',
'clear': 'CLEAR',
'sudo': '<span class="matrix-glitch">ERROR: User not in sudoers file. This incident will be reported.</span>',
'man root': `
<div class="man-page">
<span class="cmd-highlight">NAME:</span> ${CONFIG.name}
<span class="cmd-highlight">DESCRIPTION:</span> ${CONFIG.description}
<span class="cmd-highlight">LINKEDIN:</span> <a href="${CONFIG.linkedin}" target="_blank" class="terminal-link">${CONFIG.linkedin}</a>
<span class="cmd-highlight">AVAILABLE DIRECTIVES:</span>
<span class="cmd-highlight">ls</span> - List artifacts.
<span class="cmd-highlight">cat [file]</span> - Read file contents.
<span class="cmd-highlight">whoami</span> - Display identity profile.
<span class="cmd-highlight">clear</span> - Flush terminal buffer.
</div>`,
// THE EASTER EGG
'hunter2': '******* (Nice try, but your password is not hunter2.)',
'matrix': 'Wake up, Neo...',
'hack': 'Scanning ports... [FAILED] - Just kidding, try learning Nmap: https://nmap.org'
};
let cmdHistory = [];
let historyIndex = -1;
input.addEventListener('keydown', (e) => {
if (e.key === 'Enter') {
const val = input.value.trim();
const rawVal = val.toLowerCase();
if (val) { cmdHistory.unshift(val); historyIndex = -1; }
const line = document.createElement('div');
line.className = 'output-line';
line.innerHTML = `<span class="prompt">${CONFIG.prompt}</span> ${val}`;
historyContainer.appendChild(line);
if (rawVal === 'clear') {
historyContainer.innerHTML = '';
if (document.getElementById('initial-message')) document.getElementById('initial-message').remove();
} else if (COMMANDS[rawVal]) {
const res = document.createElement('div');
res.className = 'output-line';
res.innerHTML = COMMANDS[rawVal];
historyContainer.appendChild(res);
} else if (rawVal.startsWith('cat ')) {
const filename = val.split(' ')[1];
const res = document.createElement('div');
res.className = 'output-line';
const content = CONFIG.files[filename];
if (content) {
res.innerHTML = content.replace(/(https?:\/\/[^\s]+)/g, '<a href="$1" target="_blank" class="terminal-link">$1</a>');
} else {
res.textContent = `cat: ${filename}: No such file`;
}
historyContainer.appendChild(res);
} else if (val !== "") {
const err = document.createElement('div');
err.className = 'output-line';
err.textContent = `Command not found: ${val}. Type 'help' for assistance.`;
historyContainer.appendChild(err);
}
input.value = '';
terminal.scrollTop = terminal.scrollHeight;
} else if (e.key === 'ArrowUp') {
if (historyIndex < cmdHistory.length - 1) {
historyIndex++;
input.value = cmdHistory[historyIndex];
}
e.preventDefault();
} else if (e.key === 'ArrowDown') {
if (historyIndex > 0) {
historyIndex--;
input.value = cmdHistory[historyIndex];
} else {
historyIndex = -1;
input.value = '';
}
e.preventDefault();
}
});
setInterval(drawMatrix, 50);
window.onload = () => input.focus();
</script>
</body>
</html>