In some of the previous CTF challenges, I came to know that we shall create a QR code from the 0's and 1's.
So I made a script to convert the 0's and 1's to QR code.
from PIL import Imagewith open('data.txt','r') as f: buff = f.read()rgb= for i in range(len(buff)): if buff[i]=='0': rgb.append((255,255,255)) else: rgb.append((0,0,0))image = Image.new(mode="RGBA", size=(370,370)) image.putdata(rgb) image.save("2.png")
After creating the Image I saved it as PNG image. ( Can be JPG or JPEG or BMP too ).