Giter Site home page Giter Site logo

pentax-firmware-tool's Introduction

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.

To extract the resources file in K-S1/K-S2 firmware:

pfwtool -i ks1.bin -e resdir

For other arguments, please check the --help arguments

$ pfwtool -h

  Usage: pfwtool [options]

  A 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.
    -d, --debug [logfile]          Enable debug, log to file if the log filename is given, otherwise it will log to the console.
    -l, --list-resources           List resource files in the firmware.
    -e, --extract-resources <dir>  Extract the resource to the given directory.

pentax-firmware-tool's People

Contributors

twang2218 avatar svenpeter42 avatar moosev2 avatar

Stargazers

Billy Tallis avatar Oskar Jung avatar

Watchers

James Cloos avatar  avatar

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.