Skip to content

Instantly share code, notes, and snippets.

@kerrymilan
kerrymilan / confd-decrypt.cpp
Last active March 10, 2023 13:19
Utility to decrypt AESCFB128-encrypted (e.g. $8$...) ConfD config values. This is intended to be used in cases where the encryption keys are stored in the device's database (*.cdb) files rather than in confd.conf.
/**
* ConfD Decrypt Utility
*
* Prerequisites:
* * AESCFB128-encrypted (e.g. $8$) config values
* * May work on DES3CBC as well; untested
* * CDB files from target device
* * confd.conf file from target device
* * At minimum, AESCFB128 key and initVector values
* * gcc/make