{"success":true,"data":{"ext":"cur","name":"Windows cursor file","description":"Windows cursor file (CUR) is a file format used by Microsoft Windows and maintained as part of the Windows operating system. It stores mouse cursor images and hotspot information for use by desktop applications, themes, and system interface components. CUR files are generally safe to view, though malformed files can trigger parser bugs in older software; the format remains in use for compatibility with Windows cursor customization.","mime":[],"risk_level":"Safe","signatures":[{"hex":"00 00 02 00","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]}],"related":["bmp","dib","ico","avif","cr2","cr3"],"usage":{"python":"def is_cur(file_path: str) -> bool:\n    \"\"\"Check if file is a valid CUR by magic bytes.\"\"\"\n    signature = bytes([0x00, 0x00, 0x02, 0x00])\n    with open(file_path, \"rb\") as f:\n        return f.read(4) == signature","node":"function isCUR(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x00, 0x00, 0x02, 0x00]);\n  return buffer.subarray(0, 4).equals(signature);\n}","go":"func IsCUR(data []byte) bool {\n    signature := []byte{0x00, 0x00, 0x02, 0x00}\n    if len(data) < 4 {\n        return false\n    }\n    return bytes.Equal(data[:4], signature)\n}"},"category":"Images"}}