EOF{@stley}Challenge Description:
"Not all languages are simple as Python or fundamental like C, some are a path to the Dark Side."
Hint: Everything is there, just waiting to be found. capture the flag it will be in EOF{} format, focus on @NGFYU.txt
# Check the file size
cat NGFYU.txt | wc -l
# Output: 9168 lines
# Check the end of the file
tail -n 20 NGFYU.txt
Result: File contains what appears to be "Never Gonna Give You Up" lyrics repeated in various orders.
Found special lines in the file containing base64 encoded strings:
# Line 509 contained a base64 encoded string
echo "aHR0cHM6Ly9uZXZlci1nb25uYS1may15b3UtdXAudmVyY2VsLmFwcC8=" | base64 -d
# Output: https://never-gonna-fk-you-up.vercel.app/
The URL led to an esoteric programming language called "NGFYU" (Never Gonna F*** You Up):
Another line contained a Google Drive link:
# Line 1751 had another base64 string
echo "aHR0cHM6Ly9kcml2ZS5nb29nbGUuY29tL2ZpbGUvZC8xVElyZGlpemFsRUdwTlU1YjRGUTlrMlhMUjRKc08xenAvdmlldz91c3A9c2hhcmluZw==" | base64 -d
# Output: https://drive.google.com/file/d/1TIrdiizalEGpNU5b4FQ9k2XLR4JsO1zp/view?usp=sharing
# Download from Google Drive
FILE_ID="1TIrdiizalEGpNU5b4FQ9k2XLR4JsO1zp"
curl -L "https://drive.google.com/uc?export=download&id=${FILE_ID}" -o flag.png
# Check file type
file flag.png
# Output: PNG image (82K)
The Key Discovery: The flag is hidden in the image but not visible with normal settings. You need to adjust brightness and contrast to reveal it!
Method 1: Using GIMP or Photoshop
EOF{@stley} becomes visible!Method 2: Using ImageMagick (CLI)
# Adjust brightness and contrast
convert flag.png -brightness-contrast 50x50 flag_adjusted.png
# Or use auto-level for automatic adjustment
convert flag.png -auto-level flag_adjusted.png
# View the adjusted image
open flag_adjusted.png
Flag Revealed: EOF{@stley}
Reference: "@tsley" refers to Rick Astley (the NGFYU rickroll theme!)
The file contained hidden metadata on specific lines:
EOF{@stley}This challenge cleverly combined:
Final Flag:
EOF{@stley}
A tribute to Rick Astley - never gonna give you up! 🎵
base64 - Decoding hidden URLscurl / wget - Downloading the flag image