Search source
Description
The developer of this website mistakenly left an important artifact in the website source, can you find it?
The website is here.
Solving
- Downloading whole website via 'wget --recursive http://saturn.picoctf.net:56849/'
- Then you coud easily
grep
the sourcefiles for the flag.
#!/bin/bash
echo "Downloading website..."
wget --recursive http://saturn.picoctf.net:56849/ > /dev/null 2>&1
echo "Changing DIR Name..."
mv saturn.picoctf.net:56849 website
echo "Looking for flag..."
grep -rho "picoCTF{.*}" website
cd ..
rm -rf website