Description
I don't like scrolling down to read the code of my website, so I've squished it. As a bonus, my pages load faster! Browse here, and find the flag!
Setup
View-source
Browse to the provided URL (http://titan.picoctf.net:54777/) and open DevTools.
Alternatively, fetch the HTML with curl and search for picoCTF{.
Solution
- Step 1Inspect the DOMIn DevTools, right-click the body and choose "Expand recursively". Scroll until you spot the picoCTF{...} string.
- Step 2One-liner optionUse curl -s URL | grep -oE 'picoCTF{.*}' to print only the flag, even though the HTML is minified.curl -s http://titan.picoctf.net:54777/ | grep -oE 'picoCTF{.*}' --color=none | cut -d "\"" -f1
Flag
picoCTF{pr3tty_c0d3_743...}
Even minified HTML can't hide a plaintext flag.