mirror of
https://github.com/horsicq/Detect-It-Easy.git
synced 2026-06-24 01:54:08 +00:00
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:
parent
4f6397516c
commit
f249f403a6
16 changed files with 47 additions and 44 deletions
|
|
@ -50,8 +50,11 @@ function detect() {
|
|||
sVersion = "2.X";
|
||||
sOptions = "1989";
|
||||
}
|
||||
|
||||
bDetected = true;
|
||||
}
|
||||
|
||||
sLang = ("C" + (sName.indexOf("C++") > -1 ? "/C++" : String()));
|
||||
|
||||
return result();
|
||||
}
|
||||
32
db/MSDOS/Pascal_MT+86.4.sg → db/MSDOS/compiler_Pascal_MT+86.4.sg
Executable file → Normal file
32
db/MSDOS/Pascal_MT+86.4.sg → db/MSDOS/compiler_Pascal_MT+86.4.sg
Executable file → Normal 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();
|
||||
26
db/MSDOS/Borland_TLINK.5.sg → db/MSDOS/linker_Borland_TLINK.5.sg
Executable file → Normal file
26
db/MSDOS/Borland_TLINK.5.sg → db/MSDOS/linker_Borland_TLINK.5.sg
Executable file → Normal 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();
|
||||
}
|
||||
30
db/MSDOS/Adys_Glue.2.sg → db/MSDOS/protector_Adys_Glue.2.sg
Executable file → Normal file
30
db/MSDOS/Adys_Glue.2.sg → db/MSDOS/protector_Adys_Glue.2.sg
Executable file → Normal 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();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue