Home adCTF2014 December 9th: QRgarden
Writeup
Cancel

December 9th: QRgarden

Category

PPC

Hint

Read a lot, and the flag begins with “ADCTF_”.

Challenge

We are given a large image filled with QR codes.

Solution

We use zbar to read QR codes:

1
sudo apt-get install zbar-tools

We split the image into the individual qr codes using imagemagick, then read each QR code until we find one starting with ADCTF_

The full image is 8700x8700 pixels, and each qr code is 87x87 pixels. We split this the large image into tiles:

1
convert -crop 87x87 qrgarden.png qrcodes/tile_%d.png

Next we read all the images until we find the flag using zbar:

1
2
$ for i in qrcodes/*; do zbarimg $i 2>&1; done |grep ADCTF
QR-Code:ADCTF_re4d1n9_Qrc0de_15_FuN

Flag

ADCTF_re4d1n9_Qrc0de_15_FuN