Skip to content

Instantly share code, notes, and snippets.

@Takeno
Created September 30, 2013 11:38
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Takeno/6762561 to your computer and use it in GitHub Desktop.
Save Takeno/6762561 to your computer and use it in GitHub Desktop.
Lineage 2 Music ogg decrypter
import mmap
import sys
import os
import glob
if len(sys.argv) != 2:
sys.exit('Usage: %s directory' % sys.argv[0])
if not os.path.exists(sys.argv[1]):
sys.exit('ERROR: directory %s was not found!' % sys.argv[1])
files = glob.glob(sys.argv[1] + '/*.ogg')
for file in files:
f = open(file, 'a+')
m = mmap.mmap(f.fileno(), 0)
print m[0:4]
if m[0:4] == 'L2SD':
m[0:4] = 'OggS'
m.close()
f.close()
@LBranco27
Copy link

Thank you! Funny to see that they have changed OggS to L2SD.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment