{"success":true,"data":{"ext":"wb2","name":"QuattroPro for Windows Spreadsheet file","description":"QuattroPro for Windows Spreadsheet file is a spreadsheet format originally developed by Borland and later maintained by Corel as part of the Quattro Pro and WordPerfect Office suite. It is used for storing worksheets, formulas, charts, and business data, and is opened by compatible versions of Quattro Pro and some office suite converters. This is a legacy format; files from untrusted sources should still be treated cautiously, although the format itself is generally considered safe.","mime":["application/x-quattro-pro;version=6"],"risk_level":"Safe","signatures":[{"hex":"00 00 02 00 02 10","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"}]},{"hex":"00 00 02 00","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]}],"related":["wk1","wb1","wk2","wkq","wq1","wq2"],"usage":{"python":"def is_wb2(file_path: str) -> bool:\n    \"\"\"Check if file is a valid WB2 by magic bytes.\"\"\"\n    signature = bytes([0x00, 0x00, 0x02, 0x00, 0x02, 0x10])\n    with open(file_path, \"rb\") as f:\n        return f.read(6) == signature","node":"function isWB2(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x00, 0x00, 0x02, 0x00, 0x02, 0x10]);\n  return buffer.subarray(0, 6).equals(signature);\n}","go":"func IsWB2(data []byte) bool {\n    signature := []byte{0x00, 0x00, 0x02, 0x00, 0x02, 0x10}\n    if len(data) < 6 {\n        return false\n    }\n    return bytes.Equal(data[:6], signature)\n}"}}}