acasi-ctf / ctf

Capture the Flag Learning Platform
https://acasi-ctf.github.io/docs
Apache License 2.0
4 stars 2 forks source link

Sprint7 edit cipher challenges #209

Closed EllisHZH closed 2 years ago

EllisHZH commented 2 years ago

For all the cipher challenge, they have a flag in the code. The flag was encode with base64. When user complete the challenge, the flag will show up as XXXX-XXXX-XXXX-XXXX format. Add flag to the challenges JSON.

Closes issues

Closes #181.

Before

When trying a cipher challenge, there were no flags or user actions to "complete" the challenge.

After

This pull request implements flags into the Python code, as well as obfuscating the flag in the code so it is not in plain text.

codecov[bot] commented 2 years ago

Codecov Report

Merging #209 (b85bfa2) into main (b29b6d0) will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##               main     #209   +/-   ##
=========================================
  Coverage     80.25%   80.25%           
  Complexity       56       56           
=========================================
  Files            19       19           
  Lines           395      395           
  Branches         26       26           
=========================================
  Hits            317      317           
  Misses           60       60           
  Partials         18       18           
Flag Coverage Δ
unittests 80.25% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.


Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update b29b6d0...b85bfa2. Read the comment docs.