-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
439 lines (390 loc) · 24.3 KB
/
index.html
File metadata and controls
439 lines (390 loc) · 24.3 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Kali Linux | Alberto Drake</title>
<link href="https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
/* --- CORE SYSTEM --- */
body {
margin: 0; padding: 0;
background: url('https://wallpaperaccess.com/full/1162627.jpg') no-repeat center center fixed;
background-size: cover;
font-family: 'Segoe UI', sans-serif;
height: 100vh;
overflow: hidden;
user-select: none;
color: white;
}
/* MATRIX RAIN CANVAS */
#matrix-canvas {
position: fixed; top: 0; left: 0; width: 100%; height: 100%;
z-index: 99999; display: none; background: black;
}
/* --- DESKTOP ICONS --- */
.desktop { padding: 20px; display: flex; flex-direction: column; gap: 15px; flex-wrap: wrap; height: 85vh; width: 120px; }
.icon { width: 90px; text-align: center; cursor: pointer; padding: 10px 5px; border-radius: 5px; text-shadow: 0 1px 4px rgba(0,0,0,0.9); transition: 0.2s; }
.icon:hover { background: rgba(255, 255, 255, 0.1); }
.icon i { font-size: 2.2rem; margin-bottom: 8px; display: block; filter: drop-shadow(0 2px 5px rgba(0,0,0,0.5)); }
.ico-term { color: #e0e0e0; } .ico-discord { color: #5865F2; } .ico-folder { color: #E8C32E; }
.ico-browser { color: #58a6ff; }
/* --- WINDOW SYSTEM --- */
.window {
position: absolute; background-color: #1e1e1e; border-radius: 8px;
box-shadow: 0 15px 50px rgba(0,0,0,0.7); display: none; flex-direction: column;
border: 1px solid #333; min-width: 300px; min-height: 200px;
animation: popUp 0.15s ease-out;
}
@keyframes popUp { 0% { transform: scale(0.95); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.window-header { background: #2d2d2d; padding: 8px 12px; cursor: grab; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #333; color: #ccc; font-size: 0.9rem; }
.window-header:active { cursor: grabbing; }
.controls { display: flex; gap: 8px; }
.dot { width: 12px; height: 12px; border-radius: 50%; cursor: pointer; }
.close-btn { background: #ff5f56; }
.window-body { flex-grow: 1; overflow-y: auto; color: #c9d1d9; position: relative; }
/* --- APP: BROWSER (NEW DESIGN) --- */
.browser-bar { background: #222; padding: 10px; display: flex; gap: 10px; align-items: center; border-bottom: 1px solid #333; }
.browser-controls i { color: #777; margin-right: 5px; font-size: 0.9rem; }
.url-input { background: #111; border: 1px solid #444; color: #aaa; padding: 5px 15px; border-radius: 20px; width: 100%; font-size: 0.85rem; font-family: sans-serif; }
/* The Fake Website Inside */
.web-content { height: 100%; background: #0f0f0f; color: #ccc; overflow-y: auto; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
.web-nav { background: #161b22; padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #30363d; position: sticky; top: 0; }
.logo { font-weight: bold; color: white; font-size: 1.1rem; }
.nav-links span { margin-left: 20px; cursor: pointer; font-size: 0.9rem; color: #8b949e; transition: 0.2s; }
.nav-links span:hover { color: #58a6ff; }
.nav-links span.active { color: #58a6ff; font-weight: bold; }
.web-page { padding: 40px; display: none; animation: fadeIn 0.3s; }
.web-page.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
/* Profile Section */
.profile-header { text-align: center; margin-bottom: 40px; }
.profile-pic { width: 120px; height: 120px; border-radius: 50%; border: 4px solid #58a6ff; margin-bottom: 15px; }
.hero-title { font-size: 2rem; color: white; margin: 0; }
.hero-sub { color: #8b949e; margin-top: 5px; }
/* Skill Cards */
.skill-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 15px; margin-top: 20px; }
.skill-card { background: #161b22; padding: 15px; border-radius: 8px; text-align: center; border: 1px solid #30363d; }
.skill-card i { font-size: 2rem; margin-bottom: 10px; color: #58a6ff; }
/* Project List */
.project-item { background: #161b22; padding: 20px; margin-bottom: 15px; border-radius: 8px; border-left: 4px solid #bc8cff; }
.project-item h3 { margin: 0 0 5px 0; color: white; }
.tag { background: #21262d; padding: 2px 8px; border-radius: 4px; font-size: 0.75rem; color: #8b949e; margin-right: 5px; }
/* --- APP: TERMINAL --- */
.term-bg { background-color: #0c0c0c; padding: 10px; font-family: 'Fira Code', monospace; color: #00ff41; height: 100%; box-sizing: border-box; font-size: 0.95rem; cursor: text; }
#cmd-input { background: transparent; border: none; color: white; font-family: 'Fira Code', monospace; font-size: 0.95rem; flex-grow: 1; outline: none; }
/* --- APP: FILE MANAGER --- */
.fm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 15px; padding: 20px; }
.fm-item { text-align: center; cursor: pointer; padding: 10px; border-radius: 5px; }
.fm-item i { font-size: 2rem; margin-bottom: 5px; display: block; }
.fm-item:hover { background: rgba(255, 255, 255, 0.05); }
/* --- NOTIFICATION TOAST --- */
.notification-toast {
position: fixed; bottom: 60px; right: -350px; width: 300px;
background: rgba(20, 20, 20, 0.95); border-left: 5px solid #00ff41;
padding: 15px; border-radius: 4px; box-shadow: 0 5px 20px rgba(0,0,0,0.5);
transition: right 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); z-index: 10000;
display: flex; gap: 15px; align-items: center; backdrop-filter: blur(5px);
}
.notification-toast.show { right: 20px; }
.notif-close { position: absolute; top: 10px; right: 10px; cursor: pointer; color: #666; }
/* --- CTF POPUP --- */
.ctf-alert {
position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
background: black; border: 2px solid #00ff41; color: #00ff41;
padding: 40px; text-align: center; font-family: 'Fira Code'; font-size: 1.5rem;
z-index: 100000; display: none; box-shadow: 0 0 50px #00ff41;
}
/* --- TASKBAR --- */
.taskbar {
position: fixed; bottom: 0; left: 0; width: 100%; background: rgba(10, 10, 10, 0.95);
height: 40px; display: flex; justify-content: space-between; align-items: center;
padding: 0 15px; box-sizing: border-box; z-index: 9999; border-top: 1px solid #333;
}
</style>
</head>
<body>
<audio id="alert-sound" src="https://assets.mixkit.co/sfx/preview/mixkit-sci-fi-system-check-point-961.mp3"></audio>
<div id="toast" class="notification-toast">
<div class="notif-close" onclick="hideToast()">✕</div>
<div style="color: #00ff41; font-size: 1.5rem;"><i class="fas fa-shield-alt"></i></div>
<div>
<h4 style="margin:0; color:white;">Security Alert</h4>
<p style="margin:5px 0 0; font-size:0.8rem; color:#ccc;">Encrypted data detected in <b>/docs</b>.</p>
</div>
</div>
<canvas id="matrix-canvas"></canvas>
<div id="ctf-popup" class="ctf-alert">
<h1>ACCESS GRANTED</h1>
<p>Flag: CTF{ALBERTO_IS_ROOT}</p>
<button onclick="location.reload()" style="background:#00ff41; color:black; border:none; padding:10px 20px; cursor:pointer; font-weight:bold;">REBOOT SYSTEM</button>
</div>
<div class="desktop">
<div class="icon" onclick="openWindow('browser')"><i class="fab fa-chrome ico-browser"></i><span>Browser</span></div>
<div class="icon" onclick="openWindow('terminal')"><i class="fas fa-terminal ico-term"></i><span>Terminal</span></div>
<div class="icon" onclick="openWindow('fileManager')"><i class="fas fa-folder-open ico-folder"></i><span>Files</span></div>
<div class="icon" onclick="openWindow('discord')"><i class="fab fa-discord ico-discord"></i><span>Discord</span></div>
</div>
<div id="browser" class="window" style="top: 10%; left: 15%; width: 800px; height: 500px;">
<div class="window-header" onmousedown="dragMouseDown(event, 'browser')">
<span>Chromium Web Browser</span>
<div class="controls"><div class="dot close-btn" onclick="closeWindow('browser')"></div></div>
</div>
<div class="window-body" style="background: #1e1e1e; display: flex; flex-direction: column;">
<div class="browser-bar">
<div class="browser-controls"><i class="fas fa-arrow-left"></i> <i class="fas fa-arrow-right"></i> <i class="fas fa-redo"></i></div>
<input type="text" class="url-input" value="https://alberto-drake.dev" readonly>
</div>
<div class="web-content">
<div class="web-nav">
<div class="logo">ALBERTO.DEV</div>
<div class="nav-links">
<span onclick="navWeb('home')" id="nav-home" class="active">Home</span>
<span onclick="navWeb('projects')" id="nav-projects">Projects</span>
<span onclick="navWeb('contact')" id="nav-contact">Contact</span>
</div>
</div>
<div id="page-home" class="web-page active">
<div class="profile-header">
<img src="https://github.com/albertodrake.png" class="profile-pic">
<h1 class="hero-title">Alberto Drake</h1>
<p class="hero-sub">Ethical Hacker | Full Stack Developer</p>
</div>
<h3 style="border-bottom: 1px solid #333; padding-bottom: 10px;">Tech Stack</h3>
<div class="skill-grid">
<div class="skill-card"><i class="fab fa-python"></i><br>Python</div>
<div class="skill-card"><i class="fab fa-java"></i><br>Java</div>
<div class="skill-card"><i class="fas fa-code"></i><br>C++</div>
<div class="skill-card"><i class="fab fa-js"></i><br>JavaScript</div>
<div class="skill-card"><i class="fab fa-linux"></i><br>Kali Linux</div>
<div class="skill-card"><i class="fas fa-bug"></i><br>Metasploit</div>
</div>
</div>
<div id="page-projects" class="web-page">
<h2 style="margin-bottom: 20px;">My Projects</h2>
<div class="project-item">
<div style="display:flex; justify-content:space-between;">
<h3>Python Malware Scanner</h3>
<a href="https://github.com/albertodrake" target="_blank" style="color:#58a6ff"><i class="fas fa-external-link-alt"></i></a>
</div>
<p style="font-size:0.9rem; color:#aaa;">Static analysis tool for detecting signature-based malware.</p>
<div><span class="tag">Python</span><span class="tag">Security</span></div>
</div>
<div class="project-item" style="border-left-color: #27c93f;">
<div style="display:flex; justify-content:space-between;">
<h3>Network Sniffer C++</h3>
<a href="https://github.com/albertodrake" target="_blank" style="color:#58a6ff"><i class="fas fa-external-link-alt"></i></a>
</div>
<p style="font-size:0.9rem; color:#aaa;">Low-level packet analyzer for local traffic monitoring.</p>
<div><span class="tag">C++</span><span class="tag">Networking</span></div>
</div>
<div class="project-item" style="border-left-color: #ff5f56;">
<div style="display:flex; justify-content:space-between;">
<h3>Secure Chat App</h3>
<a href="https://github.com/albertodrake" target="_blank" style="color:#58a6ff"><i class="fas fa-external-link-alt"></i></a>
</div>
<p style="font-size:0.9rem; color:#aaa;">End-to-End encrypted messaging system using Node.js.</p>
<div><span class="tag">Node.js</span><span class="tag">Crypto</span></div>
</div>
</div>
<div id="page-contact" class="web-page">
<h2>Get In Touch</h2>
<p style="color:#aaa;">You can reach me via Discord or check my code on GitHub.</p>
<div style="display: flex; gap: 15px; margin-top: 20px;">
<a href="https://discord.com/users/809729227964284959" target="_blank" style="background:#5865F2; padding: 15px 30px; color:white; text-decoration:none; border-radius:5px; font-weight:bold;">
<i class="fab fa-discord"></i> Discord
</a>
<a href="https://github.com/albertodrake" target="_blank" style="background:#333; padding: 15px 30px; color:white; text-decoration:none; border-radius:5px; font-weight:bold;">
<i class="fab fa-github"></i> GitHub
</a>
</div>
</div>
</div>
</div>
</div>
<div id="fileManager" class="window" style="top: 15%; left: 20%; width: 500px; height: 350px;">
<div class="window-header" onmousedown="dragMouseDown(event, 'fileManager')">
<span>/home/alberto/docs</span>
<div class="controls"><div class="dot close-btn" onclick="closeWindow('fileManager')"></div></div>
</div>
<div class="window-body" style="background: #252526;">
<div class="fm-grid" id="fm-grid"></div>
</div>
</div>
<div id="terminal" class="window" style="top: 25%; left: 25%; width: 600px; height: 400px;">
<div class="window-header" onmousedown="dragMouseDown(event, 'terminal')">
<span>root@kali: ~</span>
<div class="controls"><div class="dot close-btn" onclick="closeWindow('terminal')"></div></div>
</div>
<div class="window-body term-bg" onclick="document.getElementById('cmd-input').focus()">
<div id="term-output" style="white-space: pre-wrap; margin-bottom: 10px;">Kali GNU/Linux Rolling<br>Type 'help' for commands.</div>
<div style="display: flex;">
<span style="color: #58a6ff; margin-right: 8px;">root@kali:~#</span>
<input type="text" id="cmd-input" autocomplete="off">
</div>
</div>
</div>
<div id="discord" class="window" style="top: 20%; left: 55%; width: 320px; height: 380px;">
<div class="window-header" onmousedown="dragMouseDown(event, 'discord')">
<span>Discord</span>
<div class="controls"><div class="dot close-btn" onclick="closeWindow('discord')"></div></div>
</div>
<div class="window-body" style="background:#36393f; text-align:center; padding:30px; color:white;">
<img src="https://github.com/albertodrake.png" style="width:100px; border-radius:50%; border:4px solid #2f3136;">
<h2>Alberto Drake</h2>
<p style="color:#ccc;">Full Stack Dev</p>
<div style="margin-top:20px; background:#2f3136; padding:10px; border-radius:5px; font-family:'Fira Code'; font-size:0.8rem;">
<span style="color:#7289da; font-weight:bold;">ID: 809729227964284959</span>
</div>
<a href="https://discord.com/users/809729227964284959" target="_blank" style="background:#5865F2; padding:10px 20px; color:white; text-decoration:none; border-radius:5px; font-weight:bold; display:inline-block; margin-top:20px;">Profile</a>
</div>
</div>
<div id="notepad" class="window" style="top: 15%; left: 30%; width: 400px; height: 300px;">
<div class="window-header" onmousedown="dragMouseDown(event, 'notepad')">
<span id="note-title">Text Editor</span>
<div class="controls"><div class="dot close-btn" onclick="closeWindow('notepad')"></div></div>
</div>
<div class="window-body"><textarea id="note-content" style="width:100%; height:100%; background:#1e1e1e; color:white; border:none; padding:15px; resize:none; outline:none;"></textarea></div>
</div>
<div class="taskbar">
<div style="font-weight: bold; color: #58a6ff; display: flex; align-items: center; gap: 10px;">
<i class="fab fa-linux" style="font-size: 1.2rem;"></i> Menu
</div>
<div id="clock" style="color: white; font-size: 0.85rem;">12:00 PM</div>
</div>
<script>
// --- BROWSER NAVIGATION LOGIC (NEW!) ---
function navWeb(pageId) {
// Hide all pages
document.querySelectorAll('.web-page').forEach(p => p.classList.remove('active'));
document.querySelectorAll('.nav-links span').forEach(s => s.classList.remove('active'));
// Show selected page
document.getElementById('page-' + pageId).classList.add('active');
document.getElementById('nav-' + pageId).classList.add('active');
}
// --- NOTIFICATION & SOUND ---
window.onload = function() {
setTimeout(() => { showToast(); }, 5000);
};
function showToast() {
document.getElementById('alert-sound').volume = 0.5;
document.getElementById('alert-sound').play().catch(() => {});
document.getElementById('toast').classList.add('show');
setTimeout(() => { hideToast(); }, 8000);
}
function hideToast() { document.getElementById('toast').classList.remove('show'); }
// --- FILES & CTF ---
const fileSystem = {
"mission_brief.txt": "MISSION: Gain ROOT access.\n\nEncrypted file: 'root_access.enc'.\nDecrypt with Admin ID (Found in Discord).\nCMD: 'decrypt root_access.enc'",
"root_access.enc": "ENCRYPTED_DATA_BLOB_X99"
};
const SECRET_PASS = "809729227964284959";
// --- WINDOW MANAGER ---
let zIndex = 50;
function openWindow(id) {
const win = document.getElementById(id); win.style.display = "flex"; win.style.zIndex = ++zIndex;
if(id === 'fileManager') renderFiles();
if(id === 'terminal') document.getElementById('cmd-input').focus();
}
function closeWindow(id) { document.getElementById(id).style.display = "none"; }
// --- FILE MANAGER ---
function renderFiles() {
const grid = document.getElementById('fm-grid'); grid.innerHTML = "";
for (const [name, content] of Object.entries(fileSystem)) {
const item = document.createElement('div'); item.className = 'fm-item';
let icon = name.endsWith('.enc') ? 'fa-file-shield' : 'fa-file-alt';
let color = name.endsWith('.enc') ? '#ff5f56' : 'white';
item.innerHTML = `<i class="fas ${icon}" style="color:${color}"></i><span>${name}</span>`;
item.onclick = () => {
if(name.endsWith('.enc')) alert("File Encrypted! Use terminal.");
else {
document.getElementById('note-title').innerText = name;
document.getElementById('note-content').value = content;
openWindow('notepad');
}
};
grid.appendChild(item);
}
}
// --- TERMINAL ---
const cmdInput = document.getElementById('cmd-input');
const termOutput = document.getElementById('term-output');
let awaitingPass = false;
cmdInput.addEventListener('keydown', function(e) {
if (e.key === 'Enter') {
const val = this.value.trim();
printTerm(awaitingPass ? "********" : `root@kali:~# ${val}`);
if (awaitingPass) {
if (val === SECRET_PASS) {
printTerm("ACCESS GRANTED. SYSTEM UNLOCKED.");
setTimeout(triggerMatrix, 1000);
} else {
printTerm("ACCESS DENIED.");
awaitingPass = false;
}
} else {
const args = val.split(' ');
const cmd = args[0].toLowerCase();
if (cmd === 'help') printTerm("Commands: ls, cat, decrypt, whoami, clear");
else if (cmd === 'ls') printTerm(Object.keys(fileSystem).join(' '));
else if (cmd === 'cat') {
if(fileSystem[args[1]]) printTerm(fileSystem[args[1]]);
else printTerm("File not found.");
}
else if (cmd === 'decrypt') {
if(args[1] === 'root_access.enc') {
printTerm("ENTER PASSCODE (Admin ID):");
awaitingPass = true;
} else printTerm("Usage: decrypt root_access.enc");
}
else if (cmd === 'clear') termOutput.innerHTML = "";
else if (cmd === 'whoami') printTerm("root");
else if (val !== '') printTerm("Command not found.");
}
this.value = "";
document.querySelector('.term-bg').scrollTop = document.querySelector('.term-bg').scrollHeight;
}
});
function printTerm(txt) { termOutput.innerHTML += txt + "\n"; }
// --- MATRIX ---
function triggerMatrix() {
document.getElementById('matrix-canvas').style.display = 'block';
document.getElementById('ctf-popup').style.display = 'block';
startMatrix();
}
function startMatrix() {
const canvas = document.getElementById('matrix-canvas');
const ctx = canvas.getContext('2d');
canvas.width = window.innerWidth; canvas.height = window.innerHeight;
const katakana = '0123456789ABCDEF';
const drops = Array(Math.floor(canvas.width / 20)).fill(1);
setInterval(() => {
ctx.fillStyle = 'rgba(0, 0, 0, 0.05)'; ctx.fillRect(0, 0, canvas.width, canvas.height);
ctx.fillStyle = '#0F0'; ctx.font = '20px monospace';
for (let i = 0; i < drops.length; i++) {
const text = katakana.charAt(Math.floor(Math.random() * katakana.length));
ctx.fillText(text, i * 20, drops[i] * 20);
if (drops[i] * 20 > canvas.height && Math.random() > 0.975) drops[i] = 0;
drops[i]++;
}
}, 30);
}
// --- DRAG LOGIC ---
function dragMouseDown(e, id) {
e = e || window.event; e.preventDefault();
const elmnt = document.getElementById(id); elmnt.style.zIndex = ++zIndex;
let pos3 = e.clientX; let pos4 = e.clientY;
document.onmouseup = closeDragElement; document.onmousemove = elementDrag;
function elementDrag(e) {
e = e || window.event; e.preventDefault();
elmnt.style.top = (elmnt.offsetTop - (pos4 - e.clientY)) + "px";
elmnt.style.left = (elmnt.offsetLeft - (pos3 - e.clientX)) + "px";
pos3 = e.clientX; pos4 = e.clientY;
}
function closeDragElement() { document.onmouseup = null; document.onmousemove = null; }
}
setInterval(() => { document.getElementById('clock').innerText = new Date().toLocaleTimeString(); }, 1000);
</script>
</body>
</html>