{"success":true,"data":{"ext":"xul","name":"XML User Interface Language file","description":"XML User Interface Language (XUL) is an XML-based user interface markup language created by Mozilla for defining application chrome and desktop-style interfaces. It was used primarily in Mozilla applications and related extensions to describe windows, menus, toolbars, and dialogs, especially in the Firefox and Thunderbird codebase. XUL is a legacy technology in most modern Mozilla projects, and files are generally safe to inspect as plain XML, though they may reference scripts or resources.","mime":["application/vnd.mozilla.xul+xml"],"risk_level":"Safe","signatures":[{"hex":"3C 3F 78 6D 6C 20 76 65 72 73 69 6F 6E 3D 22 31 2E 30 22 3F 3E","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]}],"related":["manifest","xml","xsd","xsl","msc","other"],"usage":{"python":"def is_xul(file_path: str) -> bool:\n    \"\"\"Check if file is a valid XUL by magic bytes.\"\"\"\n    signature = bytes([0x3C, 0x3F, 0x78, 0x6D, 0x6C, 0x20, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6F, 0x6E, 0x3D, 0x22, 0x31, 0x2E, 0x30, 0x22, 0x3F, 0x3E])\n    with open(file_path, \"rb\") as f:\n        return f.read(21) == signature","node":"function isXUL(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x3C, 0x3F, 0x78, 0x6D, 0x6C, 0x20, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6F, 0x6E, 0x3D, 0x22, 0x31, 0x2E, 0x30, 0x22, 0x3F, 0x3E]);\n  return buffer.subarray(0, 21).equals(signature);\n}","go":"func IsXUL(data []byte) bool {\n    signature := []byte{0x3C, 0x3F, 0x78, 0x6D, 0x6C, 0x20, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6F, 0x6E, 0x3D, 0x22, 0x31, 0x2E, 0x30, 0x22, 0x3F, 0x3E}\n    if len(data) < 21 {\n        return false\n    }\n    return bytes.Equal(data[:21], signature)\n}"},"category":"Web & Config"}}