Git Product home page Git Product logo

wince-extractor's Introduction

WinCE Extractor


Project Not Actively Maintained

This project was created a while ago and is not currently being maintained. Maintainers welcome.


Python version GitHub license GitHub stars

Description

WinCE Extractor is a Python3 program that can extract and decompress execute-in-place (XIP) files from a Windows Compact Embedded ROM image. WinCE Extractor is cross-compatible with Unix and Windows.

Installation

WinCE Extractor only requires Python3.

# Install Python3 and pip3

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

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

Usage

$ python3 winceextractor.py -h
usage: winceextractor.py [-h] [-d dirpath] [-o offset] image_file

positional arguments:
  image_file  ROM image to extract

optional arguments:
  -h, --help  show this help message and exit
  -d dirpath  save found files/modules to this path
  -o offset   offset of the image file

To extract files from a WinCE ROM into a directory:

python3 winceextractor.py -d <output_dir> <image_file>

Special Thanks

Willem Hengeveld <[email protected]>

Collin Moon <[email protected]>

Frank Tursi <[email protected]>

wince-extractor's People

Contributors

artificialamateur avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

stevetuc

wince-extractor's Issues

Header isn't read

I get this with every winCE file that I test.
I tested against these old files.

https://forum.xda-developers.com/t/nk-bin-and-dumprom.656086/?__cf_chl_jschl_tk__=D2uAXTkdfKd1Y3SVgHH3ka3tCpQxGJyAN1o60NbeGBo-1636038001-0-gaNycGzNChE

File "/home/user/works/wince-extractor/winceextractor.py", line 823, in <module>
   with WinCEExtractor(f, image_offset) as extractor:
 File "/home/user/works/wince-extractor/winceextractor.py", line 498, in __enter__
   self.analyze()
 File "/home/user/works/wince-extractor/winceextractor.py", line 519, in analyze
   romhdr_s = load_from_offset(self.data, self.romhdr_offset, RomHdr)
 File "/home/user/works/wince-extractor/winceextractor.py", line 431, in load_from_offset
   return structure.from_buffer_copy(data[offset:offset + ctypes.sizeof(structure)])
ValueError: Buffer size too small (0 instead of at least 84 bytes)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.