// Detect It Easy: detection rule file format
// Author: hypn0 <hypn0@mail.ru> & Arjan Onwezen

init("format", "VMWare Virtual Disk (VMDK)");

function detect(bShowType, bShowVersion, bShowOptions) {
    if (Binary.compare("'KDMV'01") || Binary.compare("'KDMV'02") || Binary.compare("'KDMV'03")) {
        bDetected = true;
        sVersion = "v" + File.read_uint8(4)
    }

    return result(bShowType, bShowVersion, bShowOptions);
}