landaire / porkchop

Decryption utility for Yaesu ham radio firmware images
MIT License
32 stars 3 forks source link

crates.io

porkchop

Decryption utility for Yaesu ham radio firmware images.

Background

Yaesu provides a firmware update utility for their ham radios that contains an encrypted firmware image. This utility reimplements the decryption algorithm found in the update utility and emits a decrypted image.

A more in-depth blog post about how the encryption works can be found on my blog.

Building

To build/run you'll need a recent Rust toolchain installed. See this guide to get started.

git clone https://github.com/landaire/porkchop.git
cd porkchop
# To build
cargo build --release
# To run
cargo run --release -- <porkchop args here>

You can optionally install it direct from crates.io:

cargo install porkchop

Usage

porkchop 0.1.0
Decryption utility for Yaesu ham radio firmware images.

USAGE:
    porkchop <input> [output]

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

ARGS:
    <input>     Input file
    <output>    Output file, stdout if not present

Example:

porkchop firmware_update_utility.exe firmware.bin