ctfcli icon indicating copy to clipboard operation
ctfcli copied to clipboard

Add a command to create dir structure from an existing installation

Open ColdHeat opened this issue 5 years ago • 3 comments

Something to pull down all the data from a given CTFd instance.

ColdHeat avatar May 20 '20 15:05 ColdHeat

Hey, I would like to work on this feature :smiley:

But to be sure on what the feature will look like, I want to understand if the command will only be accessible by the admins ? I think it would be great to use the CLI as a user. This mean the "init" command can also ask for a user token and so on ...

What do you think of this ?

jarrault avatar Jan 24 '21 01:01 jarrault

Glad that you're going to take it on!

Technically there's no way to restrict it entirely to admins because users can view challenges via the API as well. However only admins can view sensitive things like all flags, tags, hints, etc.

I don't think that ctfcli should be useable for a user to archive the entire CTF because it would just have incomplete data. The admin should be able to use ctfcli to generate the ctf directory though which is the intention of this issue.

ColdHeat avatar Jan 24 '21 22:01 ColdHeat

Thanks for your answer, I will try to implement it.

jarrault avatar Jan 25 '21 16:01 jarrault