{"success":true,"data":{"ext":"mpx","name":"MPX","description":"MPX is a text-based project interchange file format originally developed by Microsoft for Microsoft Project and related scheduling tools. It is used to exchange task lists, resource assignments, calendars, and dependencies between project management applications. MPX is a legacy format and is less commonly supported in modern software, but it is generally considered safe because it does not normally contain executable content.","mime":["application/x-project"],"risk_level":"Safe","signatures":[{"hex":"4D 50 58 2C 4D 69 63 72 6F 73 6F 66 74 20 50 72 6F 6A 65 63 74 20 66 6F 72 20 57 69 6E 64 6F 77 73 2C","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"}]}],"related":[],"usage":{"python":"def is_mpx(file_path: str) -> bool:\n    \"\"\"Check if file is a valid MPX by magic bytes.\"\"\"\n    signature = bytes([0x4D, 0x50, 0x58, 0x2C, 0x4D, 0x69, 0x63, 0x72, 0x6F, 0x73, 0x6F, 0x66, 0x74, 0x20, 0x50, 0x72, 0x6F, 0x6A, 0x65, 0x63, 0x74, 0x20, 0x66, 0x6F, 0x72, 0x20, 0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, 0x2C])\n    with open(file_path, \"rb\") as f:\n        return f.read(34) == signature","node":"function isMPX(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x4D, 0x50, 0x58, 0x2C, 0x4D, 0x69, 0x63, 0x72, 0x6F, 0x73, 0x6F, 0x66, 0x74, 0x20, 0x50, 0x72, 0x6F, 0x6A, 0x65, 0x63, 0x74, 0x20, 0x66, 0x6F, 0x72, 0x20, 0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, 0x2C]);\n  return buffer.subarray(0, 34).equals(signature);\n}","go":"func IsMPX(data []byte) bool {\n    signature := []byte{0x4D, 0x50, 0x58, 0x2C, 0x4D, 0x69, 0x63, 0x72, 0x6F, 0x73, 0x6F, 0x66, 0x74, 0x20, 0x50, 0x72, 0x6F, 0x6A, 0x65, 0x63, 0x74, 0x20, 0x66, 0x6F, 0x72, 0x20, 0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, 0x2C}\n    if len(data) < 34 {\n        return false\n    }\n    return bytes.Equal(data[:34], signature)\n}"}}}