-
Notifications
You must be signed in to change notification settings - Fork 0
/
challenges.html
268 lines (212 loc) · 12.2 KB
/
challenges.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
<!DOCTYPE html>
<html class="tw-h-full">
<head>
<title>GPN CTF 2023</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="shortcut icon" href="/files/1bbd37dac7f20ebbdb0f9c1fca8d2eea/GPNCTF_32.png" type="image/x-icon">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Big+Shoulders+Stencil+Text:wght@100;200;300;400;500;600;700;800;900&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Caveat:wght@400;500;600;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="/themes/factory/static/assets/index.8c1acdef.css">
<!-- No formatting here, spaces between braces do not work -->
<script type="text/javascript">
window.init = {
'urlRoot': "",
'csrfNonce': "0ed885e9e7944f0f0d4753f5e92e61baa3d54d4dbe8b704269b8e85e16cedf7d",
'userMode': "teams",
'userId': 0,
'userName': null,
'userEmail': null,
'teamId': null,
'teamName': null,
'start': 1686304800,
'end': 1686434400,
'themeSettings': null,
'eventSounds': [
"/themes/core/static/sounds/notification.webm",
"/themes/core/static/sounds/notification.mp3",
],
'sseHost': "https://ctf.kitctf.de",
}
</script>
</head>
<body class="tw-relative tw-flex tw-flex-col tw-min-h-full tw-bg-slate-800 tw-text-slate-300 tw-border-slate-300">
<nav class="navbar navbar-expand-md navbar-dark tw-bg-slate-900 tw-sticky tw-top-0 tw-z-40 tw-w-full tw-py-2">
<div
class="container tw-mx-auto sm:tw-max-w-xl md:tw-max-w-3xl lg:tw-max-w-5xl xl:tw-max-w-6xl tw-flex tw-flex-wrap tw-justify-between tw-px-3">
<a href="/" class="navbar-brand tw-py-2 tw-mr-4">
<img class="img-responsive ctf_logo tw-h-[25px]" src="/files/d865f248f0512fb5397bedad4a025e5a/GPNCTF_dark_256.png"
alt="GPN CTF 2023" height="25">
</a>
<button class="navbar-toggler md:tw-hidden tw-text-slate-100 tw-p-2 tw-cursor-pointer" type="button"
data-bs-toggle="collapse" data-bs-target="#base-navbars" aria-controls="base-navbars" aria-expanded="false"
aria-label="Toggle navigation">
<span
class="navbar-toggler-icon tw-w-6 tw-h-6 tw-inline-block tw-align-middle [mask-image:url('/themes/flagtory/static/img/heroicons/solid/ellipsis-vertical.svg')] [mask-size:100%] tw-bg-slate-100"></span>
</button>
<div
class="collapse navbar-collapse md:!tw-flex md:!tw-basis-auto tw-basis-full tw-grow tw-items-center tw-text-slate-300"
id="base-navbars">
<ul class="navbar-nav me-auto tw-flex tw-flex-col md:tw-flex-row">
<li class="nav-item tw-py-2 md:tw-px-2">
<a class="nav-link" href="/users">Users</a>
</li>
<li class="nav-item tw-py-2 md:tw-px-2">
<a class="nav-link" href="/teams">Teams</a>
</li>
<li class="nav-item tw-py-2 md:tw-px-2">
<a class="nav-link" href="/scoreboard">Scoreboard</a>
</li>
<li class="nav-item tw-py-2 md:tw-px-2">
<a class="nav-link" href="/challenges">Challenges</a>
</li>
</ul>
</div>
</div>
</nav>
<main role="main" class="tw-flex-auto">
<div class="tw-hidden tw-fixed tw-w-8 tw-h-[100vh] tw-ml-8 -tw-mt-8 tw-bg-zinc-900 xl:tw-flex tw-justify-center tw-overflow-hidden"
x-data="Animation">
<template x-for="submission in submissions" :key="submission.id">
<div :id="submission.id"
class="tw-absolute tw-top-0 tw-w-6 tw-h-6 tw-bg-contain tw-bg-no-repeat tw-animate-moveDown tw-pointer-events-auto hover:[animation-play-state:paused]"
:class="submission.data.batch[0].solve_count == 1 ? `tw-bg-[url('/themes/flagtory/static/img/flag-blood.svg')]` : `tw-bg-[url('/themes/flagtory/static/img/flag-solved.svg')]`"
data-bs-toggle="tooltip" data-bs-placement="right" data-bs-html="true" :title="getTooltip(submission)"
@animationstart="register($event.target)" @animationend="unregister($event.target)">
</div>
</template>
</div>
<div
class="container tw-mx-auto sm:tw-max-w-xl md:tw-max-w-3xl lg:tw-max-w-5xl xl:tw-max-w-6xl tw-flex tw-flex-col tw-px-2">
<h1 class="tw-my-8 tw-mx-auto tw-text-4xl tw-text-slate-200">Challenges</h1>
<div class="row">
<div class="col-md-12">
<div>
<div
class="alert alert-info alert-dismissible tw-relative tw-p-4 tw-mb-4 tw-text-blue-300 tw-bg-blue-800 tw-border tw-border-blue-400 tw-rounded tw-text-center"
role="alert">
<span>GPN CTF 2023 has ended</span>
<button type="button"
class="btn-close tw-group tw-absolute tw-top-0 tw-right-0 tw-mt-4 tw-mr-3 tw-z-20 tw-cursor-pointer"
data-bs-dismiss="alert" aria-label="Close">
<span aria-hidden="true" class="tw-h-6 tw-w-6 tw-inline-block tw-align-middle [mask-image:url('/themes/flagtory/static/img/heroicons/solid/x-mark.svg')] [mask-size:100%]
tw-bg-slate-400 group-hover:tw-bg-slate-300 group-active:tw-bg-slate-300 group-focus-visible:tw-bg-slate-300"></span>
</button>
</div>
</div>
</div>
</div>
<div x-data="ChallengeBoard" @load-challenges.window="loadChallenges()"
@load-challenge.window="loadChallenge($event.detail)">
<div x-ref="challengeWindow" id="challenge-window"
class="modal fade tw-fixed tw-top-0 tw-left-0 tw-w-full tw-h-full tw-overflow-x-hidden tw-outline-none tw-backdrop-blur tw-z-50"
tabindex="-1" role="dialog" x-data="" x-html="$store.challenge.data.view"></div>
<div x-show="!loaded">
<div class="tw-flex tw-justify-center tw-items-center tw-min-h-[50vh]">
<div class="tw-text-center" role="status">
<svg aria-hidden="true" class="tw-w-8 tw-h-8 tw-animate-spin tw-text-slate-600 tw-fill-cyan-600"
viewBox="0 0 100 101" fill="none" xmlns="http://www.w3.org/2000/svg">
<path
d="M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z"
fill="currentColor" />
<path
d="M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z"
fill="currentFill" />
</svg>
<span class="tw-sr-only">Loading...</span>
</div>
</div>
</div>
<div x-show="loaded">
<template x-for="(category, idx) in getCategories()" :key="idx">
<div class="tw-mb-8">
<div class="category-header tw-mb-6">
<h3 class="tw-text-2xl" x-text="category"></h3>
</div>
<div class="category-challenges d-flex flex-column">
<div class="challenges-row row tw-flex tw-flex-wrap -tw-ml-8 [&>*]:tw-pl-8 [&>*]:tw-mb-8">
<template x-for="(c, idx) in getChallenges(category)" :key="c.id">
<div class="tw-w-full sm:tw-w-6/12 md:tw-w-4/12 lg:tw-w-3/12">
<button
class="challenge-button btn btn-dark tw-relative tw-w-full tw-aspect-square tw-p-[6%] tw-text-slate-950 tw-bg-[url('/themes/flagtory/static/img/crate-top.svg')] tw-bg-contain tw-bg-no-repeat"
:value="c.id" @click="loadChallenge(c.id)">
<div class="tw-absolute tw-top-[8%] tw-right-[8%] tw-w-12 tw-h-12 tw-bg-contain tw-bg-no-repeat"
:class="c.solved_by_me ? `tw-bg-[url('/themes/flagtory/static/img/flag-solved.svg')]` : `tw-bg-[url('/themes/flagtory/static/img/flag-unsolved.svg')]`">
</div>
<div class="challenge-inner tw-mt-12 tw-mb-4">
<p class="tw-text-2xl tw-font-extrabold tw-mb-4 tw-font-stencil tw-uppercase" x-text="c.name"></p>
<span class="tw-text-2xl tw-font-bold tw-font-stencil" x-text="c.value"></span>
</div>
</button>
</div>
</template>
</div>
</div>
</div>
</template>
</div>
</div>
</div>
</main>
<footer class="footer tw-flex-shrink-0 tw-h-14">
<div class="container text-center tw-flex tw-h-full tw-items-center tw-justify-center">
<a href="https://ctfd.io" class="text-secondary tw-text-slate-400">
Powered by CTFd
</a>
</div>
</footer>
<div x-data>
<div class="tw-fixed tw-bottom-0 tw-left-0 tw-p-4 tw-z-50">
<div x-ref="toast" class="toast hide tw-border tw-rounded tw-bg-slate-800" role="alert" aria-live="assertive"
aria-atomic="true">
<div class="toast-header tw-flex tw-items-center tw-px-3 tw-py-2 tw-border-b">
<strong class="tw-mr-auto" x-text="$store.toast.title"></strong>
<small>just now</small>
<button type="button"
class="btn-close tw-group tw-absolute tw-top-0 tw-right-0 tw-mt-4 tw-mr-3 tw-z-20 tw-cursor-pointer"
data-bs-dismiss="toast" aria-label="Close">
<span aria-hidden="true" class="tw-h-6 tw-w-6 tw-inline-block tw-align-middle [mask-image:url('/themes/flagtory/static/img/heroicons/solid/x-mark.svg')] [mask-size:100%]
tw-bg-slate-400 group-hover:tw-bg-slate-300 group-active:tw-bg-slate-300 group-focus-visible:tw-bg-slate-300"></span>
</button>
</div>
<div class="toast-body tw-px-3 tw-py-2" x-html="$store.toast.html">
</div>
</div>
</div>
</div>
<div x-data>
<div
class="modal tw-fixed tw-top-0 tw-left-0 tw-w-full tw-h-full tw-overflow-x-hidden tw-outline-none tw-backdrop-blur tw-z-50"
x-ref="modal" tabindex="-1">
<div class="modal-dialog tw-relative tw-m-7 md:tw-w-6/12 tw-mx-auto tw-pointer-events-none tw-bg-slate-800">
<div class="modal-content tw-flex tw-flex-col tw-w-full tw-pointer-events-auto tw-border tw-rounded tw-p-4">
<div class="modal-header">
<h5 class="modal-title tw-text-2xl tw-font-medium tw-mb-2" x-text="$store.modal.title"></h5>
<button type="button"
class="btn-close tw-group tw-absolute tw-top-0 tw-right-0 tw-mt-4 tw-mr-3 tw-z-20 tw-cursor-pointer"
data-bs-dismiss="modal" aria-label="Close">
<span aria-hidden="true"
class="tw-h-6 tw-w-6 tw-inline-block tw-align-middle [mask-image:url('/themes/flagtory/static/img/heroicons/solid/x-mark.svg')] [mask-size:100%]
tw-bg-slate-400 group-hover:tw-bg-slate-300 group-active:tw-bg-slate-300 group-focus-visible:tw-bg-slate-300"></span>
</button>
</div>
<div class="modal-body tw-mb-4">
<p x-html="$store.modal.html"></p>
</div>
<div class="modal-footer tw-flex tw-justify-end">
<button type="button" class="tw-px-2 tw-py-2 tw-border tw-leading-tight tw-rounded tw-text-slate-800
tw-border-cyan-500 tw-bg-cyan-500 hover:tw-border-cyan-400 hover:tw-bg-cyan-400
focus-visible:tw-outline-none focus-visible:tw-ring focus-visible:tw-ring-cyan-700
focus-visible:tw-border-cyan-400 focus-visible:tw-bg-cyan-400
active:tw-border-cyan-400 active:tw-bg-cyan-400" data-bs-dismiss="modal">Got it!</button>
</div>
</div>
</div>
</div>
</div>
<script defer type="module" src="/themes/factory/static/assets/index.01dfa420.js"></script><script defer type="module" src="/themes/factory/static/assets/animated.e1c5aff2.js"></script><script defer type="module" src="/themes/factory/static/assets/challenges.c808663f.js"></script>
<script defer type="module" src="/ctfd2pages/hooks/challenges.min.js"></script>
</body>
</html>