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

Flag Case Sensitivity #32

Closed
nopresearcher opened this issue Oct 24, 2020 · 3 comments · Fixed by #55
Closed

Flag Case Sensitivity #32

nopresearcher opened this issue Oct 24, 2020 · 3 comments · Fixed by #55
Milestone

Comments

@nopresearcher
Copy link

Add the ability to specify 'Case Insensitive' flags in the spec.

@ColdHeat
Copy link
Member

I believe you can specify this by specifying the direct JSON that's posted up to the API. https://github.com/CTFd/ctfcli/blob/master/ctfcli/spec/challenge-example.yml#L29-L33

I believe you can put case_insensitive in the data section but that's just off the top of my head.

@ColdHeat
Copy link
Member

If anything this should be an improvement to the reference yaml but I'm not sure about adding a new yaml field for data.

@ColdHeat ColdHeat reopened this Oct 27, 2020
@ColdHeat ColdHeat added this to the 0.1.0 milestone Feb 8, 2021
@ColdHeat
Copy link
Member

Since I had to do this myself recently here is how you do it:

flags:
    - stuff
    - {
        type: "regex",
        content: "(.*)STUFF(.*)",
        data: "case_insensitive",
    }

ColdHeat added a commit that referenced this issue Jun 19, 2021
…55)

* Add examples of more complicated flag creation to `challenge.yml` spec
* Closes #32
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

Successfully merging a pull request may close this issue.

2 participants