Skip to content

Commit 5c8cdce

Browse files
committed
Update.
1 parent c9eb606 commit 5c8cdce

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

forensics/serial-300-points.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Serial - 300 points
22

3-
## Solution
3+
I was listening to [this](https://github.com/EasyCTF/easyctf-2017-problems/blob/master/serial/serial.wav) haystack, but I didn't notice anything. What did I miss?
4+
5+
### Solution
46

57
This challenge was pretty fun -- and very very frustrating when I had no
68
idea what I was doing or where to go next. *(I'm reminded of that time
@@ -12,7 +14,7 @@ From the title 'Serial', it was pretty likely that this would be a
1214
stream of serial data, so all I had to do was decode that, right? Super
1315
easy, right?
1416

15-
### Scoping it out
17+
#### Scoping it out
1618

1719
I opened the audio file in audacity. This is pretty much always worth
1820
doing for any sort of forensics-y audio file: often it looks interesting
@@ -38,7 +40,7 @@ which could be better if you're in a hurry.)*
3840
The wav file stored sounds as 16 bit values, which means they will range
3941
between roughly -32760 and 32760.
4042

41-
### Pulling apart the .WAV file
43+
#### Pulling apart the .WAV file
4244

4345
I opened the wav file as raw bytes in python, started from the first
4446
byte after the header ended, and printed them out to see if I could see
@@ -283,7 +285,7 @@ def print_counter(counter, numbers, cur):
283285
numbers.append(str(1-cur)) # flopped bits
284286
```
285287

286-
### Decoding the 0s and 1s
288+
#### Decoding the 0s and 1s
287289

288290
Now that we have the raw stream of bits, it's time to try decoding it.
289291
At first glance there wasn't anything obvious; I did some reading on how
@@ -342,7 +344,7 @@ Cool, we can see that every 11 bits, we have the pattern 001. eg:
342344
`001XXXXXXXX001XXXXXXXX001`. Conveniently, 11 bits - 3 recurring bits = 8
343345
bits = 1 byte of data = (y)
344346

345-
### Writing the raw bytes to a file
347+
#### Writing the raw bytes to a file
346348

347349
Time to write the raw bytes out to a file, and see if it looks at all
348350
meaningful.
@@ -465,3 +467,7 @@ S e r i a l . . .
465467
```
466468

467469
...... yep, I think they're trolling us a bit with that hint.
470+
471+
### External Writeups
472+
473+
* None

0 commit comments

Comments
 (0)