{"success":true,"data":{"ext":"drx","name":"DRX","description":"DRX is a file format associated with Macromedia Director, originally created by Macromedia and later maintained under Adobe after its acquisition of Macromedia. It is used to store Director project resources and related data for interactive multimedia presentations, including animations, educational content, and other rich media applications. The format is legacy and largely obsolete, but it is generally considered safe; as with any older media file, untrusted files should still be opened with current software.","mime":[],"risk_level":"Safe","signatures":[{"hex":"52 49 46 58","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"}]},{"hex":"4D 56 39 33","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"}]}],"related":["dcr","dir","dxr"],"usage":{"python":"def is_drx(file_path: str) -> bool:\n    \"\"\"Check if file is a valid DRX by magic bytes.\"\"\"\n    signature = bytes([0x52, 0x49, 0x46, 0x58])\n    with open(file_path, \"rb\") as f:\n        return f.read(4) == signature","node":"function isDRX(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x52, 0x49, 0x46, 0x58]);\n  return buffer.subarray(0, 4).equals(signature);\n}","go":"func IsDRX(data []byte) bool {\n    signature := []byte{0x52, 0x49, 0x46, 0x58}\n    if len(data) < 4 {\n        return false\n    }\n    return bytes.Equal(data[:4], signature)\n}"}}}