Skip to content

A template repo for CTF organizer collect and distribute Challenges

License

Notifications You must be signed in to change notification settings

summershrimp/ctf-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ctf-template

A template repo for CTF organizer collect and distribute Challenges

中文版

Usage

Project structure

ctf-template/
├── challenges                  // challenges your contest have.
│   ├── challenge-short-name1   // challenge short name as folder (should only contains /[a-z0-9_-]/.)
│   │   ├── challenge.yaml      // challenge configuration file.
│   │   ├── dist                // Distribution files players can directly download.
│   │   │   └── file
│   │   ├── Dockerfile          // Dockerfile that build images for server end.
│   │   ├── src                 // Source code and files not distributed to players.
│   │   │   ├── flag
│   │   │   ├── pwn.c
│   │   │   └── pwn.xinetd
│   │   └── writeup             // Writeup for current challenge
│   │       ├── images
│   │       └── README.md
│   ├── challenge-short-name2   // Another challenge.
.....
|   └── short-name3
├── examples                    // Contains some example challenge to help understand.
├── LICENSE
├── contest.yaml                // (not finished) Contest configuration file.
├── build.sh                    // (not finished) Script to generate contest configuration.
└── README.md                   // This file.

challenge.yaml

# Challenge configuration
name: simple pwn                # Challenge name
type: pwn                       # Challenge type (web,pwn,misc,rev,mobile,crypto etc.)
value: 200
description: >
        This is a single line description
        and will fold to one line.
flag: flag{s1mple_pwn_fl@g}     # Correct flag
hints:                          # Hints for current challenge
    - The first hint.
    - The second hint.
image: true                     # Shoule build docker image for this challenge

contest.yaml

# Contest configuration
title: Asuri-CTF                  # contest title
description: > This is a test     # contest description
                ctf contest.
time:                             # contest time 
    start:  2018-12-14 08:00:00 +8
    end:    2018-12-14 22:00:00 +8

About

A template repo for CTF organizer collect and distribute Challenges

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published