The config is off an entry NVR, the 4116. Do you know what the key might be or should I just throw a few at it and see if I can get lucky?I am able to do this. Config is firstly gzipped and then crypted using AES. Key is type of camera. IPC for still cams and SD for PTZ. Rest is padded with zeros.
root@HPHOST:/home/rio# openssl enc -d -aes-256-ecb -in DeviceConfig.backup -out unenc_DeviceConfig.backup -pass pass:4950433030303030303030303030303030303030303030303030303030303030 bad magic number
Thanks, appreciated.Some feedback on this excellent script.
For the IPC, another way to get the HWID is the device type from version page but caveat.
Device Type IPC-HDW5541H-AS-PV
Mine is PAL, so HWID is actually: IPC-HDW5541HP-AS-PV
Tried this for several cams and works but sure it wont be all of them!
It's not working with my NVR, I get an error of: Data must be aligned to block boundary in ECB mode
Noted the file for NVR is 144Kb and IPC it's 140Kb.
Noted my file is 1 bytes too long so tried both subtracting that byte and adding another 15.
But neither seems to work with what I think my HWID is.
Added a file from another NVR, this one is smaller than IPC or first NVR. Same problem.
V4.001.0000000.3, Build Date: 2020-10-22
Also, curious, where did "dh_string" come from ?