{"success":true,"data":{"ext":"sit","name":"StuffIt compressed archive","description":"StuffIt compressed archive (SIT) is a legacy compressed archive format created by Aladdin Systems and later maintained by Smith Micro. It was used to compress and bundle files on classic Macintosh systems, with support in archival tools for extracting and restoring older software and documents. The format is largely obsolete, and while generally safe, archives from untrusted sources should still be checked for unexpected file contents.","mime":["application/x-stuffit"],"risk_level":"Safe","signatures":[{"hex":"53 74 75 66 66 49 74","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":"53 49 54 21 00","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]},{"hex":"53 74 75 66 66 49 74 20 28 63 29 31 39 39 37 2D","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]}],"related":[],"usage":{"python":"def is_sit(file_path: str) -> bool:\n    \"\"\"Check if file is a valid SIT by magic bytes.\"\"\"\n    signature = bytes([0x53, 0x74, 0x75, 0x66, 0x66, 0x49, 0x74])\n    with open(file_path, \"rb\") as f:\n        return f.read(7) == signature","node":"function isSIT(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x53, 0x74, 0x75, 0x66, 0x66, 0x49, 0x74]);\n  return buffer.subarray(0, 7).equals(signature);\n}","go":"func IsSIT(data []byte) bool {\n    signature := []byte{0x53, 0x74, 0x75, 0x66, 0x66, 0x49, 0x74}\n    if len(data) < 7 {\n        return false\n    }\n    return bytes.Equal(data[:7], signature)\n}"},"category":"Archives"}}