/ctfd-rewind

Interesting insights on CTFd competitions.

Primary LanguagePythonMIT LicenseMIT

CTFd Rewind

CTFd Rewind is a simple tool that provides interesting visual insights on finished CTFd competitions.

Features

  • Submissions & solves per category
  • Top users failed submissions
  • First bloods
  • Challenges stats
  • Most popular category
  • Longest submission
  • Top failed submissions per challenge

Aditionally, CTFd Rewind also allows you to export visualization results in multiple formats (SVG, PNG, PDF).

How to Use

Clone the repo:

git clone https://github.com/caveeroo/ctfd-rewind.git

To run the tool you will need the backup of the CTFd event.

Export and unzip the backup (docs.ctfd.io/docs/exports/ctfd-exports) to the newly created directory (ctfd-rewind).

Run the tool:

python main.py

To get the visual representation of the results, run the visualizer. You can choose between svg, png, pdf and all, which will create a zip file containing all previous output formats.

python visualizer.py -h

usage: visualize.py [-h] --format {svg,png,pdf,all}

Export graphs in specified format

options:
  -h, --help            show this help message and exit
  --format {svg,png,pdf,all}
                        Output format for the graphs
python visualizer.py --format all
results_all.zip created successfully

CTFd Rewind result examples

image

image

s/o hackon.es for providing sample export data

Contributing

Contributions are welcomed! If you're interested in improving CTF Rewind, please feel free to fork the repository, make your changes, and submit a pull request. For major changes, please open an issue first to discuss what you would like to change.