{"success":true,"data":{"ext":"mar","name":"Microsoft/MSN MARC archive","description":"Microsoft/MSN MARC archive is a file format developed by Microsoft for packaging data used by MSN-related components and maintained as part of legacy Microsoft software ecosystems. It was primarily used to store resources, metadata, or update content for applications and installation packages associated with older Microsoft services. The format is largely historical and may be encountered in archived software; files are generally safe to inspect but should still be opened cautiously when obtained from untrusted sources.","mime":[],"risk_level":"Safe","signatures":[{"hex":"4D 41 52 31 00","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]},{"hex":"4D 41 52 43","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]},{"hex":"4D 41 72 30 00","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]}],"related":[],"usage":{"python":"def is_mar(file_path: str) -> bool:\n    \"\"\"Check if file is a valid MAR by magic bytes.\"\"\"\n    signature = bytes([0x4D, 0x41, 0x52, 0x31, 0x00])\n    with open(file_path, \"rb\") as f:\n        return f.read(5) == signature","node":"function isMAR(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x4D, 0x41, 0x52, 0x31, 0x00]);\n  return buffer.subarray(0, 5).equals(signature);\n}","go":"func IsMAR(data []byte) bool {\n    signature := []byte{0x4D, 0x41, 0x52, 0x31, 0x00}\n    if len(data) < 5 {\n        return false\n    }\n    return bytes.Equal(data[:5], signature)\n}"}}}