Skip to content

Commit 839c036

Browse files
add http landing
1 parent 4e5b8e5 commit 839c036

File tree

3 files changed

+400
-0
lines changed

3 files changed

+400
-0
lines changed

placeholders/http/404.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<h1>Hello from DUCTF!</h1>
4+
5+
<p>
6+
This URL currently does not resolve to a challenge. If you have just started an on-demand
7+
challenge, please wait a few minutes for it to deploy.
8+
</p>
9+
10+
<p>
11+
Otherwise, please let us know if there are any issues :)
12+
</p>
13+
</html>

placeholders/http/index.html

Lines changed: 354 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,354 @@
1+
<!DOCTYPE html>
2+
3+
<style id="theme-color">
4+
:root {
5+
--theme-color: #abd750;
6+
/* --theme-color: #c6ff00; */
7+
--dark-theme-color: #8fbe3e;
8+
--header-font: "Exo";
9+
--body-font: "Alata";
10+
--solved-color: #beed25;
11+
--text-color: #f3f3f3;
12+
--text-dark: #4a4a4a;
13+
/* --dark-bg: #171a1f; */
14+
--dark-bg: #1a1b1e;
15+
}
16+
17+
/* vietnamese */
18+
@font-face {
19+
font-family: "Alata";
20+
font-style: normal;
21+
font-weight: 400;
22+
font-display: swap;
23+
src: local("Alata Regular"), local("Alata-Regular"),
24+
url("https://fonts.gstatic.com/s/alata/v2/PbytFmztEwbIoceyzqYhQA.woff2")
25+
format("woff2");
26+
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169,
27+
U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB;
28+
}
29+
/* latin-ext */
30+
@font-face {
31+
font-family: "Alata";
32+
font-style: normal;
33+
font-weight: 400;
34+
font-display: swap;
35+
src: local("Alata Regular"), local("Alata-Regular"),
36+
url("https://fonts.gstatic.com/s/alata/v2/PbytFmztEwbIocezzqYhQA.woff2")
37+
format("woff2");
38+
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB,
39+
U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
40+
}
41+
/* latin */
42+
@font-face {
43+
font-family: "Alata";
44+
font-style: normal;
45+
font-weight: 400;
46+
font-display: swap;
47+
src: local("Alata Regular"), local("Alata-Regular"),
48+
url("https://fonts.gstatic.com/s/alata/v2/PbytFmztEwbIoce9zqY.woff2")
49+
format("woff2");
50+
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
51+
U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212,
52+
U+2215, U+FEFF, U+FFFD;
53+
}
54+
/* vietnamese */
55+
@font-face {
56+
font-family: "Exo";
57+
font-style: normal;
58+
font-weight: 800;
59+
font-display: swap;
60+
src: url("https://fonts.gstatic.com/s/exo/v11/4UaZrEtFpBI4f1ZSIK9d4LjJ4tMwOwtmO24p.woff2")
61+
format("woff2");
62+
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169,
63+
U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB;
64+
}
65+
/* latin-ext */
66+
@font-face {
67+
font-family: "Exo";
68+
font-style: normal;
69+
font-weight: 800;
70+
font-display: swap;
71+
src: url("https://fonts.gstatic.com/s/exo/v11/4UaZrEtFpBI4f1ZSIK9d4LjJ4tMwOwpmO24p.woff2")
72+
format("woff2");
73+
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB,
74+
U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
75+
}
76+
/* latin */
77+
@font-face {
78+
font-family: "Exo";
79+
font-style: normal;
80+
font-weight: 800;
81+
font-display: swap;
82+
src: url("https://fonts.gstatic.com/s/exo/v11/4UaZrEtFpBI4f1ZSIK9d4LjJ4tMwOwRmOw.woff2")
83+
format("woff2");
84+
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
85+
U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212,
86+
U+2215, U+FEFF, U+FFFD;
87+
}
88+
89+
/* vietnamese */
90+
@font-face {
91+
font-family: "Alata";
92+
font-style: normal;
93+
font-weight: 400;
94+
font-display: swap;
95+
src: local("Alata Regular"), local("Alata-Regular"),
96+
url("https://fonts.gstatic.com/s/alata/v2/PbytFmztEwbIoceyzqYhQA.woff2")
97+
format("woff2");
98+
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169,
99+
U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB;
100+
}
101+
/* latin-ext */
102+
@font-face {
103+
font-family: "Alata";
104+
font-style: normal;
105+
font-weight: 400;
106+
font-display: swap;
107+
src: local("Alata Regular"), local("Alata-Regular"),
108+
url("https://fonts.gstatic.com/s/alata/v2/PbytFmztEwbIocezzqYhQA.woff2")
109+
format("woff2");
110+
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB,
111+
U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
112+
}
113+
/* latin */
114+
@font-face {
115+
font-family: "Alata";
116+
font-style: normal;
117+
font-weight: 400;
118+
font-display: swap;
119+
src: local("Alata Regular"), local("Alata-Regular"),
120+
url("https://fonts.gstatic.com/s/alata/v2/PbytFmztEwbIoce9zqY.woff2")
121+
format("woff2");
122+
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
123+
U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212,
124+
U+2215, U+FEFF, U+FFFD;
125+
}
126+
127+
/* latin-ext */
128+
@font-face {
129+
font-family: "Lato";
130+
font-style: normal;
131+
font-weight: 400;
132+
font-display: swap;
133+
src: url(https://fonts.gstatic.com/s/lato/v23/S6uyw4BMUTPHjxAwXjeu.woff2)
134+
format("woff2");
135+
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB,
136+
U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
137+
}
138+
/* latin */
139+
@font-face {
140+
font-family: "Lato";
141+
font-style: normal;
142+
font-weight: 400;
143+
font-display: swap;
144+
src: url(https://fonts.gstatic.com/s/lato/v23/S6uyw4BMUTPHjx4wXg.woff2)
145+
format("woff2");
146+
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
147+
U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212,
148+
U+2215, U+FEFF, U+FFFD;
149+
}
150+
151+
/* =======================end font imports===================== */
152+
153+
html,
154+
main,
155+
body {
156+
background-color: var(--dark-bg);
157+
color: var(--text-color) !important;
158+
font-family: var(--body-font), sans-serif !important;
159+
margin: 0;
160+
padding: 0;
161+
}
162+
footer {
163+
display: none;
164+
}
165+
pre {
166+
background: #0e110e;
167+
padding: 8px;
168+
border-radius: 12px;
169+
}
170+
code {
171+
color: var(--dark-theme-color) !important;
172+
background: #0e110e;
173+
padding: 2px 4px;
174+
border-radius: 4px;
175+
}
176+
.navbar {
177+
background-color: var(--dark-bg) !important;
178+
padding-top: 18px;
179+
}
180+
.btn[href="/oauth"] {
181+
display: none;
182+
}
183+
.jumbotron {
184+
background-color: var(--dark-bg) !important;
185+
padding-bottom: 0;
186+
}
187+
h1,
188+
h2,
189+
h3,
190+
h4,
191+
h5 {
192+
font-family: var(--header-font);
193+
}
194+
195+
table {
196+
color: #eaeaea !important;
197+
}
198+
a {
199+
color: var(--theme-color);
200+
}
201+
a:hover {
202+
color: var(--dark-theme-color) !important;
203+
}
204+
205+
button.close {
206+
display: none;
207+
}
208+
209+
.container {
210+
display: flex;
211+
justify-content: center;
212+
text-align: center;
213+
height: 100vh;
214+
overflow-y: hidden;
215+
align-items: center;
216+
}
217+
218+
.lds-roller {
219+
display: inline-block;
220+
position: relative;
221+
width: 80px;
222+
height: 80px;
223+
}
224+
.lds-roller div {
225+
animation: lds-roller 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
226+
transform-origin: 40px 40px;
227+
}
228+
.lds-roller div:after {
229+
content: " ";
230+
display: block;
231+
position: absolute;
232+
width: 7px;
233+
height: 7px;
234+
border-radius: 50%;
235+
background: #beed25;
236+
margin: -4px 0 0 -4px;
237+
}
238+
.lds-roller div:nth-child(1) {
239+
animation-delay: -0.036s;
240+
}
241+
.lds-roller div:nth-child(1):after {
242+
top: 63px;
243+
left: 63px;
244+
}
245+
.lds-roller div:nth-child(2) {
246+
animation-delay: -0.072s;
247+
}
248+
.lds-roller div:nth-child(2):after {
249+
top: 68px;
250+
left: 56px;
251+
}
252+
.lds-roller div:nth-child(3) {
253+
animation-delay: -0.108s;
254+
}
255+
.lds-roller div:nth-child(3):after {
256+
top: 71px;
257+
left: 48px;
258+
}
259+
.lds-roller div:nth-child(4) {
260+
animation-delay: -0.144s;
261+
}
262+
.lds-roller div:nth-child(4):after {
263+
top: 72px;
264+
left: 40px;
265+
}
266+
.lds-roller div:nth-child(5) {
267+
animation-delay: -0.18s;
268+
}
269+
.lds-roller div:nth-child(5):after {
270+
top: 71px;
271+
left: 32px;
272+
}
273+
.lds-roller div:nth-child(6) {
274+
animation-delay: -0.216s;
275+
}
276+
.lds-roller div:nth-child(6):after {
277+
top: 68px;
278+
left: 24px;
279+
}
280+
.lds-roller div:nth-child(7) {
281+
animation-delay: -0.252s;
282+
}
283+
.lds-roller div:nth-child(7):after {
284+
top: 63px;
285+
left: 17px;
286+
}
287+
.lds-roller div:nth-child(8) {
288+
animation-delay: -0.288s;
289+
}
290+
.lds-roller div:nth-child(8):after {
291+
top: 56px;
292+
left: 12px;
293+
}
294+
@keyframes lds-roller {
295+
0% {
296+
transform: rotate(0deg);
297+
}
298+
100% {
299+
transform: rotate(360deg);
300+
}
301+
}
302+
303+
.challenge-loading {
304+
display: none;
305+
}
306+
307+
.wrong-domain {
308+
display: none;
309+
}
310+
</style>
311+
312+
<html>
313+
<head>
314+
<title>DUCTF Loading</title>
315+
</head>
316+
<body>
317+
<div class="container flex justify-center">
318+
<div class="challenge-loading">
319+
<h1>Your personal challenge instance is starting up!</h1>
320+
<p>
321+
Please wait a few moments for the instance to become available. This
322+
may take a few minutes. You may see "Bad Gateway" or "Service
323+
Unavailable", this is normal and you will just need to wait a bit
324+
longer.
325+
</p>
326+
327+
<p>
328+
If this page does not update within 5 minutes please request support
329+
:)
330+
</p>
331+
<!-- Thankyou loading.io ! -->
332+
<div class="lds-roller">
333+
<div></div>
334+
<div></div>
335+
<div></div>
336+
<div></div>
337+
<div></div>
338+
<div></div>
339+
<div></div>
340+
<div></div>
341+
</div>
342+
</div>
343+
344+
<div class="wrong-domain">
345+
<h1>Hello from DUCTF!</h1>
346+
<p>
347+
This URL currently does not resolve to a challenge, please check the
348+
URI and try again.
349+
</p>
350+
</div>
351+
</div>
352+
<script defer src="subdomain.js"></script>
353+
</body>
354+
</html>

0 commit comments

Comments
 (0)