In this activity, you will find four flags (and an optional bonus flag) hidden somewhere within the website. Each flag will include a random word. Keep track of the random words. You will submit all words in the next item.
Open the site in a new tab by clicking this link: Capture the Flag Site
1. The first flag is hidden in the site's source code. Use the View Page Source feature to find it. If your right-click is disabled, copy and paste this into your web browser: view-source:https://capturetheflag-8785761.codehs.me/index.html
2. In the source code, there is a style.css file. Search this file for the second flag. Take note of the web address of this file. How is it different than the original website?
3. In the source code, there is also a script.js file. Search this file for the third flag. Look at the web address here as well. What is the only part of the address that is different in each file?
4. Lastly, there is another file that is NOT listed on the website or in the source code. You can only access this file by typing it in the web address bar. To find this file, unscramble the following word and place it in the web address in the format shown:
- Unscramble this word: rescet
- Use the following format to navigate to the hidden file. Replace the blank before
.txt
with the unscrambled word and go to that site: - https://capturetheflag-8785761.codehs.me/___________.txt
5. Advanced Bonus Flag (Optional): Right-click on the image of the cat and save the file to your desktop. Open the file with a text editor (either Notepad on a Windows computer or TextEdit on a Mac). Find the bonus flag!