压缩包需要密码,暴力破解得知为0573
发现里面压缩包的密码也是文件名0114
估计是套娃题,拿脚本解压
import zipfile
name = '0573'
while True:
fz = zipfile.ZipFile(name + '.zip', 'r')
fz.extractall(pwd=bytes(name, 'utf-8'))
name = fz.filelist[0].filename[0:4]
fz.close()
解压出来六百多个压缩包,得到qr.txt,qr.txt内容是RGB数据,整理成如下格式
使用脚本将RGB数据写成图片
import itertools
from PIL import Image
max = 200
file = open("qr.txt", "r")
img = Image.new("RGB", (max, max))
for y, x in itertools.product(range(max), range(max)):
pixel = eval(file.readline())
img.putpixel([x, y], pixel)
img.show()
flag{ta01uyout1nreet1n0usandtimes}
标签:name,套路,千层,fz,RGB,max,import,txt,MRCTF2020 From: https://www.cnblogs.com/fishjumpriver/p/17838253.html