-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
427 lines (370 loc) · 16.1 KB
/
index.html
File metadata and controls
427 lines (370 loc) · 16.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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Hexicon Archives - Write-ups for Hack The Box machines, Sherlocks, and other cybersecurity experiments." />
<link rel="canonical" href="https://hexphased.github.io/hexicon-archives/" />
<meta name="robots" content="index, follow" />
<title>Hexicon Archives</title>
<link rel="stylesheet" href="style.css">
<link rel="icon" type="image/x-icon" href="favicon.png">
<style>
.main-categories {
display: flex;
flex-wrap: wrap;
gap: 20px;
justify-content: center;
margin-top: 40px;
margin-bottom: 50px;
}
.category-card {
width: 300px;
background-color: var(--card-bg);
border-radius: 8px;
overflow: hidden;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
transition: transform 0.3s ease, box-shadow 0.3s ease;
cursor: pointer;
}
.category-card:hover {
transform: translateY(-5px);
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}
.category-image {
height: 150px;
overflow: hidden;
position: relative;
}
.category-image img {
width: 100%;
height: 100%;
object-fit: cover;
}
.category-content {
padding: 20px;
}
.category-title {
color: var(--primary-green);
margin-top: 0;
margin-bottom: 10px;
font-size: 1.5rem;
}
.category-description {
color: #ccc;
margin-bottom: 20px;
}
.welcome-section {
text-align: center;
max-width: 800px;
margin: 40px auto;
padding: 20px;
}
.welcome-title {
color: var(--primary-green);
font-size: 2.5rem;
margin-bottom: 20px;
text-shadow: 0 0 10px rgba(159, 239, 0, 0.5);
}
.welcome-text {
color: #ccc;
font-size: 1.1rem;
line-height: 1.6;
}
.recent-content {
margin-top: 30px;
margin-bottom: 50px;
}
.recent-content .section-title {
border-bottom: 2px solid #00ff00;
padding-bottom: 10px;
margin-top: 40px;
margin-bottom: 20px;
}
.cards-container {
display: flex;
flex-wrap: wrap;
gap: 20px;
justify-content: flex-start;
}
/* Card styles (if not already defined in your main CSS) */
.card {
width: calc(33.333% - 14px);
min-width: 280px;
background-color: var(--card-bg);
border-radius: 8px;
overflow: hidden;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
transition: transform 0.3s ease, box-shadow 0.3s ease;
cursor: pointer;
position: relative;
}
@media (max-width: 992px) {
.card {
width: calc(50% - 10px);
}
}
@media (max-width: 768px) {
.card {
width: 100%;
}
}
.card:hover {
transform: translateY(-5px);
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}
/* Difficulty tag styles */
.easy-card-tag, .medium-card-tag, .hard-card-tag, .insane-card-tag, .very-easy-card-tag {
position: absolute;
top: 10px;
right: 10px;
padding: 5px 10px;
border-radius: 4px;
font-weight: bold;
font-size: 12px;
z-index: 2;
}
.very-easy-card-tag {
background-color: var(--very-easy-purple);
color: #000;
}
.easy-card-tag {
background-color: var(--easy-green);
color: #000;
}
.medium-card-tag {
background-color: var(--medium-yellow);
color: #000;
}
.hard-card-tag {
background-color: var(--hard-red);
color: #fff;
}
.insane-card-tag {
background-color: var(--silver-insane);
color: #000;
}
</style>
</head>
<body>
<header>
<div class="container header-content">
<p class="logo">Hexicon Archives</p>
<div class="header-controls">
<a href="index.html" class="htb-icon" title="Home">
<img src="favicon.png" alt="Archive" width="30" height="30">
</a>
</div>
</div>
</header>
<div class="sidebar">
<div class="nav-links">
<a href="machines.html">Machines</a>
<a href="sherlocks.html">Sherlocks</a>
<a href="#about">About</a>
<a href="#contact">Contact</a>
</div>
</div>
<div class="backdrop"></div>
<main class="container-small">
<div class="welcome-section">
<h1 class="welcome-title">Welcome to Hexicon Archives</h1>
<p class="welcome-text">
Your hub for cybersecurity write-ups, tutorials, and experiments. Explore my solutions to HackTheBox machines,
Sherlock investigations, and other security challenges. Whether you're starting out or an experienced
professional, there's something here for everyone interested in ethical hacking and security.
</p>
</div>
<div class="main-categories">
<div class="category-card" onclick="window.location.href='machines.html'">
<div class="category-image">
<img src="images/machines-cat.png" alt="HackTheBox Machines" onerror="this.src='images/placeholder.png'">
</div>
<div class="category-content">
<h3 class="category-title">HackTheBox Machines</h3>
<p class="category-description">
Solutions and walkthroughs for HackTheBox machine challenges, organized by difficulty.
</p>
</div>
</div>
<div class="category-card" onclick="window.location.href='sherlocks.html'">
<div class="category-image">
<img src="images/sherlocks-cat.png" alt="HackTheBox Sherlocks" onerror="this.src='images/placeholder.png'">
</div>
<div class="category-content">
<h3 class="category-title">HackTheBox Sherlocks</h3>
<p class="category-description">
Solutions for HackTheBox Sherlock investigations focused on digital forensics and incident response.
</p>
</div>
</div>
<div class="category-card" onclick="window.location.href='ctfs.html'">
<div class="category-image">
<img src="images/CTF.png" alt="CTF Competitions" onerror="this.src='images/placeholder.png'">
</div>
<div class="category-content">
<h3 class="category-title">CTF Challenges</h3>
<p class="category-description">
Writeups of certain CTF challenges I competed in. This will not be updated regularly.
</p>
</div>
</div>
</div>
<div class="recent-content">
<h1 class="section-title">Latest Machine Writeups</h1>
<div class="cards-container" id="recent-machines">
<!-- Will be populated dynamically with 3 most recent machines -->
</div>
<h1 class="section-title">Latest Sherlock Writeups</h1>
<div class="cards-container" id="recent-sherlocks">
<!-- Will be populated dynamically with 3 most recent sherlocks -->
</div>
</div>
<div class="todo-container" id="about">
<h1 class="section-title">About</h1>
<div class="todo-card">
<h3 class="todo-title">Who Am I?</h3>
<div class="todo-list">
<div class="todo-item">
<span>I'm Hexicon, a cybersecurity enthusiast focused on ethical hacking, penetration testing, and digital forensics.</span>
</div>
<div class="todo-item">
<span>This site serves as my personal archive of security challenges I've completed, along with write-ups to help others learn.</span>
</div>
<div class="todo-item">
<span>My goal is to document my journey and provide explanations of various techniques and tools used in cybersecurity.</span>
</div>
</div>
</div>
</div>
<div class="todo-container" id="contact">
<h1 class="section-title">Contact</h1>
<div class="todo-card">
<h3 class="todo-title">Got any questions? Feel free to:</h3>
<div class="todo-list">
<div class="todo-item">
<a href="https://discord.com/users/123456789012345678" style="color: #00ff00; font-weight: bold;">Message me on discord</a>
</div>
<div class="todo-item">
<a href="mailto:hexicon.contact@gmail.com" style="color: #00ff00; font-weight: bold;">Send me an email</a>
</div>
</div>
</div>
</div>
</main>
<footer>
<div class="container">
<p>© 2026 Hexicon Archives | Created by Hexicon</p>
</div>
</footer>
<script>
// Function to create a card for a writeup (machine or sherlock)
function createWriteupCard(name, data, type) {
const card = document.createElement('div');
card.className = 'card';
card.onclick = () => window.location.href = `${type}/${name}.html`;
// Create difficulty tag
const difficultyTag = document.createElement('div');
difficultyTag.textContent = data.difficulty;
if (data.difficulty.toLowerCase() === 'veasy') {
difficultyTag.className = 'very-easy-card-tag';
} else if (data.difficulty.toLowerCase() === 'easy') {
difficultyTag.className = 'easy-card-tag';
} else if (data.difficulty.toLowerCase() === 'medium') {
difficultyTag.className = 'medium-card-tag';
} else if (data.difficulty.toLowerCase() === 'hard') {
difficultyTag.className = 'hard-card-tag';
} else if (data.difficulty.toLowerCase() === 'insane') {
difficultyTag.className = 'insane-card-tag';
}
card.appendChild(difficultyTag);
// Card image
const cardImage = document.createElement('div');
cardImage.className = 'card-image';
const img = document.createElement('img');
img.src = `images/${name}/thumbnail.png`;
img.onerror = () => img.src = 'images/placeholder.png';
cardImage.appendChild(img);
card.appendChild(cardImage);
// Card content
const cardContent = document.createElement('div');
cardContent.className = 'card-content';
const title = document.createElement('h3');
title.className = 'card-title';
title.textContent = data.title;
cardContent.appendChild(title);
const date = document.createElement('p');
date.style.fontSize = '12px';
date.style.marginBottom = '10px';
date.textContent = data.date;
cardContent.appendChild(date);
const description = document.createElement('p');
description.className = 'card-description';
description.textContent = data.description;
cardContent.appendChild(description);
card.appendChild(cardContent);
return card;
}
// Function to populate recent writeups
async function populateRecentWriteups() {
try {
// Fetch machine data
const machinesResponse = await fetch('machines.json');
if (!machinesResponse.ok) {
throw new Error('Failed to load machine data');
}
const machineData = await machinesResponse.json();
// Sort machines by date (newest first)
const sortedMachines = Object.entries(machineData)
.sort((a, b) => new Date(b[1].date) - new Date(a[1].date));
// Get the container for recent machines
const recentMachinesContainer = document.getElementById('recent-machines');
recentMachinesContainer.innerHTML = '';
// Add the 3 most recent machines
for (let i = 0; i < Math.min(3, sortedMachines.length); i++) {
const [machineName, data] = sortedMachines[i];
const card = createWriteupCard(machineName, data, 'machines');
recentMachinesContainer.appendChild(card);
}
// If no machines are available
if (sortedMachines.length === 0) {
recentMachinesContainer.innerHTML = '<p style="color: #ccc;">No machine writeups available yet.</p>';
}
// Fetch sherlock data
const sherlocksResponse = await fetch('sherlocks.json');
let sherlockData = {};
// Handle the case where sherlocks.json might not exist yet
if (sherlocksResponse.ok) {
sherlockData = await sherlocksResponse.json();
}
// Sort sherlocks by date (newest first)
const sortedSherlocks = Object.entries(sherlockData)
.sort((a, b) => new Date(b[1].date) - new Date(a[1].date));
// Get the container for recent sherlocks
const recentSherlocksContainer = document.getElementById('recent-sherlocks');
recentSherlocksContainer.innerHTML = '';
// Add the 3 most recent sherlocks
for (let i = 0; i < Math.min(3, sortedSherlocks.length); i++) {
const [sherlockName, data] = sortedSherlocks[i];
const card = createWriteupCard(sherlockName, data, 'sherlocks');
recentSherlocksContainer.appendChild(card);
}
// If no sherlocks are available
if (sortedSherlocks.length === 0) {
recentSherlocksContainer.innerHTML = '<p style="color: #ccc;">No sherlock writeups available yet.</p>';
}
} catch (error) {
console.error('Error loading recent writeups:', error);
document.getElementById('recent-machines').innerHTML =
`<p style="color: #ccc;">Error loading recent machine writeups: ${error.message}</p>`;
document.getElementById('recent-sherlocks').innerHTML =
`<p style="color: #ccc;">Error loading recent sherlock writeups: ${error.message}</p>`;
}
}
document.addEventListener('DOMContentLoaded', function() {
// Populate recent writeups
populateRecentWriteups();
});
</script>
</body>
</html>