Лаборатория TJCTF 2016 - Curses and Hexes [forensics 65]

delimitry
, 1 июня 2016

Find a flag in this PNG.

A PNG image file is given.

Previous tasks from this CTF has shown that it is necessary to check RGB channels first.
So I've written a script to get all data from R, G and B channels and save to out0, out1 and out2 respectively.

Here is what I've got:
out0 = O rn eGg m kfmrbdrm  u mltnoeih dn hrlvm.eaoh mri c dfeieh a...
out1 = nmngwnroSswer ol eshfnhsfrsrdnib taoieei  yniao-kbka   fdihd...
out2 = eoi,h eraao otueda,eodie afm  seio rb rnHl  srulea,nihlt se ...

If read by one character from each lines in series (from out0, out1, out2, out1, out2, ...) we will have the next text:
One morning, when Gregor Samsa woke from troubled dreams, he found himself transformed in his bed into a horrible vermin......

And in the middle of this text the flag was inserted :)

Python script to get the text with a flag:

from PIL import Image


img = Image.open('curses_and_hexes.png')
p = img.load()
w, h = img.size
out0 = ''
out1 = ''
out2 = ''
for y in range(h):
    for x in range(w):
        out0 += chr(p[x, y][0])
        out1 += chr(p[x, y][1])
        out2 += chr(p[x, y][2])

res = ''
for i in xrange(0, len(out0)):
    res += out0[i] + out1[i] + out2[i]
print res

The flag is:
tjctf{y0u'r3_a_w1z4rd_H4rry!!} 

1 комментарий:

  1. ChasTume
       #   14:13, 22 мая 2017
    Acheter Du Viagra Pas Cher Canadian Cheap Cialis Amoxicillin With Azium Feline Celebrex Discount Card Pfizer Viagra Online Store Viagra Vergleich Cialis Levitra Se Puede Comprar Viagra En La Farmacia Buy Cheap Zoloft Propecia Fotosensible Vente Cialis Levitra Cheap Cialis Cialis One Day Costo Propecia Finasteride Problems Buy Cialis Online Cialis Pour Femme Prix Dapoxetina In Italia Buy Zoloft On Line Baclofen Vente En France Discount Generic Macrobid Worldwide Next Day Cheapeast Cardiff Viagra Pill Il En Vente Libre Dans Les Pharmacies Belges Cialis Achat En Pharmacie Cheap Generic Cialis Accutane 30 Mg Sales Cialis En Cordoba Cialis Usa Viagra Commander Sur Internet Free Online Sample Viagra Buy Propranolol USA Uso Viagra Embarazo Companies That Sell Cialas Viagra Cialis Dutasteride 0.5mg Avidart Sale Infection Not Responding To Keflex Zoloft Cost Kamagra Venta Sin Receta Propecia Ghost Stories Alli Tabs Generic Celias Sinequan Canadian Pharmacy Low Price Zoloft Viagra Non Prescription Finasteride Acne China Viagra Online Kamagra Legal En France Propecia Preparado Oficinal Zoloft Online Buy Commande Viagra Fiable

Авторизуйтесь, что бы оставить комментарий