IP camera configuration backup
During a facility security audit, a configuration backup exported from an IP camera's web management panel was obtained: config_backup.bin.
The file cannot be opened directly with standard archive programs, because the manufacturer added a 32-byte vendor header at the start of the file: IPCAMBAK (8 bytes), version (2 bytes LE), flags (2 bytes LE), compressed data length (4 bytes LE), CRC32 checksum (4 bytes LE) and a 12-byte device serial label. From byte 32 onwards there is a gzip archive compressed with tar.
Inside the archive there are the etc/onvif_users.xml, etc/network.conf and etc/rtsp.conf settings. Note that invalid tokens remain in old test accounts that were disabled (disabled) in the system. Your task is to find the password (password_b64=) of the active (status=active) RTSP stream account and determine BAYROQ{...} by base64 decoding. (Flag format: BAYROQ{KAMERA_ZAXIRA_<16 kichik hex>}).