-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
340 lines (313 loc) · 16.3 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
<!DOCTYPE html>
<html lang="en" dir="auto">
<head>
<meta name="generator" content="Hugo 0.92.2" /><meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="robots" content="index, follow">
<title>Luhko</title>
<meta name="description" content="">
<meta name="author" content="">
<link rel="canonical" href="https://luhko.github.io/">
<link crossorigin="anonymous" href="/assets/css/stylesheet.d7fb4cbf980fe688a21621b06a795933c4e6bb2d4070ec940667af1715d84af2.css" integrity="sha256-1/tMv5gP5oiiFiGwanlZM8Tmuy1AcOyUBmevFxXYSvI=" rel="preload stylesheet" as="style">
<link rel="icon" href="https://luhko.github.io/favicon.ico">
<link rel="icon" type="image/png" sizes="16x16" href="https://luhko.github.io/favicon-16x16.png">
<link rel="icon" type="image/png" sizes="32x32" href="https://luhko.github.io/favicon-32x32.png">
<link rel="apple-touch-icon" href="https://luhko.github.io/apple-touch-icon.png">
<link rel="mask-icon" href="https://luhko.github.io/safari-pinned-tab.svg">
<meta name="theme-color" content="#2e2e33">
<meta name="msapplication-TileColor" content="#2e2e33">
<noscript>
<style>
#theme-toggle,
.top-link {
display: none;
}
</style>
<style>
@media (prefers-color-scheme: dark) {
:root {
--theme: rgb(29, 30, 32);
--entry: rgb(46, 46, 51);
--primary: rgb(218, 218, 219);
--secondary: rgb(155, 156, 157);
--tertiary: rgb(65, 66, 68);
--content: rgb(196, 196, 197);
--hljs-bg: rgb(46, 46, 51);
--code-bg: rgb(55, 56, 62);
--border: rgb(51, 51, 51);
}
.list {
background: var(--theme);
}
.list:not(.dark)::-webkit-scrollbar-track {
background: 0 0;
}
.list:not(.dark)::-webkit-scrollbar-thumb {
border-color: var(--theme);
}
}
</style>
</noscript><meta property="og:title" content="Luhko" />
<meta property="og:description" content="" />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://luhko.github.io/" />
<meta name="twitter:card" content="summary"/>
<meta name="twitter:title" content="Luhko"/>
<meta name="twitter:description" content=""/>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Organization",
"name": "Luhko",
"url": "https://luhko.github.io/",
"description": "",
"thumbnailUrl": "https://luhko.github.io/favicon.ico",
"sameAs": [
"https://github.com/luhko", "https://twitter.com/lukhooo", "https://www.root-me.org/Luhko"
]
}
</script>
</head>
<body class="list" id="top">
<script>
if (localStorage.getItem("pref-theme") === "dark") {
document.body.classList.add('dark');
} else if (localStorage.getItem("pref-theme") === "light") {
document.body.classList.remove('dark')
} else if (window.matchMedia('(prefers-color-scheme: dark)').matches) {
document.body.classList.add('dark');
}
</script>
<header class="header">
<nav class="nav">
<div class="logo">
<a href="https://luhko.github.io/" accesskey="h" title="Luhko (Alt + H)">Luhko</a>
<div class="logo-switches">
<button id="theme-toggle" accesskey="t" title="(Alt + T)">
<svg id="moon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"
fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"
stroke-linejoin="round">
<path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"></path>
</svg>
<svg id="sun" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"
fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"
stroke-linejoin="round">
<circle cx="12" cy="12" r="5"></circle>
<line x1="12" y1="1" x2="12" y2="3"></line>
<line x1="12" y1="21" x2="12" y2="23"></line>
<line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line>
<line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line>
<line x1="1" y1="12" x2="3" y2="12"></line>
<line x1="21" y1="12" x2="23" y2="12"></line>
<line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line>
<line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line>
</svg>
</button>
</div>
</div>
<ul id="menu">
<li>
<a href="https://luhko.github.io/articles" title="Articles">
<span>Articles</span>
</a>
</li>
<li>
<a href="https://luhko.github.io/write-up" title="Write-Up">
<span>Write-Up</span>
</a>
</li>
</ul>
</nav>
</header>
<main class="main">
<article class="first-entry home-info">
<header class="entry-header">
<h1>Hi :)</h1>
</header>
<div class="entry-content">
My name is Luhko, and this is my website. You’ll find articles, mostly about forensics, and CTF write-up!
</div>
<footer class="entry-footer">
<div class="social-icons">
<a href="https://github.com/luhko" target="_blank" rel="noopener noreferrer me" title="Github">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"
stroke-linecap="round" stroke-linejoin="round">
<path
d="M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22">
</path>
</svg>
</a>
<a href="https://twitter.com/lukhooo" target="_blank" rel="noopener noreferrer me" title="Twitter">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"
stroke-linecap="round" stroke-linejoin="round">
<path
d="M23 3a10.9 10.9 0 0 1-3.14 1.53 4.48 4.48 0 0 0-7.86 3v1A10.66 10.66 0 0 1 3 4s-4 9 5 13a11.64 11.64 0 0 1-7 2c9 5 20 0 20-11.5a4.5 4.5 0 0 0-.08-.83A7.72 7.72 0 0 0 23 3z">
</path>
</svg>
</a>
<a href="https://www.root-me.org/Luhko" target="_blank" rel="noopener noreferrer me" title="Root-Me">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"
stroke-linecap="round" stroke-linejoin="round">
<path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path>
<path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path>
</svg>
</a>
</div>
</footer>
</article>
<article class="post-entry">
<header class="entry-header">
<h2>Surreaction - StarHackademINT 2023
</h2>
</header>
<div class="entry-content">
<p>Introduction This post is about an interesting forensic challenge that I solved during the StarHackademINT 2023 CTF. We were given a Quarantine folder coming from Windows Defender, and we had to find back the original filename on the internet.
The structure of the given folder looks like this:
Quarantine ├── Entries │ └── {80059732-0000-0000-6667-EF3396D235E7} ├── ResourceData │ └── 9F │ └── 9F598F562DDCFB69FA21A077BAD87F01A3F6258E └── Resources └── 9F └── 9F598F562DDCFB69FA21A077BAD87F01A3F6258E If we look on the internet, we can find some blog post that gives a lot of useful information on how to get the original files back....</p>
</div>
<footer class="entry-footer"><span title='2023-09-14 23:44:49 +0200 CEST'>September 14, 2023</span> · 4 min</footer>
<a class="entry-link" aria-label="post link to Surreaction - StarHackademINT 2023" href="https://luhko.github.io/write-up/surreaction/"></a>
</article>
<article class="post-entry">
<header class="entry-header">
<h2>404 CTF 2023
</h2>
</header>
<div class="entry-content">
<p>Pwn La cohue Let’s perform a checksec on the binary:
$ checksec la_cohue [*] './la_cohue' Arch: amd64-64-little RELRO: Full RELRO Stack: Canary found NX: NX enabled **PIE: No PIE (0x400000)** We can see that a canary is set, but no PIE.
Looking at the decompiled code below, we can identify that:
Once we have used option 1, we cannot use it anymore (no more user input, because of a boolean flag set to true) Once we have used option 2, we cannot use it anymore (no more user input, because of a boolean flag set to true) Our goal is to call the function canary() which is unreachable to get the flag....</p>
</div>
<footer class="entry-footer"><span title='2023-06-04 21:44:49 +0200 CEST'>June 4, 2023</span> · 14 min</footer>
<a class="entry-link" aria-label="post link to 404 CTF 2023" href="https://luhko.github.io/write-up/404ctf2023/"></a>
</article>
<article class="post-entry">
<header class="entry-header">
<h2>Pwnme CTF 2023
</h2>
</header>
<div class="entry-content">
<p>Forensics kNock kNock The challenge is about a compromised .deb file. We just need to extract it:
$ file MalPack.deb MalPack.deb: Debian binary package (format 2.0), with control.tar.xz, data compression xz $ ar x MalPack.deb We have a file named data.tar.xz, which contains a script with the flag:
#!/bin/bash echo "PWNME{P4ck4g3_1s_g00d_ID}" Silver The file was an iso flashdrive. The challenge anme is “Silver” which is reference to ‣, a C2 written in go (good point, the challenge is about a C2)....</p>
</div>
<footer class="entry-footer"><span title='2023-05-13 23:44:49 +0200 CEST'>May 13, 2023</span> · 4 min</footer>
<a class="entry-link" aria-label="post link to Pwnme CTF 2023" href="https://luhko.github.io/write-up/pwnme2023/"></a>
</article>
<article class="post-entry">
<header class="entry-header">
<h2>Digital Overdose 2022 Autumn CTF
</h2>
</header>
<div class="entry-content">
<p>Cryptography Lightning Seeds We have this encryption script:
#!/usr/bin/env python3 import random with open('flag.txt', 'r') as f: flag = f.read() seed = random.randint(0,999) random.seed(seed) encrypted = ''.join(f'{(ord(c) ^ random.randint(0,255)):02x}' for c in flag) with open('out.txt', 'w') as f: f.write(encrypted) # encrypted flag :4fcbac835550403f13c4cc337d8d8da48351921dfb7cd47d33857432c2ee665d821227 The problem here is the generation of the seed: only 1000 different values are possible. It will result in a weak encryption with only 1000 different keys:...</p>
</div>
<footer class="entry-footer"><span title='2022-11-20 23:43:49 +0200 +0200'>November 20, 2022</span> · 6 min</footer>
<a class="entry-link" aria-label="post link to Digital Overdose 2022 Autumn CTF" href="https://luhko.github.io/write-up/digitaloverdose/"></a>
</article>
<article class="post-entry">
<header class="entry-header">
<h2>Pwnme CTF
</h2>
</header>
<div class="entry-content">
<p>Geoint Les vacances au chateau We were given a castle image and we need to find its name. No data are inside the exif:
$ exiftool FirstPart.png ExifTool Version Number : 11.88 File Name : FirstPart.png Directory : . File Size : 688 kB File Modification Date/Time : 2022:07:01 22:44:37+02:00 File Access Date/Time : 2022:07:01 23:26:07+02:00 File Inode Change Date/Time : 2022:07:01 23:28:22+02:00 File Permissions : rwxrwxrwx File Type : PNG File Type Extension : png MIME Type : image/png Image Width : 912 Image Height : 409 Bit Depth : 8 Gamma : 2....</p>
</div>
<footer class="entry-footer"><span title='2022-07-04 23:44:49 +0200 CEST'>July 4, 2022</span> · 3 min</footer>
<a class="entry-link" aria-label="post link to Pwnme CTF" href="https://luhko.github.io/write-up/pwnme/"></a>
</article>
<article class="post-entry">
<header class="entry-header">
<h2>404 CTF 2022
</h2>
</header>
<div class="entry-content">
<p>Forensics Ransomware 1 We were given a big pcapng file. I struggled at the beggining because at first, I couldn’t see anything interessting:
There are only ARP (0.1%) and TCP (99.9%) packet Every TCP packet have the same size There are only 2 IP and 2 mac addresses TCP packet does not contains any payload So I tried to look at the parameters of the TCP packet. Something caught my attention : there are way too much flags in the TCP packets!...</p>
</div>
<footer class="entry-footer"><span title='2022-06-11 23:44:49 +0200 CEST'>June 11, 2022</span> · 6 min</footer>
<a class="entry-link" aria-label="post link to 404 CTF 2022" href="https://luhko.github.io/write-up/404ctf/"></a>
</article>
<article class="post-entry">
<header class="entry-header">
<h2>Cyber Apocalypse CTF 2022
</h2>
</header>
<div class="entry-content">
<p>Forensics Pupeteer We have a bunch of log files. I tried to parse it using EvtxEcmd or Logviewplus but there was too much data. So I tried to focus on Powershell logs :
Powershell Powershell Operational Powershell Admin (empty) In the powershell logs, there is nothing really interesting but a suspicious filename special_orders.ps1.
In the Powershell Operational, we can find this suspicious script (regarding the variables name) :...</p>
</div>
<footer class="entry-footer"><span title='2022-05-19 23:44:49 +0200 CEST'>May 19, 2022</span> · 6 min</footer>
<a class="entry-link" aria-label="post link to Cyber Apocalypse CTF 2022" href="https://luhko.github.io/write-up/cyber2022/"></a>
</article>
</main>
<footer class="footer">
<span>© 2023 <a href="https://luhko.github.io/">Luhko</a></span>
<span>
Powered by
<a href="https://gohugo.io/" rel="noopener noreferrer" target="_blank">Hugo</a> &
<a href="https://github.com/adityatelange/hugo-PaperMod/" rel="noopener" target="_blank">PaperMod</a>
</span>
</footer>
<a href="#top" aria-label="go to top" title="Go to Top (Alt + G)" class="top-link" id="top-link" accesskey="g">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 6" fill="currentColor">
<path d="M12 6H0l6-6z" />
</svg>
</a>
<script>
let menu = document.getElementById('menu')
if (menu) {
menu.scrollLeft = localStorage.getItem("menu-scroll-position");
menu.onscroll = function () {
localStorage.setItem("menu-scroll-position", menu.scrollLeft);
}
}
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
anchor.addEventListener("click", function (e) {
e.preventDefault();
var id = this.getAttribute("href").substr(1);
if (!window.matchMedia('(prefers-reduced-motion: reduce)').matches) {
document.querySelector(`[id='${decodeURIComponent(id)}']`).scrollIntoView({
behavior: "smooth"
});
} else {
document.querySelector(`[id='${decodeURIComponent(id)}']`).scrollIntoView();
}
if (id === "top") {
history.replaceState(null, null, " ");
} else {
history.pushState(null, null, `#${id}`);
}
});
});
</script>
<script>
var mybutton = document.getElementById("top-link");
window.onscroll = function () {
if (document.body.scrollTop > 800 || document.documentElement.scrollTop > 800) {
mybutton.style.visibility = "visible";
mybutton.style.opacity = "1";
} else {
mybutton.style.visibility = "hidden";
mybutton.style.opacity = "0";
}
};
</script>
<script>
document.getElementById("theme-toggle").addEventListener("click", () => {
if (document.body.className.includes("dark")) {
document.body.classList.remove('dark');
localStorage.setItem("pref-theme", 'light');
} else {
document.body.classList.add('dark');
localStorage.setItem("pref-theme", 'dark');
}
})
</script>
</body>
</html>