{"success":true,"data":{"ext":"cdr","name":"Elite Plus Commander saved game file","description":"The CDR file format is a saved game file used by Elite Plus Commander, a game developed by MicroProse and maintained through legacy software support. It stores player progress, mission state, and related gameplay data for loading and resuming campaigns in the original game. As a legacy format, it is generally safe to open, though files from untrusted sources should still be handled with normal caution.","mime":["application/coreldraw"],"risk_level":"Safe","signatures":[{"hex":"52 49 46 46","offset":0,"sources":[{"name":"Apache Tika","url":"https://raw.githubusercontent.com/apache/tika/main/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml"},{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]},{"hex":"45 4C 49 54 45 20 43 6F 6D 6D 61 6E 64 65 72 20","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]},{"hex":"4D 53 5F 56 4F 49 43 45","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]}],"related":["ai","eps","epsf","vsd","vsdx","cgm"],"usage":{"python":"def is_cdr(file_path: str) -> bool:\n    \"\"\"Check if file is a valid CDR by magic bytes.\"\"\"\n    signature = bytes([0x52, 0x49, 0x46, 0x46])\n    with open(file_path, \"rb\") as f:\n        return f.read(4) == signature","node":"function isCDR(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x52, 0x49, 0x46, 0x46]);\n  return buffer.subarray(0, 4).equals(signature);\n}","go":"func IsCDR(data []byte) bool {\n    signature := []byte{0x52, 0x49, 0x46, 0x46}\n    if len(data) < 4 {\n        return false\n    }\n    return bytes.Equal(data[:4], signature)\n}"},"category":"Images"}}