# forensics/wave

Writeup by Victor

We're given what appears to be a corrupted .wav file. Media Player practically screams this if you try opening it and playing the audio. If you try to open the file normally in [Audacity](https://www.audacityteam.org/download/) (the best application for audio ctf challenges btw) it won't let you because, as hinted already, the file is corrupt. But there's one way to open corrupt files in Audacity: by importing the raw data of the file.

<figure><img src="https://815482121-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfFcGsyFpBWGm4LhF9wJx%2Fuploads%2FysAJArOhhiuwrqp3MbSE%2Fimage_2024-08-14_222254730.png?alt=media&#x26;token=9d8b4ca8-2508-4902-8ec8-7feee2577349" alt=""><figcaption><p>Importing raw data in Audacity</p></figcaption></figure>

With the audio file successfully opened in Audacity, you should see something like this:

<figure><img src="https://815482121-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfFcGsyFpBWGm4LhF9wJx%2Fuploads%2FJ8Wmshy2w3IqqClx5lcb%2Fimage_2024-08-14_221134736.png?alt=media&#x26;token=0a3fb77d-a0ae-4297-9c74-1389bf45ba00" alt=""><figcaption><p>Visualization of the audio</p></figcaption></figure>

I wouldn't recommend clicking the play button (speaking from experience here). But what you should notice are the lengths of each audio segment. They're all either wide or thin, no in between. This should immediately scream out to you "MORSE CODE"!

<figure><img src="https://815482121-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfFcGsyFpBWGm4LhF9wJx%2Fuploads%2FuYzbb4eD1Ahh4moTbXkB%2Fimage_2024-08-14_221646789.png?alt=media&#x26;token=7fef4628-e0da-462f-ba80-f10d66fdc047" alt=""><figcaption><p>Morse code on the bottom</p></figcaption></figure>

As drawn at the bottom of the image, the morse could is "-... . . .--. -... --- .--. -- --- .-. ... . -.-. --- -.. ." and if you input that into a [morse code translator](https://morsecode.world/international/translator.html), you should get the output of "BEEPBOPMORSECODE".

<figure><img src="https://815482121-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfFcGsyFpBWGm4LhF9wJx%2Fuploads%2FUKH0yOykwj2zQWkHVlOx%2Fimage_2024-08-14_221947389.png?alt=media&#x26;token=44c6d7d0-f0cb-43c1-91d3-7e7e45f7cd75" alt=""><figcaption><p>Morse code translation</p></figcaption></figure>

Flag: `n00bz{beepbopmorsecode}` \*challenge tells you the text is in all lowercase
