codeFest 20: b1n4rY

b1n4rY

Category: Forensics

465 points

Is this a binary? Yes it is! Can you visualise it?

Author: Endymion#0280

file: b1n4rY.txt

b1n4rY.txt

111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
111111111111111111111111111111111111111111111111111111100000000000000110000110000111111001100000000000000111111111111111
111111111111111000000000000001100001100001111110011000000000000001111111111111111111111111111110011111111110011111100000
011111111110011111111110011111111111111111111111111111100111111111100111111000000111111111100111111111100111111111111111
111111111111111001100000011001111000011111100001111001100000011001111111111111111111111111111110011000000110011110000111
111000011110011000000110011111111111111111111111111111100110000001100110000110011000000111100110000001100111111111111111
111111111111111001100000011001100001100110000001111001100000011001111111111111111111111111111110011000000110011001100111
111000011110011000000110011111111111111111111111111111100110000001100110011001111110000111100110000001100111111111111111
111111111111111001111111111001100110000001100110011001111111111001111111111111111111111111111110011111111110011001100000
011001100110011111111110011111111111111111111111111111100000000000000110011001100110011001100000000000000111111111111111
111111111111111000000000000001100110011001100110011000000000000001111111111111111111111111111111111111111111111000011000
011001111111111111111111111111111111111111111111111111111111111111111110000110000110011111111111111111111111111111111111
111111111111111001111110011000000111100110011000000000000001111001111111111111111111111111111110011111100110000001111001
100110000000000000011110011111111111111111111111111111100111111001111110000111111111111000011000000111111111111111111111
111111111111111001111110011111100001111111111110000110000001111111111111111111111111111111111110011001111000011110000001
111110011001100000000111111111111111111111111111111111100110011110000111100000011111100110011000000001111111111111111111
111111111111111110000001111110000110011111100110011111100110011001111111111111111111111111111111100000011111100001100111
111001100111111001100110011111111111111111111111111111111111111000000000011111100111111000000111111000011111111111111111
111111111111111111111110000000000111111001111110000001111110000111111111111111111111111111111110011110000111100001111110
000110000001111000011111111111111111111111111111111111100111100001111000011111100001100000011110000111111111111111111111
111111111111111111111001111000011111100001100000011111111110011111111111111111111111111111111111111110011110000111111000
011000000111111111100111111111111111111111111111111111111110011110011000000000000110000110011001111001100111111111111111
111111111111111111100111100110000000000001100001100110011110011001111111111111111111111111111110000000011000000001100001
100111100000000001100110011111111111111111111111111111100000000110000000011000011001111000000000011001100111111111111111
111111111111111111111111111111100001100111111000011111100001111111111111111111111111111111111111111111111111111000011001
111110000111111000011111111111111111111111111111111111100000000000000110011110000000011001100110000111111111111111111111
111111111111111000000000000001100111100000000110011001100001111111111111111111111111111111111110011111111110011111111111
111000000111111001100000011111111111111111111111111111100111111111100111111111111110000001111110011000000111111111111111
111111111111111001100000011001100000011111100110000000000110011111111111111111111111111111111110011000000110011000000111
111001100000000001100111111111111111111111111111111111100110000001100111100000000001100000000111100110000111111111111111
111111111111111001100000011001111000000000011000000001111001100001111111111111111111111111111110011000000110011110011001
111001100111100111100001111111111111111111111111111111100110000001100111100110011110011001111001111000011111111111111111
111111111111111001111111111001111001111111111111111000000110000111111111111111111111111111111110011111111110011110011111
111111111110000001100001111111111111111111111111111111100000000000000110011111111111100110011000000000000111111111111111
111111111111111000000000000001100111111111111001100110000000000001111111111111111111111111111111111111111111111111111111
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111

Solution

I wrote python program to check if it’s possible to combine into anything meaningful these bits treating them as a black&white bitmap.

from PIL import Image

t = '1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111' \
    '1111111111111111111111111111111111111111111111111111111111111111110000000000000011000011000011111100110000000' \
    '0000000111111111111111111111111111111000000000000001100001100001111110011000000000000001111111111111111111111' \
    '1111111100111111111100111111000000111111111100111111111100111111111111111111111111111111001111111111001111110' \
    '0000011111111110011111111110011111111111111111111111111111100110000001100111100001111110000111100110000001100' \
    '1111111111111111111111111111110011000000110011110000111111000011110011000000110011111111111111111111111111111' \
    '1001100000011001100001100110000001111001100000011001111111111111111111111111111110011000000110011000011001100' \
    '0000111100110000001100111111111111111111111111111111001100000011001100110011111100001111001100000011001111111' \
    '1111111111111111111111100110000001100110011001111110000111100110000001100111111111111111111111111111111001111' \
    '1111110011001100000011001100110011111111110011111111111111111111111111111100111111111100110011000000110011001' \
    '1001111111111001111111111111111111111111111110000000000000011001100110011001100110000000000000011111111111111' \
    '1111111111111111000000000000001100110011001100110011000000000000001111111111111111111111111111111111111111111' \
    '1110000110000110011111111111111111111111111111111111111111111111111111111111111111100001100001100111111111111' \
    '1111111111111111111111111111111111111100111111001100000011110011001100000000000000111100111111111111111111111' \
    '1111111110011111100110000001111001100110000000000000011110011111111111111111111111111111100111111001111110000' \
    '1111111111110000110000001111111111111111111111111111111111110011111100111111000011111111111100001100000011111' \
    '1111111111111111111111111111111001100111100001111000000111111001100110000000011111111111111111111111111111111' \
    '1100110011110000111100000011111100110011000000001111111111111111111111111111111111110000001111110000110011111' \
    '1001100111111001100110011111111111111111111111111111111000000111111000011001111110011001111110011001100111111' \
    '1111111111111111111111111111111100000000001111110011111100000011111100001111111111111111111111111111111111111' \
    '1110000000000111111001111110000001111110000111111111111111111111111111111110011110000111100001111110000110000' \
    '0011110000111111111111111111111111111111111111001111000011110000111111000011000000111100001111111111111111111' \
    '1111111111111111111111100111100001111110000110000001111111111001111111111111111111111111111111111111111001111' \
    '0000111111000011000000111111111100111111111111111111111111111111111111110011110011000000000000110000110011001' \
    '1110011001111111111111111111111111111111111001111001100000000000011000011001100111100110011111111111111111111' \
    '1111111111000000001100000000110000110011110000000000110011001111111111111111111111111111110000000011000000001' \
    '1000011001111000000000011001100111111111111111111111111111111111111111111111100001100111111000011111100001111' \
    '1111111111111111111111111111111111111111111111110000110011111100001111110000111111111111111111111111111111111' \
    '1110000000000000011001111000000001100110011000011111111111111111111111111111111111100000000000000110011110000' \
    '0000110011001100001111111111111111111111111111111111110011111111110011111111111111000000111111001100000011111' \
    '1111111111111111111111111001111111111001111111111111100000011111100110000001111111111111111111111111111110011' \
    '0000001100110000001111110011000000000011001111111111111111111111111111111111001100000011001100000011111100110' \
    '0000000001100111111111111111111111111111111111100110000001100111100000000001100000000111100110000111111111111' \
    '1111111111111111110011000000110011110000000000110000000011110011000011111111111111111111111111111100110000001' \
    '1001111001100111100110011110011110000111111111111111111111111111111110011000000110011110011001111001100111100' \
    '1111000011111111111111111111111111111111001111111111001111001111111111111111000000110000111111111111111111111' \
    '1111111111100111111111100111100111111111111111100000011000011111111111111111111111111111111000000000000001100' \
    '1111111111110011001100000000000011111111111111111111111111111100000000000000110011111111111100110011000000000' \
    '0001111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111' \
    '111111111111111111111111111111111111111111111111111111111111111111111'

for r in range(1, 50):
    if len(t) % r == 0:
        j = 0
        i = Image.new('1', (len(t)//r, r))
        im = i.load()
        for k in range(r):
            for l in range(len(t)//r):
                im[l, k] = int(t[j])
                j += 1
        i.show()

After a while I found some QR codes in the image of resulution 160x27.

qr

Scanning the code gave the flag.

flag

Flag

codefest{1t_w4s_4_kYu_4r3}

Privacy Policy
luc © 2021