[CTF Writeup / Rev] LA CTF 2024 - shattered-memories

[CTF Writeup / Rev] LA CTF 2024 - shattered-memories



안녕하세요. 이번 글에서는 LA CTF 2024에 출제된 Reversing 문제 shattered-memories의 writeup을 작성해보겠습니다.


문제 설명






I swear I knew what the flag was but I can't seem to remember it anymore... can you dig it out from my inner psyche?

문제 설명이고, 파일이 첨부되어 있습니다. 



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
$ strings shattered-memories
/lib64/ld-linux-x86-64.so.2
;l].Gv,
mgUa
fgets
stdin
puts
strlen
strcspn
__libc_start_main
__cxa_finalize
strncmp
libc.so.6
GLIBC_2.2.5
GLIBC_2.34
_ITM_deregisterTMCloneTable
__gmon_start__
_ITM_registerTMCloneTable
PTE1
u+UH
What was the flag again?
No, I definitely remember it being a different length...
t_what_f
t_means}
nd_forge
lactf{no
orgive_a
No, that definitely isn't it.
I'm pretty sure that isn't it.
I don't think that's it...
I think it's something like that but not quite...
There's something so slightly off but I can't quite put my finger on it...
Yes! That's it! That's the flag! I remember now!
...
cs


strings로 해당 파일의 문자열을 확인해보니, 플래그의 조각처럼 보이는 글자들이 있습니다.


t_what_f
t_means}
nd_forge
lactf{no
orgive_a


위 글자를 말이 되도록 조합해보면 플래그를 획득할 수 있습니다.


lactf{not_what_forgive_and_forget_means}



댓글