plain = decrypt_zte(raw) with open('decrypted.xml', 'wb') as out: out.write(plain)
ZTE routers use different methods to secure their configuration files, often referred to as "payload types": ZTE F6601P - Encode to config.bin file using ... - GitHub Decrypt Zte Config.bin