{"success":true,"data":{"ext":"gtar","name":"GTAR","description":"GTAR is a tar archive file format associated with GNU tar, maintained as part of the GNU project. It is used to bundle multiple files and directories into a single archive for software distribution, backup, and file transfer, especially on Unix-like systems. The format is generally considered safe; however, as with other archives, contents should be reviewed before extraction, and it remains a legacy interchange format in many modern workflows.","mime":["application/x-gtar"],"risk_level":"Safe","signatures":[{"hex":"75 73 74 61 72 20 20 00","offset":257,"sources":[{"name":"Apache Tika","url":"https://raw.githubusercontent.com/apache/tika/main/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml"}]}],"related":["tar"],"usage":{"python":"def is_gtar(file_path: str) -> bool:\n    \"\"\"Check if file is a valid GTAR by magic bytes at offset 257.\"\"\"\n    signature = bytes([0x75, 0x73, 0x74, 0x61, 0x72, 0x20, 0x20, 0x00])\n    with open(file_path, \"rb\") as f:\n        f.seek(257)\n        return f.read(8) == signature","node":"function isGTAR(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x75, 0x73, 0x74, 0x61, 0x72, 0x20, 0x20, 0x00]);\n  if (buffer.length < 265) return false;\n  return buffer.subarray(257, 265).equals(signature);\n}","go":"func IsGTAR(data []byte) bool {\n    signature := []byte{0x75, 0x73, 0x74, 0x61, 0x72, 0x20, 0x20, 0x00}\n    if len(data) < 265 {\n        return false\n    }\n    return bytes.Equal(data[257:265], signature)\n}"}}}