Categorize and rename MSDOS rule files

Rename many db/MSDOS detection rules to include category prefixes (e.g. compiler_, extender_, immunizer_, linker_, protector_, other_) for clearer organization. Add sLang assignment for Microsoft_C rule to set "C" or "C/C++" based on sName. Normalize formatting/whitespace in several scripts and remove executable bit from a few rule files. No detection logic changes besides the explicit sLang assignment.
This commit is contained in:
DosX 2026-06-21 12:22:16 +03:00
commit f249f403a6
16 changed files with 47 additions and 44 deletions

View file

@ -50,8 +50,11 @@ function detect() {
sVersion = "2.X";
sOptions = "1989";
}
bDetected = true;
}
sLang = ("C" + (sName.indexOf("C++") > -1 ? "/C++" : String()));
return result();
}

View file

@ -1,19 +1,19 @@
// Detect It Easy: detection rule file
// Author: hypn0 <hypn0@mail.ru>
meta("compiler", "Pascal/MT+86");
function detect() {
if (MSDOS.compareEP("e8$$$$8cc82e0306....2e0306....2e0306....2e0306....3b06....76..2ea1....2d....2ea3....3d....7f..1ee8")) {
sVersion = "3.1";
sOptions = "1982 by Digital Research, Inc.";
bDetected = true;
} else if (MSDOS.compareEP("e8$$$$8cc82e0306....2e0306....2e0306....2e0306....3b06....76..1ee8")) {
sVersion = "3.01";
sOptions = "1982 by Digital Research, Inc.";
bDetected = true;
}
// Detect It Easy: detection rule file
// Author: hypn0 <hypn0@mail.ru>
meta("compiler", "Pascal/MT+86");
function detect() {
if (MSDOS.compareEP("e8$$$$8cc82e0306....2e0306....2e0306....2e0306....3b06....76..2ea1....2d....2ea3....3d....7f..1ee8")) {
sVersion = "3.1";
sOptions = "1982 by Digital Research, Inc.";
bDetected = true;
} else if (MSDOS.compareEP("e8$$$$8cc82e0306....2e0306....2e0306....2e0306....3b06....76..1ee8")) {
sVersion = "3.01";
sOptions = "1982 by Digital Research, Inc.";
bDetected = true;
}
sLang = "Pascal";
return result();

View file

@ -1,14 +1,14 @@
// Detect It Easy: detection rule file
// Author: horsicq <horsicq@gmail.com>
meta("linker", "Borland TLINK");
function detect() {
var nVer = MSDOS.readWord(0x1E);
if ((nVer & 0xFF) == 0xFB) {
sVersion = ((nVer >> 8) / 16).toFixed(1);
bDetected = true;
}
return result();
// Detect It Easy: detection rule file
// Author: horsicq <horsicq@gmail.com>
meta("linker", "Borland TLINK");
function detect() {
var nVer = MSDOS.readWord(0x1E);
if ((nVer & 0xFF) == 0xFB) {
sVersion = ((nVer >> 8) / 16).toFixed(1);
bDetected = true;
}
return result();
}

View file

@ -1,16 +1,16 @@
// Detect It Easy: detection rule file
// Author: horsicq <horsicq@gmail.com>
meta("protector", "Ady`s Glue");
function detect() {
if (MSDOS.compareEP("2E........0E1FBF....33DB33C0AC")) {
sVersion = "1.10";
bDetected = true;
} else if (MSDOS.compareEP("2E8C06....0E0733C08ED8BE....BF....FCB9....56F3A51E075F")) {
sVersion = "0.10";
bDetected = true;
}
return result();
// Detect It Easy: detection rule file
// Author: horsicq <horsicq@gmail.com>
meta("protector", "Ady`s Glue");
function detect() {
if (MSDOS.compareEP("2E........0E1FBF....33DB33C0AC")) {
sVersion = "1.10";
bDetected = true;
} else if (MSDOS.compareEP("2E8C06....0E0733C08ED8BE....BF....FCB9....56F3A51E075F")) {
sVersion = "0.10";
bDetected = true;
}
return result();
}