Source
Downloaded from Hikvision Europe's public firmware portal: R2 platform V5.4.800 build210813, file IPC_R2_EN_STD_5.4.800_210813.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) with a small Python script; header XOR-decoded, component data left intact.
Verification
- Decoded header magic is
SWKH(Hikvision),header_length=240,files=4. - The 4 file-table entries (name, offset, length) chain contiguously from offset 240 to exactly EOF (14,255,820 bytes).
- Component data matches the table names:
uImagestarts with the uImage magic27051956;app.imgstarts with the cramfs magic45 3d cd 28.
Contents
- Hikvision IP-camera firmware:
uImage(kernel) +app.img(cramfs root filesystem), plus two small_cfgUpg*config blobs. - Hikvision R2 platform network camera (DS-2CD1x10 / DS-2CD2xx0-class, 2 MP).
- Uploaded the header-decoded
digicap.dav(SWKH index readable, component data intact).
Credit
Method reference: afflicted.sh / tpbreak.