All pastes #480483 Raw Edit

Unnamed

public python v1 · immutable
·published 2007-05-10 09:28 UTC
rendered paste body
#!/usr/bin/env pythonimport zlib, sysdef main(args):    f = file(args[0], 'rb').read()    size = len(f)    i = 661031    while i < size:        try:            de = zlib.decompress(f[i:])            open("%s.raw"%str(i),'w').write(de)        except zlib.error:            i += 1            continue        print 'Found a compressed block starting at', i        i += 1if __name__=='__main__':    sys.exit(main(sys.argv[1:]))