Last active
August 29, 2015 14:00
-
-
Save rejuvyesh/11249217 to your computer and use it in GitHub Desktop.
netcat-cpi-kernel-module to ogg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# Convert `netcat-cpi-kernel-module` to actual oggs | |
import binascii | |
import re | |
import sys | |
try: | |
s = re.sub('0x', '', re.sub('[,\n]', '', open(sys.argv[1], 'r').read())) | |
open(sys.argv[1]+'.ogg', 'w').write(binascii.unhexlify(s)) | |
except: | |
print("Usage: " + sys.argv[0]+" trkNdata.h") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment