Skip to content

Latest commit

 

History

History
64 lines (40 loc) · 1.6 KB

README.md

File metadata and controls

64 lines (40 loc) · 1.6 KB

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.