CTFd / ctfcli

ctfcli is a tool to manage Capture The Flag events and challenges
https://ctfd.io/
Apache License 2.0
165 stars 67 forks source link

Support CTFd site password #152

Closed TheNewJavaman closed 2 weeks ago

TheNewJavaman commented 3 weeks ago

Installing a challenge to a CTFd instance with a site password returns a HTTP 401 error.

Temporary fix

Edit site_password cookie in .ctf/config

[config]
url = https://my-instance.ctfd.io
access_token = ctfd_mytoken

[cookies]
site_password = my_site_password

[challenges]

Proposed solution

Add field site_password

[config]
url = https://my-instance.ctfd.io
access_token = ctfd_mytoken
site_password = my_site_password

[challenges]

I forked and am working on the proposed solution

pl4nty commented 3 weeks ago

The cookies section is deliberately separate https://github.com/CTFd/ctfcli/issues/111

ColdHeat commented 2 weeks ago

I think the current solution is acceptable until the config file is entirely restructured.