Title: [Python] unobb.py - Gameloft .OBB extractor Author: Anonymous Pastebin link: http://pastebin.com/axrrxBZ9 First Edit: Wednesday 14th of November 2012 09:02:12 PM CDT Last Edit: Wednesday 14th of November 2012 09:02:12 PM CDT #!/usr/bin/env python   import os import sys   f = open(sys.argv[1], 'rb')   table_offset = int(f.read(9)) f.seek(table_offset)   files = [] dirs = set() for line in f:     start, end, unk1, unk2, name = line.strip().split(' ', 4)     # use the current OS's path separator     name = name.replace('/', os.sep)     files.append((name, int(start), int(end) - int(start)))       dirs.add(os.path.dirname(name))   for d in dirs:     try:         os.makedirs(os.path.join('obbcontent', d))     except OSError:         pass   for fname, start, length in files:     print('extracting: %s (%d bytes)' % (fname, length))       f.seek(start)     buf = ''     while len(buf) < length:         buf += f.read(length - len(buf))       with open(os.path.join('obbcontent', fname), 'wb') as out:         out.write(buf)