This Stream is so weird, looking something hidden here!!
Diffculity: Hard
Challange is a wave file with high pitched noise, After examining file with usual tools (binwalk, exiftool, strings,..etc) we found nothing so we should dig deeper.
import wave, struct #import wave and struct library
wavefile = wave.open('data.wav', 'r') #read wave file
tmp=[] # create empty list with name tmp
length = wavefile.getnframes() # get number of frames in wave file
print(length) # print number of frames in wave file
for i in range(0, length): # create a loop to iterate through frames
wavedata = wavefile.readframes(1) # read one frame each loop
data = struct.unpack("<h", wavedata) # unpack data stored in wavedata buffer as integer
print(data[0]) #print frame value
from __future__ import print_function
import wave, struct
wavefile = wave.open('data.wav', 'r')
tmp=[]
length = wavefile.getnframes()
print(length)
for i in range(0, length):
wavedata = wavefile.readframes(1)
data = struct.unpack("<h", wavedata)
if data[0] > 0: #check if all values are positive
print(chr(data[0]-1000), end="") #subtract 1000 from positive values and convert to chr, and remove new line
tshark -r >filename< -T fields -e dns.qry.name | sed ':a;N;$!ba;s/\n//g'
base64 -d filename
we decoded the output and give us another wave file