Skip to content
/ CCG Public

Generate CTF challenges, compatible with CTF Kit deployment framework

License

Notifications You must be signed in to change notification settings

OxNinja/CCG

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CTF Challenge Generator (CCG)

Logo

This package generates CTF challenges compatible with CTF Kit, according to user-provided options such as category, difficulty, custom flag...

Install

From source

Use https://github.com/OxNinja/CCG/tree/develop for latest features (unstable)

git clone https://github.com/OxNinja/CCG && cd CCG
pip install -e .

From PyPi package (not available for the moment)

pip install ccg

Dependancies

  • Python 3.10
  • pip

How to use

Basic usage

ccg new my-challenge

ccg new my-challenge --flag=mY_sUpeR_fl4G --category=web --difficulty=2

ccg new -f mY_sUpeR_fl4G -c web -s ssti -d 1

Concept

  • Any challenge have an auto generated challenge.yml configuration file

    This file represents a challenge in a YAML format, this files is useful to get information about the challenge, for the CTF platform and for its deployment. This file is compatible with CTF Kit.

  • Any challenge have a flag.txt validation file
  • If a challenge requires users to download files, they will be writen in {challenge_path}/files/
  • If a challenge requires sources, they will be stored in {chalenge_path}/src/

    The challenge will be run using its own Dockerfile or docker-compose.yml in a containerization context.

Implemented

  • Crypto
    • Encodings (basics)

Working on

  • Web template for Docker
  • SQLi challenge template

FAQ

I can't install CCG, what can I do?

Blame me and create a new question in the repository.

About

Generate CTF challenges, compatible with CTF Kit deployment framework

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published