# cat blog >> /dev/brain 2> /proc/mind
cat blog >> /dev/brain 2> /proc/mind
# curl -v http://gynvael.vexillium.org/ext/thepicture/picture.image Content-Encoding: rle Content-Type: image/raw; w=640,h=212,bpp=8 # cat mission_05.py from struct import unpack from PIL import Image with open('picture.image') as f: cdata = f.read() ddata = [] for i in range(0, len(cdata), 2): v = unpack('B', cdata[i + 1])[0] ^ 1 for _ in range(unpack('B', cdata[i])[0]): ddata.append(v * 255) image = Image.new('L', (640, 212)) image.putdata(ddata) image.save('output.png') # python mission_05.py
curl -v http://gynvael.vexillium.org/ext/thepicture/picture.image
cat mission_05.py
python mission_05.py
Post a Comment
No comments:
Post a Comment