{"success":true,"data":{"ext":"tbi","name":"The Bat!secure e-mail Message Base Index file","description":"The Bat! secure e-mail Message Base Index file is an index format used by The Bat!, an e-mail client developed and maintained by Ritlabs. It supports organizing and locating messages within secure mail databases, helping the application manage folder structures, message metadata, and access to archived correspondence. The format is generally safe, though it is a legacy application-specific index that may only be useful within compatible versions of The Bat!.","mime":[],"risk_level":"Safe","signatures":[{"hex":"00 00 00 00 14 00 00 00","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]},{"hex":"01 01 47 19 A4 00 00 00 00 00 00 00","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]}],"related":["pdb","rvt","xxx"],"usage":{"python":"def is_tbi(file_path: str) -> bool:\n    \"\"\"Check if file is a valid TBI by magic bytes.\"\"\"\n    signature = bytes([0x00, 0x00, 0x00, 0x00, 0x14, 0x00, 0x00, 0x00])\n    with open(file_path, \"rb\") as f:\n        return f.read(8) == signature","node":"function isTBI(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x00, 0x00, 0x00, 0x00, 0x14, 0x00, 0x00, 0x00]);\n  return buffer.subarray(0, 8).equals(signature);\n}","go":"func IsTBI(data []byte) bool {\n    signature := []byte{0x00, 0x00, 0x00, 0x00, 0x14, 0x00, 0x00, 0x00}\n    if len(data) < 8 {\n        return false\n    }\n    return bytes.Equal(data[:8], signature)\n}"}}}