13 lines
364 B
Python
Raw Permalink Normal View History

2021-01-14 21:21:59 +01:00
#!/bin/python
from PIL import Image, ImageColor
im = Image.new('1', (4000,4000), 'white')
with open('secret_map.txt', 'r') as f:
while (cl := f.readline()):
painting = cl.split(" ", 1)
im.putpixel((int(painting[1], 16),int(painting[0], 16)), ImageColor.getcolor('black', '1'))
im.save('maybe.png')
# 247CTF{0c895fb57954df7f83756e1f7718e661}