This is a simple Python script that decrypts and decompresses config backups from Huawei HG659 routers branded by Ooredoo. It turns the .conf file into a readable XML so you can inspect the settings.
- Takes the encrypted file (
downloadconfigfile.conf) - Uses AES (CBC) with a hardcoded key and IV to decrypt
- Then decompresses the data using zlib
- Removes some garbage from the end (129 bytes)
- Saves the output as
output.xml
- Python3
pycryptodomelibrary
Install it with:
pip install pycryptodome- Put your encrypted config file in the same folder and name it:
downloadconfigfile.conf - Run the script:
python3 decrypt.py - If successful, it will generate:
output.xmlYou can open that in any text editor or XML viewer.