Source
Downloaded from Hikvision Europe's public firmware portal: R0 platform (2xx2) V5.4.800 build210813, file IPC_R0_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 1472-byte header (magic + file index) is XOR-obfuscated; the component file 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. I XOR-decoded the header only, leaving the (already-plaintext) component data intact.
Verification
- Decoded header magic is
SWKH(Hikvision),header_length=1472,files=32. - The 32 file-table entries (name, offset, length) form a contiguous chain from offset 1472 to exactly EOF (23,595,186 bytes) — a wrong key/parse could not chain perfectly.
- Component data matches the table names:
alsa-lib.tar.gz/sound.tar.gz/help.tar.gzstart with gzip1f8b;IEfile.tar.gz/davinci.tar.gzwith LZMA5d 00 00;SoftwareLicense.txtwith a UTF-8 BOM + "Open".
Contents
- Hikvision IP-camera firmware: kernel (
hImage), root image (hroot.img),initrun.sh, kernel modules (cmemk.ko,gdmak.ko,ambarella_eth_debug.ko), and app tarballs (driver/idsp/sound/web). - Hikvision R0 platform network camera (DS-2CD2x22/2x42/2x52-class).
- Uploaded the header-decoded
digicap.dav(SWKH index readable, component data intact).
Credit
Method reference: afflicted.sh / tpbreak.