Title: Decompressing a multi-stream zlib archive in Python
Date: 2020-06-16 17:00

Today while reversing a custom [PyInstaller]( http://www.pyinstaller.org/ )
bundle, I needed to decompress a multi-stream [zlib]( https://www.zlib.net/)
compressed archive, and since I spent way too much time trying to understand
how I was supposed to do it, here is the resulting snippet in Python:

```python
import sys
import zlib

with open(sys.argv[1], 'rb') as f:
    stream = f.read()
    while stream:
        dco = zlib.decompressobj()
        dec = dco.decompress(stream)
        print('[+] found stream with len %d' % len(dec)))
        stream = dco.unused_data
```

 
