{"success":true,"data":{"ext":"drv","name":"Windows/DOS executable file","description":"The Windows/DOS executable file format is a legacy executable container originally developed for MS-DOS by Microsoft, with the DOS MZ convention associated with Mark Zbikowski. It is used to store programs and related binaries for DOS and early Windows systems, including applications, utilities, and self-extracting packages. Because it is a historical format, files should be handled cautiously, as executable content may contain malicious code when obtained from untrusted sources.","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","exe","qts","qtx","sys"],"usage":{"python":"def is_drv(file_path: str) -> bool:\n    \"\"\"Check if file is a valid DRV by magic bytes.\"\"\"\n    signature = bytes([0x4D, 0x5A])\n    with open(file_path, \"rb\") as f:\n        return f.read(2) == signature","node":"function isDRV(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x4D, 0x5A]);\n  return buffer.subarray(0, 2).equals(signature);\n}","go":"func IsDRV(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"}}