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/env python3 | |
''' | |
Decompresses a pbzx stream. | |
Simplified/corrected version of <https://gist.github.com/Lekensteyn/6e0840e77bc9bd013f57> | |
Example usage (from Python): | |
decompress_pbzx(open('PayloadJava', 'rb'), open('PayloadJava.cpio', wb')) |
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
/* | |
tilejpeg : lossless JPEG tiling program for non-optimized images | |
tilejpeg.cpp | |
Tile JPEG Program | |
Copyright (C) 2016 Tsukasa OI <[email protected]> | |
Based on the program code on <http://apostata.web.fc2.com/tilejpeg/index.html>. |
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
from zipfile import ZipFile | |
from struct import Struct | |
## primitives ## | |
class Deserializer: | |
u16 = Struct('<H') | |
u32 = Struct('<I') |