As a CTF event organizer
I want to have a command line client to set up CTFd for OWASP Juice Shop
so that I can have the whole environment creation process automated (including the now manual step 5)
MVP
Implement exactly the HTML page feature set as a node.js CLI app, e.g. in a wizard style with similar defaults, for example like this:
npm i -g juice-shop-ctf
juice-shop-ctf
Generate INSERT statements for CTFd with the OWASP Juice Shop challenges
-------------------------------------------------------------------------------------
1. Juice Shop URL to retrieve challenges (https://juice-shop.herokuapp.com)
localhost:3000 <Enter>
2. Path or URL to ctf.key file (https://raw.githubusercontent.com/bkimminich/juice-shop/master/ctf.key)
c:\github\juice-shop\ctf.key <Enter>
3. DELETE all CTFd Challenges before INSERTs? (Y/n)
<Enter for "Yes" default>
4. SELECT all CTFd Challenges after INSERTs? (Y/n)
N <Enter>
SQL statements are generated...................Done!
--> c:\github\juice-shop-ctf\ctfd-inserts.sql
5. Display CTFd setup step-by-step guide? (y/N)
<Enter for "No" default>
Ideas
Use https://github.com/mysqljs/mysql or a similar library to connect to the CTFd DB and execute the INSERTs instead of leaving this a manualy copy-paste-execute job
Download, installation and launching of the CTFd server in the tool
Offer a dedicated docker-compose.yml which launches a fully OWASP Juice-Shop-ready CTFd server
This thread has been automatically locked because it has not had recent activity after it was closed. :lock: Please open a new issue for regressions or related bugs.
User Story
As a CTF event organizer I want to have a command line client to set up CTFd for OWASP Juice Shop so that I can have the whole environment creation process automated (including the now manual step 5)
MVP
Implement exactly the HTML page feature set as a node.js CLI app, e.g. in a wizard style with similar defaults, for example like this:
Ideas
INSERT
s instead of leaving this a manualy copy-paste-execute jobdocker-compose.yml
which launches a fully OWASP Juice-Shop-ready CTFd server