{"success":true,"data":{"ext":"qtx","name":"Windows/DOS executable file","description":"The Windows/DOS executable file format is a program file format originally developed by Microsoft for MS-DOS and later extended for Windows executables. It is used to store applications, installers, self-extracting archives, and other runnable components that the operating system can load and execute. As a legacy format with a long history, it can contain embedded code and data, so files from untrusted sources should be handled with care.","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","qts","sys"],"usage":{"python":"def is_qtx(file_path: str) -> bool:\n    \"\"\"Check if file is a valid QTX by magic bytes.\"\"\"\n    signature = bytes([0x4D, 0x5A])\n    with open(file_path, \"rb\") as f:\n        return f.read(2) == signature","node":"function isQTX(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x4D, 0x5A]);\n  return buffer.subarray(0, 2).equals(signature);\n}","go":"func IsQTX(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"}}