Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example of a challenge.yml for type:firstblood #1

Open
pedrosa-t opened this issue Mar 23, 2021 · 2 comments
Open

Example of a challenge.yml for type:firstblood #1

pedrosa-t opened this issue Mar 23, 2021 · 2 comments

Comments

@pedrosa-t
Copy link

Hi,
Thank you very much for the plugin.
Can you provide a template of challenge.yml to be used with ctfcli with the type:firstblood ? Or to point to an example ?
Thanks.

@krzys-h
Copy link
Owner

krzys-h commented Mar 24, 2021

I did not try using ctfcli yet, but I don't think it will be possible until CTFd/ctfcli#19 is merged. After it is (or you merge it locally), it should probably just work with:

name: Test
description: This is a sample description
value: 100
type: firstblood

extra:
    first_blood_bonus[0]: 30
    first_blood_bonus[1]: 20
    first_blood_bonus[2]: 10

(I know the array syntax is weird, but this was the best I could do without hacking the core CTFd files in the plugin too badly)

@pedrosa-t
Copy link
Author

Hi,
I've followed your tips and everything is working.
I’ve forked ctfcli and applied the merge of the CTFd/ctfcli#19, Using this version and the example that you gave and changing the type to firstblood , all worked nicely.
Thank you very much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants