{"success":true,"data":{"ext":"vdi","name":"VDI","description":"Virtual Disk Image (VDI) is a virtual disk file format developed and maintained by Oracle for use with VirtualBox. It is used to store the contents of a virtual machine’s hard drive, including operating systems, applications, and data, and is commonly used in virtualization, testing, and system migration. The format is generally safe, though any disk image can contain malicious software or compromised data if obtained from untrusted sources.","mime":[],"risk_level":"Safe","signatures":[{"hex":"3C 3C 3C 20 4F 72 61 63","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"}]},{"hex":"6C 65 20 56 4D 20 56 69","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"}]},{"hex":"72 74 75 61 6C 42 6F 78","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"}]},{"hex":"20 44 69 73 6B 20 49 6D","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"}]},{"hex":"61 67 65 20 3E 3E 3E","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"}]}],"related":["img","adf","bin","dmg","g64","iso"],"usage":{"python":"def is_vdi(file_path: str) -> bool:\n    \"\"\"Check if file is a valid VDI by magic bytes.\"\"\"\n    signature = bytes([0x3C, 0x3C, 0x3C, 0x20, 0x4F, 0x72, 0x61, 0x63])\n    with open(file_path, \"rb\") as f:\n        return f.read(8) == signature","node":"function isVDI(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x3C, 0x3C, 0x3C, 0x20, 0x4F, 0x72, 0x61, 0x63]);\n  return buffer.subarray(0, 8).equals(signature);\n}","go":"func IsVDI(data []byte) bool {\n    signature := []byte{0x3C, 0x3C, 0x3C, 0x20, 0x4F, 0x72, 0x61, 0x63}\n    if len(data) < 8 {\n        return false\n    }\n    return bytes.Equal(data[:8], signature)\n}"},"category":"Disk Images"}}