mirror of
https://github.com/horsicq/Detect-It-Easy.git
synced 2026-06-24 01:54:08 +00:00
Renamed PE rule files to use a consistent naming convention with prefixes indicating their type (e.g., compiler_, packer_, installer_, etc.). Also updated file permissions to 100644 where needed and made minor whitespace-only changes to some files for consistency. This improves maintainability and clarity of the signature database.
21 lines
No EOL
669 B
JavaScript
21 lines
No EOL
669 B
JavaScript
// Detect It Easy: detection rule file
|
|
|
|
meta("format", "Compiled AutoHotKey");
|
|
|
|
function detect() {
|
|
if (PE.resource[">AUTOHOTKEY SCRIPT<"]) {
|
|
sVersion = PE.getFileVersion();
|
|
bDetected = true;
|
|
} else {
|
|
var sManifest = PE.getManifest();
|
|
|
|
if (sManifest.indexOf("AutoHotkey") !== -1 && // First, we look for a substring to save processor cycles
|
|
sManifest.match(/(\n?)<assemblyIdentity.*?(\n?).*version(.*?)(\n?)name=\"AutoHotkey\"/)) {
|
|
aVersion = sManifest.match(/version=\"(.*?)\" ?name=\"AutoHotkey/);
|
|
sVersion = aVersion[1];
|
|
bDetected = true;
|
|
}
|
|
}
|
|
|
|
return result();
|
|
} |