Skip to content

KodaSec/wince-decompr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

WinCE Decompressor

Python version GitHub license GitHub stars

Description

WinCE firmware images stores compressed Execute-In-Place (XIP) files. WinCE v5+ uses a modified LZX compression algorithm. This script will decompress a WinCE v5+ compressed blob. WinCE Decompressor is cross-compatible with Unix and Windows.

Installation

WinCE Decompressor only requires Python3.

# Install Python3 if it is not installed

# Clone the repo
$ git clone https://github.com/KodaSec/wince-decompr.git

# Change the working directory to wince-decompr
$ cd wince-decompr

# Ready to run script

Usage

$ python3 wincedecompr.py -h
usage: wincedecompr.py [-h] [-o uncompressed_dir] [-cs compressed_file_size]
                       [-us uncompressed_file_size]
                       file_name

positional arguments:
  file_name             input file name

optional arguments:
  -h, --help            show this help message and exit
  -d uncompressed_dir   output uncompressed directory
  -cs compressed_file_size
                        compressed file size
  -us uncompressed_file_size
                        uncompressed file size

To decompress a WinCE compressed file into a directory:

python3 wincedecompr.py -d <output_dir> -cs <compressed_size> -us <uncompressed_size> <input_file>

TODO

  • Add LZ77 Support for older versions of WinCE (<5)

Special Thanks

Collin Moon <[email protected]>

Frank Tursi <[email protected]>

Eric Biggers <[email protected]>

Stuart Caie <[email protected]>

Ali Scissons <[email protected]>