【misc】2021 极客大挑战(部分)
1、今天有被破防吗?
0x1
最早上的一批题目,当时没什么思路。后来pwn神在群里提到了RGB,瞬间懂了!
参考链接:
0x2
下载附件得到一个很长的txt文本,其中每一行都是三个数字。如果知道是RGB就好处理了。
0x3
注意到一共1166400行,那么就是1080*1080的规格
简单的python脚本处理一下图片
from PIL import Image
res = []
with open("./ans.txt","r") as f :
res = f.readlines()
for i in range(len(res)):
res[i] = res[i].strip("\n")
print(len(res))
x = 1080
y = 1080
im = Image.new("RGB",(y,x))
leng = len(res)
count = 0
for i in range(x):
for j in range(y):
print(f"time --> {
count}")
rgb = res[count].split(' ')
im.putpixel(