mirror of
https://github.com/horsicq/Detect-It-Easy.git
synced 2026-06-24 01:54:08 +00:00
Added a standard header comment to all db framework and detection rule files, indicating they are part of the Detect It Easy (DiE-JS) framework and warning against unauthorized changes. This improves consistency and clarifies file purpose for maintainers.
26 lines
No EOL
886 B
Text
Executable file
26 lines
No EOL
886 B
Text
Executable file
// Detect It Easy: DiE-JS framework file
|
|
// Don't change anything unless you're sure about what you're doing
|
|
|
|
// Detect a ZLIB.
|
|
// Author: LinXP
|
|
|
|
function detect_zlib(bFile, nOffset) {
|
|
var sInfo = "ZLIB compression";
|
|
if (bFile.compare("7801", nOffset)) {
|
|
if (bFile.isVerbose()) { sInfo += " fastest" }
|
|
sOptions = sOptions.append(sInfo);
|
|
return true;
|
|
} else if (bFile.compare("785E", nOffset)) {
|
|
if (bFile.isVerbose()) { sInfo += " fast" }
|
|
sOptions = sOptions.append(sInfo);
|
|
return true;
|
|
} else if (bFile.compare("789C", nOffset)) {
|
|
if (bFile.isVerbose()) { sInfo += " normal" }
|
|
sOptions = sOptions.append(sInfo);
|
|
return true;
|
|
} else if (bFile.compare("78DA", nOffset)) {
|
|
if (bFile.isVerbose()) { sInfo += " best" }
|
|
sOptions = sOptions.append(sInfo);
|
|
return true;
|
|
}
|
|
} |