File tree 2 files changed +17
-0
lines changed
2016-03-06-bkpctf/misc_2_lily_flac
2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change
1
+ ## lily.flac (misc, 2 points, 28 solves)
2
+ more than just a few bleebs ;)
3
+
4
+ In this task we were given a FLAC file containg a, somewhat weird, music. Looking at it
5
+ in Audacity, we noticed that there is a very different spectrum in the beginning and end of
6
+ the file - so there was probably some data hidden. We converted the file to wav, since it's
7
+ easier to work with uncompressed data.
8
+
9
+ Looking at the first couple of hundred of bytes, we notice there are a lot of 0x80 and 0x7f
10
+ bytes. In 8-bit wav, they mean a very quiet sound, but since we suspected the file to contain
11
+ hidden binary data, we thought they would mean 0x00 and 0xFF bytes, respectively - as though
12
+ they got xored with 0x80 (in the hindsight, it seems to be just the fact that wav files contain
13
+ * signed* data, which shifts all the values by aforementioned 0x80).
14
+
15
+ Xoring the wav with 0x80, we found that the first bytes of sound data are now:
16
+ ` \x7fELF\x02\x01\x01\x00\x00\x00\x00\x00 ` - an ELF! We stripped wav header from the file and
17
+ ran the ELF, which in turn gave us the flag.
You can’t perform that action at this time.
0 commit comments