Start the machine, hack the system, and find the hidden flags to complete this challenge and earn points!
pip3 install numpychallenge.wav from the challenge page to your local machine.file challenge.wav to confirm it's a valid WAV file.strings challenge.wav | grep -i flag to search for any obvious references to flags in the file.wave and numpy modules to read the audio data.len(flag) * 8 samples from the audio file.3f2175fe-f40c-496c-873e-4b91e1611ff0import wave
import numpy as np
with wave.open('challenge.wav', 'rb') as f:
frames = f.readframes(f.getnframes())
audio = np.frombuffer(frames, dtype=np.int16)
bits = [str(sample & 1) for sample in audio[:36*8]]
flag = ''.join([chr(int(''.join(bits[i*8:(i+1)*8]), 2)) for i in range(36)])
print(flag)Enter your email to continue
Choose a username to get started
We've sent a 9-character code to your email