Skip to content

Commit ee089e1

Browse files
author
Robert Quander
committed
updated some little things
- login and register errors - error presentation in general - more variety in checker - a bunch of comments - correct(er) intendtation - some little efficiency thingies - cleanup might miss some things, fixed that
1 parent 858b1b5 commit ee089e1

File tree

7 files changed

+1579
-1110
lines changed

7 files changed

+1579
-1110
lines changed

checker/src/checker.py

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,33 @@ async def get_post(self, post_id: str) -> str:
9797
return d
9898

9999
async def event_post(self, flag: str) -> tuple[str, str]:
100+
try:
101+
with open("event_templates.txt", encoding="utf-8") as f:
102+
raw_blocks = f.read().strip().split("---")
103+
events = []
104+
for block in raw_blocks:
105+
lines = [line.strip() for line in block.strip().split("\n") if line.strip()]
106+
if len(lines) == 4:
107+
title, desc, date, loc = lines
108+
events.append({
109+
"title": title,
110+
"description": desc,
111+
"date": date,
112+
"location": loc
113+
})
114+
except Exception as e:
115+
self.logger.error(f"Could not read event templates: {e}")
116+
raise MumbleException("Template read failure")
117+
118+
if not events:
119+
raise MumbleException("No valid events in template file")
120+
121+
event = random.choice(events)
100122
data = {
101-
"title": "CTF BBQ",
102-
"description": "Come hungry.",
103-
"date": f"{''.join(random.choices('0123456789', k=4))}-{str(random.randint(1, 12)).zfill(2)}-{str(random.randint(5, 27)).zfill(2)}",
104-
"location": "The Cloud",
123+
"title": event["title"],
124+
"description": event["description"],
125+
"date": event["date"],
126+
"location": event["location"],
105127
"notes": flag,
106128
}
107129

checker/src/event_templates.txt

Lines changed: 323 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,323 @@
1+
French Revolution Strategy Meeting
2+
Remember to bring your cake.
3+
1789-07-13
4+
Versailles
5+
---
6+
Server Migration Day
7+
We promise it won't go down.
8+
2025-07-18
9+
Crowdstrike HQ
10+
---
11+
Berlin Wall Pre-Demolition Party
12+
Tear down the vibe!
13+
1989-11-08
14+
Checkpoint Charlie
15+
---
16+
Titanic Bon Voyage Party
17+
Come aboard, she's unsinkable, and it's unthinkable (both the same - I'm German.)
18+
1912-04-10
19+
Southampton Docks
20+
---
21+
Mayan Calendar Countdown
22+
Last chance tacos and doomsday predictions.
23+
2012-12-20
24+
Chichén Itzá
25+
---
26+
Chernobyl Reactor Trour with Nuclear Cake afterwards!
27+
Bring your own Geiger counter!
28+
1986-04-25
29+
Chernobyl, Pripyat
30+
---
31+
Woodstock Planning Meeting
32+
We definitely won't run out of food.
33+
1969-08-14
34+
Bethel, New York
35+
---
36+
Apollo 11 Launch Party
37+
Moon pie and rocket fuel served.
38+
1969-07-16
39+
Kennedy Space Center
40+
---
41+
Hindenburg Hype Rally
42+
Hydrogen, meet elegance.
43+
1937-05-06
44+
Lakehurst, New Jersey
45+
---
46+
Library of Alexandria Fireworks Festival
47+
Celebrate knowledge with literal sparks! BYO scrolls.
48+
0048-10-13
49+
Alexandria, Egypt
50+
---
51+
Atlantis Pool Party
52+
Don’t forget your swim gear. We just hope the internern remembers to turn the water off.
53+
0950-06-21
54+
Mid-Atlantic Ridge
55+
---
56+
Zeus’ Europa Roadtrip
57+
Get in, loser. We’re conquering the Mediterranean.
58+
1500-05-01
59+
Phoenicia Shoreline
60+
---
61+
Fukushima Beach Day
62+
Surf, sun, and slightly glowing sandcastles.
63+
2011-03-10
64+
Ōkuma, Japan
65+
---
66+
Flight 370 Reunion Meetup
67+
Wanna get away? Try our new underwater lounge.
68+
2014-03-07
69+
Bikini Bottom
70+
---
71+
Pompeii Heatwave BBQ
72+
Ashes to ashes, ribs to dust. Grill provided.
73+
0079-08-23
74+
Pompeii, Italy
75+
---
76+
Krakatoa Lantern Festival
77+
Let’s light up the skies! And... the atmosphere.
78+
1883-08-25
79+
Sunda Strait, Indonesia
80+
---
81+
Vesuvius Yoga Retreat
82+
Breathe deeply. Ignore the rumbling.
83+
0079-08-23
84+
Naples, Italy
85+
---
86+
Robespierre Farewell Picnic
87+
Heads up! The sandwiches are revolutionary.
88+
1794-07-27
89+
Place de la Révolution, Paris
90+
---
91+
Moon Landing Afterparty
92+
One small step, one giant hangover.
93+
1969-07-21
94+
Sea of Tranquility, Moon
95+
---
96+
Dodo Preservation Conference
97+
All are welcome. Especially the last few.
98+
1681-01-01
99+
Mauritius
100+
---
101+
Y2K Warm-Up Rave
102+
Bring your digital clocks and existential dread.
103+
1999-12-31
104+
Silicon Valley
105+
---
106+
Trojan Horse Unboxing Event
107+
It’s not a trap. It’s a limited edition sculpture!
108+
1184-04-24
109+
Troy
110+
---
111+
Titanic Icebreaking Workshop
112+
Make connections that’ll sink in forever.
113+
1912-04-10
114+
Southampton, UK
115+
---
116+
Y2K Exploit Release Party
117+
Zero-day dropped. Millennium secured. Or not.
118+
1999-12-30
119+
DEF CON -1, Las Vegas
120+
---
121+
Morris Worm Watchalong
122+
Come see the internet go down in real-time!
123+
1988-11-02
124+
MIT Dorm LAN Room
125+
---
126+
Enigma Machine Decryption Live Stream
127+
Spoiler: Alan wins.
128+
1941-02-14
129+
Bletchley Park, UK
130+
---
131+
Stuxnet Demo Booth
132+
Now with 100% more centrifuge destruction!
133+
2009-06-16
134+
Natanz Nuclear Facility (Backdoor Entrance)
135+
---
136+
First Ever Phishing Expo
137+
Free iPods! Just enter your credentials.
138+
2003-09-04
139+
Nigerian Embassy, Geocities
140+
---
141+
Delorean Tune-Up Session
142+
88 mph or bust. No hoverboard required.
143+
1985-10-25
144+
Twin Pines Mall, Hill Valley
145+
---
146+
Cyberdyne Systems Launch Day
147+
Skynet is friendly. Promise.
148+
1997-08-04
149+
Los Angeles, CA
150+
---
151+
Doctor Who Regeneration Workshop
152+
Come for the lecture, stay for eternity.
153+
1963-11-23
154+
BBC Basement, London
155+
---
156+
Rick & Morty Science Fair
157+
Bring your own portal gun. Don't ask questions.
158+
2013-12-02
159+
Blips and Chitz Arcade
160+
---
161+
Tenet Timeline Orientation
162+
Welcome. Or goodbye. Or both.
163+
2020-08-27
164+
Temporal Turnstile Facility
165+
---
166+
Time Traveler's LAN Party
167+
We already played that version. Try again.
168+
2007-06-07
169+
NetCafe, Reykjavík
170+
---
171+
First Bitcoin Pizza Night
172+
One slice costs 10,000. Worth every sat.
173+
2010-05-22
174+
Jacksonville, Florida
175+
---
176+
4chan Singularity Sync
177+
Don’t worry, we already memed this.
178+
2008-11-05
179+
/space/time/
180+
---
181+
Red Wedding Catering Pitch
182+
“Vegan options available,” they said.
183+
299 AC
184+
The Twins, Westeros
185+
---
186+
AI Alignment Council Kickoff
187+
GPT-3 says hi. GPT-7 says duck.
188+
2032-05-01
189+
OpenAI Coreframe
190+
---
191+
Future CTF Finals Kickoff
192+
No binaries, only quantum obfuscation.
193+
2049-10-10
194+
Mars University
195+
---
196+
Hackers 1995 Remastered Screening
197+
We’re in. On VHS.
198+
1995-09-15
199+
ZeroCool Cinema, New York
200+
---
201+
Memes Through the Ages Symposium
202+
Hide the pain. Harold is speaking.
203+
2017-04-01
204+
The Meme Archive, Zurich
205+
---
206+
Roko’s Basilisk Charity Ball
207+
Suggested dress code: compliance.
208+
????-??-??
209+
Information Hazard Vault
210+
---
211+
Stephen Hawking’s Time Traveler Reception
212+
Don't forget the cake folks! He'll be so surprised we show up! :D
213+
2009-06-28
214+
24 CAmbridge Ave, Cambridge, UK
215+
---
216+
Zero-Day Harvest Festival
217+
Bring your own buffer overflows. Stack space is limited.
218+
2002-10-13
219+
Undisclosed IRC Bunker
220+
---
221+
CTF Team Reunion (Time-Shifted)
222+
We've already lost next year’s final. Come reminisce!
223+
2025-12-14
224+
Out-of-Bounds Memory
225+
---
226+
NASA Launch Delay Brunch
227+
The clock is off by one second. Again.
228+
1970-04-11
229+
Kennedy Space Center
230+
---
231+
Tesla Time Coil Test Run
232+
Please leave your phones in the Faraday cage.
233+
1895-03-30
234+
Colorado Springs Lab
235+
---
236+
DNS Cache Poisoning Day
237+
All roads lead to 127.0.0.1.
238+
2008-07-08
239+
Kaminsky Conference Room
240+
---
241+
Time Paradox Recovery Workshop
242+
Bring both your grandparents and your grandkids.
243+
2071-11-11
244+
Chrono-Stabilization Institute
245+
---
246+
Chronoscript Conlang Meetup
247+
Yesterday’s words for tomorrow’s thoughts.
248+
2033-09-17
249+
Esperanto Hall, Geneva
250+
---
251+
Black Hat 1865
252+
Union telegraph lines compromised. Tickets still 1 cent.
253+
1865-01-03
254+
Washington, D.C.
255+
---
256+
Unbreakable Encryption Bake-Off
257+
Winner gets a quantum oven.
258+
2029-06-15
259+
NSA Headquarters, Kitchen Wing
260+
---
261+
Kill Your Grandfather Support Group
262+
New members welcome, provided they still exist.
263+
1955-10-26
264+
Causal Loop Therapy Center
265+
---
266+
Time Traveler's First Birthday
267+
Born tomorrow. Died yesterday. Cake optional.
268+
2088-04-04
269+
Nonlinear Maternity Ward
270+
---
271+
Bootstrap Invention Expo
272+
No one knows who invented anything. Especially the bootstraps.
273+
1981-06-11
274+
Mobius Hall, Geneva
275+
---
276+
Autoinvitation Potluck
277+
You told yourself to bring a casserole. You forgot. Again. And you left the oven on. Again.
278+
2030-07-09
279+
Recursive Rec Center
280+
---
281+
Paradox Prevention Workshop
282+
Canceled due to itself never being scheduled.
283+
2042-02-29
284+
The Forbidden Timeline
285+
---
286+
Cause & Effect Swap Meet
287+
Bring an outcome, leave with a reason.
288+
1974-03-18
289+
Heisenberg Gymnasium
290+
---
291+
Temporal Prime Directive Debate
292+
To interfere, or not to interfere? We already answered that.
293+
2373-09-14
294+
Starfleet Ethics Hall
295+
---
296+
Self-Parenting Masterclass
297+
Who raised you? Yourself, obviously.
298+
2066-11-12
299+
Ouroboros Elementary School
300+
---
301+
Eve's Apple Delivery Run
302+
Spoilers: you’re the snake.
303+
0001-01-01
304+
Garden of Debugging
305+
---
306+
Alternate Timeline Wine Tasting
307+
Each bottle opened closes a reality.
308+
∞-∞-∞
309+
Schrödinger’s Cellar
310+
---
311+
Imposter Syndrom Self Help Group
312+
I just created it, but I don't think I am qualified to lead it, anyone up?
313+
2025-07-19
314+
Education Center East Heathrow
315+
---
316+
Pushover Self Help Group
317+
We booked the slot years in advance, but just change it, what can we do anyway? :(
318+
2025-07-19
319+
Education Center East Heathrow
320+
---
321+
Thinking about the Roman empire?
322+
Thinking about the roman empire every day? Wish you spoke latin? Come meet us there and discuss our strats on how to stop its inevitebale demise
323+
12-09-24
File renamed without changes.

0 commit comments

Comments
 (0)