1
1
{% extends "layout.html" %}
2
2
3
3
{#<!-- Exports header and navbar from header.html --> #}
4
- {% block title %}{{ title }}{% endblock %}
4
+ {% block title %}{{ title }}{% endblock %}
5
5
6
6
{% block head %}
7
7
{{ super() }}
8
8
9
9
{% endblock %}
10
10
{% block content %}
11
- < div class ="container mt-5 ">
12
- < h1 class ="text-center "> CTFlask</ h1 >
13
- < div class ="mt-4 ">
14
- < h3 > Stage {{ stage }}</ h3 >
15
- < p > Do not submit anything that comes before the first "{", ie if it is ColaCo{flag}, just submit {flag}</ p >
16
- < form method ="POST ">
17
- < div class ="form-group ">
18
- < label for ="flag "> Enter Flag:</ label >
19
- < input type ="text " id ="flag " name ="flag " class ="form-control " placeholder ="{...} " required >
20
- </ div >
21
- < button type ="submit " name ="submit_flag " class ="btn btn-primary "> Submit Flag</ button >
22
- </ form >
11
+ < div class ="container mt-5 ">
12
+ < h1 class ="text-center "> CTFlask</ h1 >
13
+ < div class ="mt-4 ">
14
+ < h3 > Stage {{ stage }}</ h3 >
15
+ < p > Do not submit anything that comes before the first "{", ie if it is ColaCo{flag}, just submit {flag}</ p >
16
+ < form method ="POST ">
17
+ < div class ="form-group ">
18
+ < label for ="flag "> Enter Flag:</ label >
19
+ < input type ="text " id ="flag " name ="flag " class ="form-control " placeholder ="{...} " required >
20
+ </ div >
21
+ < button type ="submit " name ="submit_flag " class ="btn btn-primary "> Submit Flag</ button >
22
+ </ form >
23
23
24
- < h5 > Notes</ h5 >
25
- {% if notes is defined and notes %}
26
- < p > {{ notes }}</ p >
27
- {% endif %}
24
+ < h5 > Notes</ h5 >
25
+ {% if notes is defined and notes %}
26
+ < p > {{ notes }}</ p >
27
+ {% endif %}
28
28
29
- </ div >
30
- {% with messages = get_flashed_messages(with_categories=true) %}
31
- {% if messages is defined and messages %}
32
- < div class ="mt-4 ">
33
- {% for category, message in messages %}
34
- < div class ="alert alert-{{ category }} " > {{ message }}</ div >
29
+ </ div >
30
+ {% with messages = get_flashed_messages(with_categories=true) %}
31
+ {% if messages is defined and messages %}
32
+ < div class ="mt-4 ">
33
+ {% for category, message in messages %}
34
+ < div class ="alert alert-{{ category }} "> {{ message }}</ div >
35
+ {% endfor %}
36
+ </ div >
37
+ {% endif %}
38
+ {% endwith %}
39
+ < div class ="mt-4 ">
40
+ < h4 > Hints</ h4 >
41
+ {% if hints is defined and hints %}
42
+ < ul >
43
+ {% for hint in hints %}
44
+ < li > {{ hint }}</ li >
35
45
{% endfor %}
36
- </ div >
46
+ </ ul >
47
+ {% else %}
48
+ < p > No hints revealed yet.</ p >
37
49
{% endif %}
38
- {% endwith %}
39
- < div class ="mt-4 ">
40
- < h4 > Hints</ h4 >
41
- {% if hints is defined and hints %}
42
- < ul >
43
- {% for hint in hints %}
44
- < li > {{ hint }}</ li >
45
- {% endfor %}
46
- </ ul >
47
- {% else %}
48
- < p > No hints revealed yet.</ p >
49
- {% endif %}
50
-
51
- < form method ="POST ">
52
- < button type ="input " name ="reveal_hint " class ="btn btn-secondary " value ="d "> Reveal Next Hint</ button >
53
- </ form >
54
-
55
- {#<!-- comment {% if hint_index < num_hints-1 %}
50
+
51
+ < form method ="POST ">
52
+ < button type ="input " name ="reveal_hint " class ="btn btn-secondary " value ="d "> Reveal Next Hint</ button >
53
+ </ form >
54
+
55
+ {#<!-- comment {% if hint_index < num_hints-1 %}
56
56
-->
57
- < form method ="POST ">
58
- < button type ="submit " name ="reveal_hint " class ="btn btn-secondary "> Reveal Next Hint</ button >
59
- </ form >
60
- <!-- {% endif %} --> #}
61
- </ div >
57
+ < form method ="POST ">
58
+ < button type ="submit " name ="reveal_hint " class ="btn btn-secondary "> Reveal Next Hint</ button >
59
+ </ form >
60
+ <!-- {% endif %} --> #}
61
+ </ div >
62
62
63
- < div class ="mt-4 ">
64
- < h4 > Previously Submitted Flags</ h4 >
65
- {% if submitted_flags is defined and submitted_flags %}
66
- < ul >
67
- {% for flag in submitted_flags %}
68
- < li > {{ flag }}</ li >
69
- {% endfor %}
70
- </ ul >
71
- {% else %}
72
- < p > No flags submitted yet.</ p >
73
- {% endif %}
74
- </ div >
75
- < div class ="mt-4 ">
76
- < a href ="{{ url_for('ctf.restart') }} " class ="btn btn-danger "> Restart Challenge</ a >
77
- </ div >
63
+ < div class ="mt-4 ">
64
+ < h4 > Previously Submitted Flags</ h4 >
65
+ {% if submitted_flags is defined and submitted_flags %}
66
+ < ul >
67
+ {% for flag in submitted_flags %}
68
+ < li > {{ flag }}</ li >
69
+ {% endfor %}
70
+ </ ul >
71
+ {% else %}
72
+ < p > No flags submitted yet.</ p >
73
+ {% endif %}
74
+ </ div >
75
+ {#<!-- <div class="mt-4">
76
+ <p>(danger) You will lose all progress and saved flags on this site: </p>
77
+ <a href="{{ url_for('ctf.restart') }}" class="btn btn-danger" id="reset">Reset Progress</a>
78
+ </div> --> #}
79
+ < div class ="mt-4 ">
80
+ < form id ="resetForm " action ="{{ url_for('ctf.restart') }} " method ="POST ">
81
+ < button type ="submit " id ="resetButton " class ="btn btn-danger " role ="button "> Reset Progress</ button >
82
+ </ form >
78
83
</ div >
79
84
80
- {% endblock %}
85
+ </ div >
86
+
87
+ < script src ="{{ url_for('static', filename='js/flags.js') }} "> </ script >
88
+
81
89
90
+ {% endblock %}
0 commit comments