pfwtool

0.3.0 • Public • Published

NPM version GPL-2 license Dependency Status

Pentax Firmware Decode Tool

This is a Pentax Firmware Decryption/Decompression tool, which is based on MooseV2's code, svenpeter42's code, and the decompress's patch made by bootcoder.

Made for the PHDK project.

Install

First you need to make sure you have installed Node.js, in case you haven't, here is how.

Installing pfwtool is very simple, just:

npm i pfwtool -g

Usage

To use this tool is straight forward:

pfwtool -i <in> -o <out>
  • <in> is the filename/path of the firmware from downloaded package, such as fwdc220b.bin, which is encrypted/compressed.

  • <out> is the output file name of the decrypted/decompressed firmware.

For other arguments, please check the --help arguments

$ pfwtool -h
 
Usage: pfwtool [options]
 
command line tool to decrypt/decompress Pentax firmware
 
Options:
 
  -h, --help               output usage information
  -V, --version            output the version number
  -i, --input <filename>   Encrypted firmware filename (e.g. "fwdc226b.bin"). If no input filename is specified, the standard input will be used.
  -o, --output <filename>  Output decrypted filename. If no output file name is specified, the standard output will be used.
  -d, --debug [logfile]    Enable debug, log to file if the log filename is given, otherwise it will log to the console.

Package Sidebar

Install

npm i pfwtool

Weekly Downloads

1

Version

0.3.0

License

GPL-2.0

Last publish

Collaborators

  • twang2218