Challenge Author: Jeffery John
Description
I’ve gotten bored of handing out flags as text. Wouldn’t it be cool if they were an image instead?
Process / Notes
- Download the zipped file and unzip.
fileon the file reveals it’s a small image.- Opening the file shows it’s a QR code.
- Without a phone, the hint about using zbar tools led me to try to figure out what those were.
- Acquiring zbar tools with
sudo apt install zbar-tools - Using zbar-tools directly didn’t work.
- Some searching around on YouTube informed me that the command you want to run is
zbarimg zbarimgon the file revealed the text of the flag
- It can also return a URL it encodes without actually following that link.
Hints
- QR codes are a way of encoding data. While they’re most known for storing URLs, they can store other things too.
- Mobile phones have included native QR code scanners in their cameras since version 8 (Oreo) and iOS11.
- If you don’t have access to a phone, you can also use zbar-toools to convert an image to text.
Core Lessons
- QR codes can encode all sorts of information.
- How to use
zbarimg