{"success":true,"data":{"ext":"tsp","name":"TSP","description":"The TSP file format is the DOS MZ executable format created by Microsoft for MS-DOS and later extended by Microsoft and IBM for Windows. It has been used for command-line programs, installers, device drivers, and other native applications on 16-bit and 32-bit DOS-compatible systems. Although largely obsolete, the format remains relevant for legacy software; executables from untrusted sources should be handled cautiously because they can run code directly.","mime":[],"risk_level":"Safe","signatures":[{"hex":"4D 5A","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"}]}],"related":[],"usage":{"python":"def is_tsp(file_path: str) -> bool:\n    \"\"\"Check if file is a valid TSP by magic bytes.\"\"\"\n    signature = bytes([0x4D, 0x5A])\n    with open(file_path, \"rb\") as f:\n        return f.read(2) == signature","node":"function isTSP(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x4D, 0x5A]);\n  return buffer.subarray(0, 2).equals(signature);\n}","go":"func IsTSP(data []byte) bool {\n    signature := []byte{0x4D, 0x5A}\n    if len(data) < 2 {\n        return false\n    }\n    return bytes.Equal(data[:2], signature)\n}"}}}