added official hacktheboo2024 writeups

This commit is contained in:
eplots 2024-10-23 11:10:43 +02:00
parent 1f7a9b0566
commit e3c46450f7
327 changed files with 14303 additions and 0 deletions

View file

@ -0,0 +1,11 @@
import random
def even_or_odd(n):
if n % 2 == 0:
return 'even'
return 'odd'
def gen_question():
n = random.randint(1, 100_000)
return f'{n}', f'{even_or_odd(n)}'

View file

@ -0,0 +1 @@
HTB{15_iT_0dD_oR_Is_iT_n0t?}

View file

@ -0,0 +1,23 @@
{% extends "base.html" %}
{% block title %}
Oddly Even
{% endblock %}
{% block content %}
<p>
Take in a number, print "odd" if odd and "even" if even.
</p>
{% endblock %}
{% block example_input %}
<p>
3
</p>
{% endblock %}
{% block example_output %}
<p>
odd
</p>
{% endblock %}