题目:
下载文件得到list.zip和santa-id.png
list.zip中是大量png图片,内容均为二维码。
注意到santa-id.png上的ID:7ab7df3f4425f4c446ea4e5398da8847,可以发现存在对应名称的图片,扫码得到:
Now I have Xavier in 1b3ff9ed24dfa790c7a3d68902cbdaee
再扫码1b3ff9ed24dfa790c7a3d68902cbdaee.png得到:
Next kiddie is Samuel in aa5e9b88521b4e209615fdeb6e26c640
可以看出每个二维码内容都提示了下一条信息所在,尝试写脚本循环处理:
from pyzbar import pyzbar
from PIL import Image,ImageEnhance
def get_ewm(img_adds):
img = Image.open(img_adds)
txt_list = pyzbar.decode(img)
for txt in txt_list:
barcodeData = txt.data.decode("utf-8")
return barcodeData
path = 'C:/Users/Administrator/Desktop/1.png'
img = Image.open(path)
txt_list = pyzbar.decode(img)
print(txt_list)
for txt in txt_list:
print(txt)
barcodeData = txt.data.decode("utf-8")
print(barcodeData)
print(txt_list[0].data.decode("utf-8"))
运行脚本直到循环报错。
可以看到报错前最后的输出是:
Y0ur gift is in goo.gl/wFGwqO inugky3leb2gqzjanruw42yk
访问goo.gl/wFGwqO网址得到flag。(好像已经没法访问了……强行靠关键字搜到了flag。)
flag:3DS{I_h0p3_th4t_Y0u_d1d_n0t_h4v3_ch4ck3d_OnE_by_0n3}