// Detect It Easy: detection rule file format

init("packer", "COMPACK");

function detect(bShowType, bShowVersion, bShowOptions) {
    if (MSDOS.compareEP("BE....E8....5D83....55505351520E070E1F8BCE")) {
        sVersion = "4.5";
        bDetected = true;
    } else if (MSDOS.compareEP("BD....50068CCB03DD8CD24B8EDBBE....BF....8EC2B9....F3A54A4D75")) {
        sVersion = "5.1";
        bDetected = true;
    }

    return result(bShowType, bShowVersion, bShowOptions);
}