Detect-It-Easy/db/PE/format_AutoHotKey.3.sg
DosX dc2a925b3d Rename and reorganize PE rule files
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.
2026-01-25 11:00:27 +03:00

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();
}