Skip to content

Instantly share code, notes, and snippets.

@mjmckinnon
Created August 7, 2018 12:04
Show Gist options
  • Save mjmckinnon/782b3f9405fadf0199b41db4005432a1 to your computer and use it in GitHub Desktop.
Save mjmckinnon/782b3f9405fadf0199b41db4005432a1 to your computer and use it in GitHub Desktop.
#!/usr/bin/python
# used once in a CTF for dumping audio data
f = 'song.mp3'
from pydub import AudioSegment
sound = AudioSegment.from_mp3(f)
of = open('song_serial.txt','w')
of.write(sound._data)
of.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment