Get this title of the file, is a compressed package, after decompression, we see a 1.txt file, opened after all a bunch of numbers, and then see 255,0,144 and other content, estimated to be the pixel value of the picture.
Since it is known that the pixel value, in the CTF, is generally 8 bits of RGB images, we use Python to write a script to generate this image, Python uses PIL this library. Divide all the data into 3 groups
We can know 3 a group of length of 95477, write a small program, you can know is the picture of 301*377, and then the picture is filled with pixels, the completion of the image generation.
ImportOS fromPILImportImagedefdecode (): Count=0#Open the file, and get all the contentsf = open ('./1.txt','R') Data=f.readlines () Lis= [] #Print (type (data)) forIinchData:#divide all the data with ', ' to separateD = I.split (',') s= [] forJinchD:s.append (j) Count+ = 1ifCount = = 3: Lis.append (s) s=[] Count=0#print (len) 95477 = = 301 * 377Last = [] forIinchlis:last.append ((int (i[0]), int (i[1]), int (i[2] )) c= Image.new ("RGB", (x, y)) Count=0 forIinchRange (0,301): forJinchRange (0,377): C.putpixel ([I,j],last[count]) Count+ = 1c.show () c.save ("C.png")if __name__=='__main__': Decode ()
Well, this picture is a two-dimensional code.
File here: http://pan.baidu.com/s/1c1WC50k
2016/12/3-Winner Cup online 1-1-misc