-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
394 lines (342 loc) · 12.7 KB
/
index.html
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
<!DOCTYPE html>
<html>
<head>
<title>Security Researcher Portfolio</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
:root {
--font-size-base: clamp(14px, 1.5vw, 18px);
--padding-base: clamp(10px, 2vw, 20px);
--terminal-height: clamp(300px, 80vh, 1000px);
--bright-green: #0f0;
--mid-green: #00b300;
--dark-green: #006400;
}
body {
background-color: #2f2f2f;
height: 100vh;
padding: var(--padding-base);
font-family: 'Courier New', monospace;
font-size: var(--font-size-base);
display: flex;
justify-content: center;
align-items: center;
}
#terminal {
width: clamp(300px, 95%, 1200px);
height: var(--terminal-height);
overflow-y: auto;
padding: var(--padding-base);
background-color: #1a1a1a;
border: 2px solid var(--bright-green);
border-radius: 8px;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}
#terminal::-webkit-scrollbar {
width: 8px;
}
#terminal::-webkit-scrollbar-track {
background: #1a1a1a;
}
#terminal::-webkit-scrollbar-thumb {
background: var(--bright-green);
border-radius: 4px;
}
.command-line {
display: flex;
margin: 5px 0;
color: var(--bright-green);
font-weight: bold;
align-items: center;
}
.prompt {
margin-right: 10px;
color: var(--bright-green);
font-weight: bold;
}
#cursor {
background-color: var(--bright-green);
display: inline-block;
width: 0.5em;
height: 1.2em;
animation: blink 1s infinite;
margin-left: 2px;
}
@keyframes blink {
0% { opacity: 1; }
50% { opacity: 0; }
100% { opacity: 1; }
}
.input-line {
background: transparent;
border: none;
color: var(--bright-green);
font-size: inherit;
font-family: inherit;
outline: none;
width: 100%;
font-weight: bold;
}
.output {
margin: 8px 0;
white-space: pre-wrap;
color: var(--mid-green);
font-weight: 600;
line-height: 1.4;
letter-spacing: 0.02em;
}
.project {
margin: 10px 0;
padding-left: calc(var(--padding-base) * 2);
}
.startup {
animation: fadeIn 2s;
color: var(--bright-green);
font-weight: bold;
text-align: center;
}
.header {
color: var(--bright-green);
font-weight: bold;
border-bottom: 1px solid var(--bright-green);
padding-bottom: 5px;
margin-bottom: 10px;
}
.project-title {
color: var(--bright-green);
font-weight: bold;
}
.project-tech {
color: var(--mid-green);
font-style: italic;
}
.project-description {
color: var(--mid-green);
font-weight: 600;
margin-left: 20px;
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
.error {
color: #ff3333;
font-weight: bold;
}
@media (max-width: 600px) {
:root {
--padding-base: 10px;
}
#terminal {
border-width: 1px;
}
.project-description {
margin-left: 10px;
}
}
@media (min-width: 1200px) {
:root {
--font-size-base: 18px;
}
}
@media (prefers-reduced-motion: reduce) {
.startup {
animation: none;
}
#cursor {
animation: none;
}
}
</style>
</head>
<body>
<div id="terminal">
<div class="startup"></div>
</div>
<audio id="keySound" src="data:audio/wav;base64,UklGRigAAABXQVZFZm10IBAAAAABAAEARKwAAIhYAQACABAAZGF0YQQAAAAAAA==" preload="auto"></audio>
<script>
const projects = [
{
name: "X64Inferno",
description: "Educational Assembly project demonstrating low-level system interactions and keystroke handling for security research.",
tech: "Assembly"
},
{
name: "Infinitron",
description: "C++ based security research tool for studying user input patterns and system monitoring.",
tech: "C++"
},
{
name: "ShadowFang",
description: "Academic proof-of-concept demonstrating encryption techniques and system security vulnerabilities.",
tech: "C++"
},
{
name: "VulnMatrix",
description: "Security analysis tool for identifying and documenting potential system vulnerabilities.",
tech: "Python"
},
{
name: "GhostTalk",
description: "Encrypted communication platform emphasizing privacy and secure data transmission.",
tech: "Python"
},
{
name: "CodePad-Secure",
description: "Enhanced code editor with built-in security features and encryption capabilities.",
tech: "Python"
},
{
name: "keypy",
description: "Educational tool demonstrating input monitoring techniques in Python.",
tech: "Python"
},
{
name: "Honeypy",
description: "Security research honeypot for studying and analyzing potential threats.",
tech: "Python"
},
{
name: "PHT",
description: "Network analysis tool for educational packet inspection and monitoring.",
tech: "Python"
},
{
name: "NetNinja",
description: "Network mapping and analysis tool for security research and documentation.",
tech: "Python"
}
];
const terminal = document.getElementById('terminal');
const keySound = document.getElementById('keySound');
let commandHistory = [];
let historyIndex = -1;
let currentInput = '';
const startupText = `
╔══════════════════════════════════════════════════════════════╗
║ Security Researcher Portfolio ║
║ Terminal Interface v1.0 ║
╚══════════════════════════════════════════════════════════════╝
Type 'help' to see available commands.
`;
async function typeText(text, element, delay = 50) {
for (let char of text) {
element.textContent += char;
keySound.currentTime = 0;
keySound.play();
await new Promise(resolve => setTimeout(resolve, delay));
}
terminal.scrollTop = terminal.scrollHeight;
}
window.onload = async () => {
const startup = document.querySelector('.startup');
await typeText(startupText, startup, 20);
createNewCommandLine();
};
function createNewCommandLine() {
const commandLine = document.createElement('div');
commandLine.className = 'command-line';
const prompt = document.createElement('span');
prompt.className = 'prompt';
prompt.textContent = '> ';
const input = document.createElement('input');
input.type = 'text';
input.className = 'input-line';
input.autofocus = true;
const cursor = document.createElement('span');
cursor.id = 'cursor';
commandLine.appendChild(prompt);
commandLine.appendChild(input);
commandLine.appendChild(cursor);
terminal.appendChild(commandLine);
input.focus();
input.addEventListener('keydown', handleCommand);
input.addEventListener('keyup', (e) => {
if (e.key === 'ArrowUp' || e.key === 'ArrowDown') {
e.preventDefault();
}
});
terminal.scrollTop = terminal.scrollHeight;
}
function handleCommand(e) {
if (e.key === 'Enter') {
const command = e.target.value.trim().toLowerCase();
commandHistory.push(command);
historyIndex = commandHistory.length;
const output = document.createElement('div');
output.className = 'output';
switch(command) {
case 'help':
output.innerHTML = `
<div class="header">Available Commands:</div>
help - Show this help message
projects - List all projects
clear - Clear the terminal
about - About me
exit - Exit terminal (reload page)
`;
break;
case 'projects':
output.innerHTML = '<div class="header">Security Research Projects:</div>\n\n';
projects.forEach((project, index) => {
output.innerHTML += `<div class="project-title">${index + 1}. ${project.name}</div><span class="project-tech">(${project.tech})</span>
<div class="project-description">└─ ${project.description}</div>\n\n`;
});
break;
case 'clear':
terminal.innerHTML = '';
createNewCommandLine();
return;
case 'about':
output.innerHTML = `
<div class="header">Security Researcher and Developer</div>
────────────────────────────────
Specializing in system security, network analysis, and secure application development.
Primary languages: Python, C++, Assembly
Focus areas: Security Research, Tool Development, System Analysis
`;
break;
case 'exit':
location.reload();
return;
default:
output.textContent = `Command not found: ${command}. Type 'help' for available commands.`;
output.className += ' error';
}
terminal.insertBefore(output, e.target.parentElement);
e.target.parentElement.remove();
createNewCommandLine();
} else if (e.key === 'ArrowUp') {
e.preventDefault();
if (historyIndex > 0) {
historyIndex--;
e.target.value = commandHistory[historyIndex];
}
} else if (e.key === 'ArrowDown') {
e.preventDefault();
if (historyIndex < commandHistory.length - 1) {
historyIndex++;
e.target.value = commandHistory[historyIndex];
} else {
historyIndex = commandHistory.length;
e.target.value = currentInput;
}
} else {
currentInput = e.target.value;
}
}
document.addEventListener('click', () => {
const lastInput = document.querySelector('.input-line:last-of-type');
if (lastInput) lastInput.focus();
});
window.addEventListener('resize', () => {
terminal.scrollTop = terminal.scrollHeight;
});
</script>
</body>
</html>