{"success":true,"data":{"ext":"qts","name":"Windows/DOS executable file","description":"The Windows/DOS executable file format is a legacy program file format originally developed for MS-DOS by Microsoft and associated with the MZ header introduced by Mark Zbikowski. It is used to store runnable applications, installers, and self-extracting archives on DOS and early Windows systems, including related NE and PE variants. Because executable files can contain machine code, they should be opened only from trusted sources; the format is historically significant and largely superseded by modern application packaging.","mime":[],"risk_level":"Safe","signatures":[{"hex":"4D 5A","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]}],"related":["com","dll","drv","exe","qtx","sys"],"usage":{"python":"def is_qts(file_path: str) -> bool:\n    \"\"\"Check if file is a valid QTS by magic bytes.\"\"\"\n    signature = bytes([0x4D, 0x5A])\n    with open(file_path, \"rb\") as f:\n        return f.read(2) == signature","node":"function isQTS(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x4D, 0x5A]);\n  return buffer.subarray(0, 2).equals(signature);\n}","go":"func IsQTS(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}"},"category":"Executables"}}