Editing Challenges - Admin¶
Abstract
This KB article will cover how to edit challenges in Cloud CTF. If you have not yet created a Cloud CTF environment, please see the article titled Creating a Cloud CTF Environment and the section titled Launching Your Cloud CTF Environment.
There are a few ways to edit challenges in Cloud CTF. These include editing challenges directly from the main challenges page, editing challenges from the Admin challenges page, or editing challenges from within your personal challenge library. Please click on an option below to learn how to edit a challenge from one of the three different locations.
Edit Challenges Directly from the Main Challenges Page¶
One way for a CTF Admin to edit challenges is by navigating to the main challenges page in Cloud CTF. This option may be the quickest way to edit a challenge on the fly, and will allow a CTF Admin to Test the challenge to ensure that it is working as expected and even allow you to save it to your Personal Challenge Library. To begin, please see the steps below.
-
Make sure you have clicked on the Challenges tab at the top of your screen, as shown in the example below.
-
Next, please select a category that contains the challenge you wish to edit.
-
Finally, please click on a challenge to view it.
-
Once you have selected a challenge to edit, a popup window will appear, as shown in the image below. There are three items highlighted in this image. They are:
-
The Edit icon. This allows you to edit the challenge. Please see the section titled How to Edit Challenge Properties for more information.
-
The Save icon. This allows you to save the challenge. Please see the section titled How to Save a Challenge for more information.
-
The Test icon. This allows you to test the challenge after you have made changes or before you save it to your personal challenge library. Please see the section titled How to Test a Challenge for more information.
-
-
To edit the challenge, please click on the Edit icon.
-
This will open the Edit a Challenge window and allow you to edit the challenge.
-
Please see the section titled How to Edit Challenge Properties for more information related to editing challenge properties.
Edit Challenges from the Admin Challenge Page¶
CTF Admins have the ability to edit challenges from within the Admin page. By clicking on the Challenges tab on the Admins page, CTF Admins get an overview of all active challenges for a CTF competition. Here, CTF Admins can view failed/successful challenge attempts and manage all challenges. To edit a challenge from this area, please follow the steps below.
-
Navigate to the Admins page by clicking on ADMINS, as shown in the image below.
-
Next, please click on the CHALLENGES tab.
-
You will then be presented with a list of active challenges for the current CTF competition, as shown in the example below.
-
Please locate the challenge you wish to edit.
-
Next, please click on the Settings icon and then click Edit.
-
This will open the Edit a Challenge window and allow you to edit the challenge.
-
Please see the section titled How to Edit Challenge Properties for more information related to editing challenge properties.
Edit challenges in your Personal Challenge Library¶
Note
In addition to single-choice answer challenges, we also now have the option of creating challenges with multiple choices to choose from. Please see our article titled Multiple Choice Challenges for more information.
CTF Admins have the ability to edit challenges from within their personal challenge library. The personal challenge library provides Admins the ability to save customized challenges for future competitions. To edit a challenge located in your personal challenge library, please follow the steps below.
-
Please click on ADMINS at the top of the page.
-
Next, please click on the LIBRARY tab.
-
Click on the settings icon to the left of the challenge you wish to edit.
-
Finally, please click on Edit.
-
Once you have clicked on edit, the Edit a Challenge window will appear, which will allow you to edit the challenge.
-
Please see the section titled How to Edit Challenge Properties for more information related to editing challenge properties.
How to Edit Challenge Properties¶
Challenge Properties¶
-
Once you have opened the Edit a Challenge window for a specific challenge, you can begin editing the challenge properties. The challenge properties are divided into four categories listed below. Each category can be accessed by clicking on the associated icon in the left-hand side of the window.
Edit Challenge Information¶
-
Once you have opened the Edit a Challenge window, please make sure the flag icon has been selected. This will allow you to edit general challenge information. The flag icon is located on the left-hand side of the window.
-
Here you can edit the (1) challenge name, (2) description, (3) point value, (4) challenge flag type (String or Regex), and (5) the actual flag (answer).
-
To add another challenge flag, please click on Add a Flag and select either String or Regex (regular expression) as the flag type.
- If the flag is a String type, the player has to match the string exactly, to include the same capitalization, punctuation, and spelling.
- If the flag is a Regex, you may enter a regular expression that will be used to match the players' input. Regular expressions allow for more flexibility in the players' flag entry, but they are more complicated to create if you are not familiar with them. To learn more about regular expressions used for Regex flags, please see https://regex101.com.
Edit Artifacts and Hints¶
-
To edit artifacts and hints, please make sure you have clicked on the Artifacts and Hints icon as shown in the image below.
-
You will then be presented with challenge artifacts and hints attached to the challenge, and can click on the title of the artifact or hint to edit or remove it.
- Artifact - A challenge artifact can be an uploaded file (text, binary, picture, etc.) or a link to an external website.
- Hint - A challenge hint provides players with more information about a particular challenge, usually for a small fee.
-
To add an artifact to an existing challenge, please click on Add an Artifact and then select your artifact type. This can be either a file or a web link.
-
Next, please supply a name for the artifact and then add a file or web link to the challenge. After you are finished, please click on confirm to add the artifact to your challenge.
Adding an Artifact to a Challenge
-
To add a hint to an existing challenge, please click on Add a Hint, as shown in the example below.
-
You can then add a hint message and assign it a point value.
- The hint message is the message that will be revealed to a CTF Player when they unlock the hint.
- The point value is how much it will cost a team to unlock the hint.
-
When you are finished, please click Confirm to add the hint to the challenge.
Advanced Challenge Settings¶
-
To edit the advanced settings of a challenge, please click on the Settings icon, as shown in the image below.
-
You will then see three items that can be modified.
- The Enabled checkbox allows CTF Admins to enable or disable challenges for a CTF competition. If you would like to hide a specific challenge for a CTF, simply uncheck the Enabled checkbox.
- The Category field allows a CTF Admin to choose which category this challenge belongs to. To change the challenge category, please click on the category field, and either select an existing challenge category from the dropdown menu, or create a new category by typing in your desired category name. For more information on creating new categories, please see the article titled Category Management.
- The Max number of attempts field allows CTF Admins to limit the number of times a CTF player can attempt to solve this challenge.
Edit Challenge Tags¶
-
To edit challenge tags, please click on the Tags icon, as shown in the image below.
-
Next, please click on the Tags input field.
-
You can now begin typing a custom tag or select one from the dropdown menu that appears.
-
When a tag has been successfully added, it will be shown below the Tags input field and highlighted in blue.
-
To remove a specific tag, please click on the X icon as shown in the image below.
How to Save a Challenge¶
-
Once you have finished editing your challenge, please click on the Confirm button to save all changes made to the challenge.
How to Test a Challenge¶
Testing a challenge allows a CTF Admin to preview the behavior of a challenge without affecting the score or any statistics related to a competition. To test a challenge, please follow the steps below.
-
Make sure you have clicked on the Challenges tab at the top of your screen, as shown in the example below.
-
Next, please select a category that contains the challenge you wish to edit.
-
Finally, please click on a challenge to view it.
-
You will then see a popup window with a flag input field and a few controls related to the challenge. Please input what the correct flag should be to test the challenge.
-
Next, please click the Test button.
-
You will then be presented with a message indicating whether the test passed or failed.
- A green checkmark indicates the test passed.
- A red X indicates the test failed.
Regex Example¶
Our Cloud CTF competitions employ regular expressions (regex) to test and grade answers submitted by players. In order to test regex, you can follow the same instructions as listed in the string example above. You can test multiple different answers that should match the pattern.
In the image above, regex is shown clearly. This one regex answer will match and be correct for the following answers:
- Wh4t_th3_h3x_is_th15
- wh4t_th3_h3x_is_th15
- flag{Wh4t_th3_h3x_is_th15}
- flag{wh4t_th3_h3x_is_th15}
- Hellowh4t_th3_h3x_is_th15World
Instructors have found that the following link has helped them write regex: please see https://regex101.com.
How to Delete a Challenge¶
-
To delete a challenge from the Edit a Challenge window, please click on Delete, as shown in the image below.
-
You will then be presented with a confirmation message informing you that the action you are about to take is not reversible. If you are certain you would like to delete the challenge, please check the box next to "I understand that this action is unrecoverable".
-
Finally, please click on Confirm in the confirmation message window to completely delete the challenge.
More on Challenge Management¶
If you are interested in learning more about managing challenges in Cloud CTF, please see the article titled Cloud CTF Challenge Management for more details. Our Challenge Management article links to topics such as creating and saving custom challenges, adding challenge hints and flags, understanding challenge statistics, and other advanced challenge management features.
Have a Question? Contact Support¶
If you experience any issues starting or viewing Cloud CTF in your web browser, please see the article titled Can't Launch Cloud CTF for helpful tips on resolving the matter.
We're here to help you. If you still have questions after reviewing the information above, please feel free to submit a ticket with our Support Team and we'll get back to you as soon as possible.
Thank You for Your Feedback!