Source
Downloaded from Hikvision Europe's public firmware portal: Network Camera / R1 platform / V5.4.5 Build170228, file IPC_R1_EN_STD_V5.4.5_Build170228.zip (server cert CN *.hikvisioneurope.com). The zip contains digicap.dav.
Format and unpacking
- Container: Hikvision
digicap.davfirmware container. The 240-byte header (magic + file index) is XOR-obfuscated; component data is stored natively. - Obfuscation: the header is XOR'd with the public 16-byte key
BA CD BC FE D6 CA DD D3 BA B9 A3 AB BF CB B5 BE, key index per byte =(i + (i>>4)) & 0xF. - Method/tool: reproduced from MatrixEditor/hiktools (the published Hikvision DAV XOR scheme); header XOR-decoded, component data left intact.
Verification
- Decoded header magic is
SWKH(Hikvision),header_length=240,files=4. - The 4 file-table entries chain contiguously from offset 240 to exactly EOF (13,563,100 bytes).
- Component data matches the table names:
uImagestarts with uImage magic27051956;app.imgstarts with cramfs magic45 3d cd 28.
Contents
- Hikvision IP-camera firmware:
uImage(kernel) +app.img(cramfs root filesystem), plus two small_cfgUpg*config blobs. - Hikvision R1 platform network camera (DS-2CD40xx/41xx/42xx/43xx smart/high-end IPC).
- Uploaded the header-decoded
digicap.dav(SWKH index readable, component data intact).
Credit
Method reference: afflicted.sh / tpbreak.