Surfing the Waves


While you're going through the FBI's servers, you stumble across their incredible taste in music. One main.wav you found is particularly interesting, see if you can find the flag!


  1. Opening the audio file in audacity and applying the amplify effect shows that there is some kind of pattern in the file.

  2. We can extract the data using Python and Scipy in If we read each audio frame we see that the first 6 values are: [2008, 2506, 2000, 1508, 2009, 8504]. I looped through all the values but chopped off the last two digits. The last two digits are always 0 followed by a number 1 though 9, which seem like random noise. After we remove the last two digits, there are only 16 unique values: [10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 85]. There are also only 16 values in hexadecimal, so the data is probably encoded using hexadecimal.

  3. We assume that 10 represents 1 in hexadecimal, 15 represents 2, 55 represents a, etc. So, now all we have to do is apply this mapping by looping through the rounded audio file data and mapping the value to its position in the sorted list of unique values. Each rounded audio file data point represents a hexadecimal character that has been encoded in some way. By looping through them we can undo the encoding using the aforementioned mapping. Then we can combine all the hexadecimal characters into one large hexadecimal string and convert it to ascii to get the entire program that was used to create the audio file. I saved the challenge program to



Last updated