IceCTF2018-ilovebees

Question

https://static.icec.tf/iloveflowers/

Solution

上網搵左搵 , 原來係抄 halo2 宣傳橋段入面果個網既
http://www.ilovebees.co/

對比完2個網既source code之後發現 , 原版係冇favicon.
問題一定係出係favicon身上!

首先extract晒d frame出黎先啦 , 之後再用script拎番每幅圖既每一粒pixel既r,g,b合埋就搞掂

1
2
3
4
5
6
7
8
9
10
11
12
13
from PIL import Image, ImageFont, ImageDraw

c = ""
for i in range(110):
im = Image.open('frame_' + str(i).zfill(3) + '_delay-0.1s.gif')
im = im.convert('RGB')
for x in range(16):
for y in range(16):
r,g,b = im.getpixel((y,x))
c += '{:02x}{:02x}{:02x}'.format(r, g, b)
with open("ilovebees", "wb") as f:
f.write(c.decode('hex'))
f.close()