-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
impr: fix ToS content import from file, add examples and test them in CI
- Loading branch information
Showing
14 changed files
with
305 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,31 +55,16 @@ jobs: | |
exit 1 | ||
fi | ||
- name: Run functional tests | ||
run: | | ||
go test ./ -run=^Test_F -coverprofile=functional.out -json | tee -a gotest.json | ||
env: | ||
URL: http://localhost:8000 | ||
|
||
- name: Run integration test | ||
run: | | ||
go build -cover -o ctfd-setup cmd/ctfd-setup/main.go | ||
mkdir coverdir | ||
GOCOVERDIR=coverdir ./ctfd-setup | ||
go tool covdata textfmt -i=coverdir -o integration.out | ||
sed -i '/^\//d' integration.out | ||
./hack/examples.sh | ||
env: | ||
URL: http://localhost:8000 | ||
APPEARANCE_NAME: 'CTFer.io' | ||
APPEARANCE_DESCRIPTION: 'CTFer.io test CTFd setup' | ||
ADMIN_NAME: 'ctfer' | ||
ADMIN_EMAIL: '[email protected]' | ||
ADMIN_PASSWORD: 'ctfer' | ||
|
||
- name: Merge coverage data | ||
run: | | ||
go install go.shabbyrobe.org/gocovmerge/cmd/gocovmerge@fa4f82cfbf4d57c646c1ed0f35002bf1b89fbf7a | ||
gocovmerge unit.out functional.out integration.out > cov.out | ||
gocovmerge unit.out integration.out > cov.out | ||
- name: Upload coverage to Coveralls | ||
uses: shogo82148/actions-goveralls@785c9d68212c91196d3994652647f8721918ba11 # v1.9.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
appearance: | ||
name: "NoBracketsCTF 2024 - Finale" | ||
description: "" | ||
|
||
theme: | ||
logo: | ||
from_file: logo.png | ||
small_icon: | ||
from_file: tab-icon.png | ||
name: core | ||
header: | ||
from_file: theme-header.html | ||
|
||
settings: | ||
challenge_visibility: public | ||
account_visibility: public | ||
score_visibility: private | ||
registration_visibility: public | ||
|
||
# Don't set time, not very usefull in replicability | ||
|
||
legal: | ||
tos: | ||
content: | ||
from_file: tos.md | ||
|
||
mode: teams | ||
|
||
admin: | ||
name: 'my-name' | ||
email: '[email protected]' | ||
password: 'dont put password in a config file, use the varenv' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<div align="center"> | ||
<h1><img src="logo.png" width="50px"></h1> | ||
<p><b>NoBrackets 2024</b></p> | ||
</div> | ||
|
||
The NoBrackets 2024 example shows how to setup CTFd for this event. | ||
|
||
Stylesheet and images are the property of GCC and were granted free right of use by [GCC](https://github.com/gcc-ensibs) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<div class="row"> | ||
<div class="col-md-6 offset-md-3"> | ||
<img class="w-100 mx-auto d-block" style="max-width: 600px;padding: 3vh;" src="/files/249e0a7debd973d9a53af255f42795f9/nbctf_logo_blanc.png" /> | ||
<h3 class="text-center">Concours de cybersécurité à destination des lycéennes et des lycéens</h3> | ||
<hr> | ||
<h4 class="text-center">Horaires de la finale :<br> 20 novembre 2024 : 10h - 16h30</h4> | ||
<hr> | ||
<h3 class="text-center">Créez-vous un compte puis rejoignez votre équipe avec le mot de passe fourni.</h3> | ||
<hr> | ||
<h1 class="text-center"><a class="btn" href="https://nobrackets.fr/docs/intro">Accès à notre Wiki</a></h1> | ||
<h1 class="text-center"><a class="btn" href="https://discord.gg/njcQxMEkNQ">Rejoindre le Discord</a></h1> | ||
<hr> | ||
<h3 class="text-center">Un grand merci à nos partenaires et sponsors :</h3> | ||
<img class="w-100 mx-auto d-block" style="max-width: 70%; margin-bottom: 60px; margin-top: 20px;" src="/files/91416f7326150828ae27b3bf877b4a3d/logo_PEC_blanc.png" /> | ||
<img class="w-100 mx-auto d-block" style="max-height: 10%;" src="/files/680178c26957b2cd76b6280d20d7e931/ELYSIUM_-_Logo_Root-Me_Pro_Blanc_pour_Fond_Noir.svg" /> | ||
<img class="w-100 mx-auto d-block" style="max-width: 60%; margin: 50px;" src="/files/a0ae6a1e822a1c767477531c81576d01/synacktiv-logo-blanc300.png" /> | ||
<hr> | ||
<p class="text-justify">Le NoBracketsCTF est organisé par le club étudiant <a href="https://gcc-ensibs.fr/">Galette Cidre CTF (GCC)</a>, par des élèves des spécialités <a href="https://www-ensibs.univ-ubs.fr/fr/formations/formations/diplome-d-ingenieur-DI/sciences-technologies-sante-STS/diplome-d-ingenieur-cyberdefense-ICYB00_213.html">Cyberdéfense</a>, <a href="https://www-ensibs.univ-ubs.fr/fr/formations/formations/diplome-d-ingenieur-DI/sciences-technologies-sante-STS/diplome-d-ingenieur-cybersecurite-du-logiciel-IINF00_207.html">Cybersécurité du Logiciel</a> et <a href="https://www-ensibs.univ-ubs.fr/fr/formations/formations/diplome-d-ingenieur-DI/sciences-technologies-sante-STS/diplome-d-ingenieur-cybersecurite-et-sciences-des-donnees-KWW171GO.html">Cybersécurité et Sciences des Données</a> de <a href="https://www-ensibs.univ-ubs.fr/fr/index.html">l'Ecole Nationale Supérieure d'Ingénieurs de Bretagne Sud (ENSIBS).</a></p> | ||
<p class="text-center">Suivez-nous sur les réseaux !</p> | ||
<p class="text-center"> | ||
<a target="_blank" href="https://twitter.com/NoBracketsCTF"><i class="fab fa-twitter fa-2x" aria-hidden="true"></i></a> | ||
<a target="_blank" href="https://www.instagram.com/nobracketsctf/"><i class="fab fa-instagram fa-2x" aria-hidden="true"></i></a> | ||
<a target="_blank" href="https://discord.gg/njcQxMEkNQ"><i class="fab fa-discord fa-2x" aria-hidden="true"></i></a> | ||
</p> | ||
</div> | ||
</div> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
<style id="theme-color"> | ||
.tag-Introduction > button{border: 5px solid #cad3f5; border-radius: 5px;} | ||
.tag-Facile > button{border: 5px solid #a6da95; border-radius: 5px;} | ||
.tag-Moyen > button{border: 5px solid #eed49f; border-radius: 5px;} | ||
.tag-Difficile > button{border: 5px solid #ed8796; border-radius: 5px;} | ||
.tag-D\u00e9mon > button{border: 5px solid #c6a0f6; border-radius: 5px;} | ||
|
||
button > p::before{white-space: pre;} | ||
|
||
.solved-challenge { | ||
background-color: #a6da95 !important; | ||
opacity: 100; | ||
border-radius: 0px; | ||
} | ||
|
||
.tag-Introduction > button.solved-challenge { | ||
border: 5px solid; | ||
border-color: #a6da95; | ||
border-radius: 5px; | ||
} | ||
.tag-Facile > button.solved-challenge { | ||
border: 5px solid; | ||
border-color: #a6da95; | ||
border-radius: 5px; | ||
} | ||
.tag-Moyen > button.solved-challenge { | ||
border: 5px solid; | ||
border-color: #a6da95; | ||
border-radius: 5px; | ||
} | ||
.tag-Difficile > button.solved-challenge { | ||
border: 5px solid; | ||
border-color: #a6da95; | ||
border-radius: 5px; | ||
} | ||
.tag-Démon > button.solved-challenge { | ||
border: 5px solid; | ||
border-color: #a6da95; | ||
border-radius: 5px; | ||
} | ||
|
||
body { | ||
background-color: #212529 | ||
} | ||
h4, .h4, h3, .h3, h2, .h2, h1, .h1 { | ||
color: #dee2e6; | ||
} | ||
|
||
p, li { | ||
color: white; | ||
} | ||
|
||
.challenge-desc p { | ||
color: black; | ||
} | ||
|
||
.challenge-button { | ||
&:hover { | ||
background-color: #212529; | ||
border-color: inherit; /* Keeps original border color on hover */ | ||
} | ||
} | ||
|
||
.challenge-button > p{ | ||
overflow: hidden; | ||
white-space: nowrap; | ||
text-overflow: ellipsis; | ||
} | ||
table thead td, table tbody td, table tbody tr, label{ | ||
color: #ffff; | ||
} | ||
|
||
|
||
h2.challenge-name, h3.challenge-value, #solves table thead td, #solves table tbody td{ | ||
color: #000000 !important; | ||
} | ||
|
||
h1 .btn{ | ||
padding:20px!important; | ||
color:black!important; | ||
background-color:white!important; | ||
border-radius:5px!important; | ||
font-size:20px!important; | ||
} | ||
h1 .btn:hover{ | ||
background-color:#48808a!important; | ||
} | ||
|
||
blockquote p, .card-title, .modal-body p{ | ||
color:black; | ||
} | ||
|
||
tr td a { | ||
color: white; | ||
} | ||
|
||
</style> | ||
|
Oops, something went wrong.