#config-file #export #avm #decryption #encryption #backup #fritz-box

nightly bin+lib fritzdecode

Tools for working with AVM FritzBox config file exports

1 unstable release

0.1.0 Jan 18, 2023

#1893 in Cryptography

AGPL-3.0-or-later

34KB
819 lines

Tools for working with AVM fritzbox config files

WIP.

Installation: cargo +nightly install fritzdecode

Basic usage:

  1. Export the configuration in the FritzBox web interface (set a password!)
  2. Run fritzdecode decrypt foo_config.export, providing the password when prompted

lib.rs:

Utilities for working with (encrypted) config backups from AVM FritzBox devices. This library is mostly designed as a backing for the fritzdecode binary, but might be useful on its own as well.

The main type is ConfigBackup, it allows reading, verifying, decrypting and writing backup files.

Examples

let file = BufReader::new(File::open("config.export").unwrap());

// Load the config backup
let config = ConfigBackup::load(file).unwrap();

// Decrypt any contained values using the password specified during export, update CRC
let config = config.decrypt("1234").unwrap().update_crc();

// Write the decrypted backup to standard output
config.serialize(stdout()).unwrap();

Dependencies

~8–15MB
~184K SLoC