Tags: easyctf scisnerof 

Rating:

<h1>Challenge: Scisnerof</h1>
<h1>Category: Forensics</h1>
<h2>70 points</h2>

Description:

Written by neptunia

I found weird file! elif

Hint: Did I put this in the wrong category?

File = elif

6c0baad166c1256a29d469bae8a778ce5012ba77_elif

```

 ‚`B®DNEI    °ґ&;н°?.?ыюя–?!?Bc$`x„!	Њ‘Ѓв?„&2BН†–№?Ш¦в?„ЖH)Ће醙==<¦в?…?Ё№Ћеи¦в?„ЖH№Ћеи¦в?„ЖH‰ЋеиЦв?…?Ё‰ЋеиЦв?„ЖHГх?ъ`Ё?q?B}Ф.Д“ Еm w?„&2A?w/@a¦Пзуаw?„&2ALw/Aч?„'}ALw/Aч?„&2Dw?ЛуWЌЬB?˜Й?њw/ъ<nв?„ЖH}Е?ЇgїГw?„&2DШњ я?{€B?^ўlN?‰Jфь/—
<...>
гшю?‚њB??#?Д!?LdЊ??„!1’0<B?„ЖHАс?B??#?Д!?LdЊ??„!1’0<B?„ЖHАс?B??#?Д!?LdЊ??„!1’0<B?„ЖH°с?B?џчyй®’OsrT’·%uOОg«єJ©+sщ;ѕtчЧО??>Ж<ђ?ч"D‰?$JЬHђа‘+•ИА<?+‘"DЋWЕ?5$љЇќн^xTADI&? dЁoЗ?Г? Г? sYHp ?aь?Џ± AMAg? й?О® BGRs? оЌDz ??P B? RDHI

?

GNP‰
```

As I can see it is all about mirorring the text (Scisnerof is forensics, elif is file, GNP at the end of file is PNG, and so on).

code:
```
with open ('6c0baad166c1256a29d469bae8a778ce5012ba77_elif', 'rb') as f:
line = f.read()
line = line[::-1]
with open ('text.png', 'wb') as out:
out.write(line)
```

And we have the flag:

flag = easyctf{r3v3r5ed_4ensics}

Original writeup (https://github.com/mazahaka-jay/Writeups/blob/master/EasyCTF.2017/Forensics/scisnerof.md).