Shakti CTF 2021 Pillow Challenge WriteUp
Posted: Apr 6, 2021 | ~ 1 min read time#ctf #coding
This was an awesome beginner CTF that has an accompanying conference called ShaktiCon. This is a free international conference dedicated to women in cybersecurity.
I focused on the forensic and miscellaneous challenges which were above beginner but not, from my experience, fully intermediate-level. I plan to attend next year and would highly recommend this to others.
Miscellaneous Challenge: Pillow
Fix them up and get your flag!
For this challenge, we were given 3,000 10x10 jpg files. The clue was 60x50 so I assume we need to arrange these files like tiles in a mosaic.
Dear friendly Google came to the rescue and showed that there has been a similar question posed on StackOverflow. Basically, the suggested solutions use the Python Image Library (PIL) to manipulate image files.
Using the StackOverflow answers as the base, I made a script that iterated through all the images and stitched them into rows of 50. The script then joined the rows together vertically to create a 500-pixel wide by 600-pixel tall image.
To view the image correctly, I used GIMP to rotate and flip the picture to get the flag shaktictf{pill0w_lik3_a_g00d_c0nscience}