juice-shop / juice-shop-ctf

Tool to export Juice Shop challenges and hints in data format compatible with CTFd, RootTheBox or FBCTF
http://owasp-juice.shop
MIT License
410 stars 117 forks source link

CTFd generator as node.js CLI app #3

Closed bkimminich closed 7 years ago

bkimminich commented 7 years ago

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:

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

lock[bot] commented 5 years ago

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.