Merge pull request #274 from merces/master

MinGW signature fix and improvements
This commit is contained in:
Hors 2025-05-02 09:03:48 +02:00 committed by GitHub
commit 76fcea44a2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,4 +1,5 @@
// Detect It Easy: detection rule file
// improved by fernandom - menteb.in - 2025.05
init("compiler", "MinGW");
@ -46,8 +47,10 @@ function detect() {
else */
if (PE.getMajorLinkerVersion() == 2) {
if (!bFPC && (PE.getMinorLinkerVersion() <= 30 || PE.getMinorLinkerVersion() == 36 || PE.getMinorLinkerVersion() == 56)) {
if (PE.compare("'MZ'90000300000004000000FFFF0000B800000000000000400000000000000000000000000000000000000000000000000000000000000000000000800000000E1FBA0E00B409CD21B8014CCD21'This program cannot be run in DOS mode.\r\r\n$'0000000000000'PE'0000")) {
var minor = PE.getMinorLinkerVersion();
if(!bFPC && (minor <= 30 || minor == 36 || minor == 41 || minor == 44 || minor == 56)) {
if (PE.compare("'MZ'90000300000004000000FFFF0000B800000000000000400000000000000000000000000000000000000000000000000000000000000000000000800000000E1FBA0E00B409CD21B8014CCD21'This program cannot be run in DOS mode.\r\r\n$'00000000000000'PE'0000")) {
if (!PE.section[".rsrc"]) {
bDetected = true;
} else {
@ -72,6 +75,10 @@ function detect() {
}
}
if (bDetected && !PE.isOverlayPresent()) {
sOptions = "stripped";
}
_setLang("C/C++", bDetected);
return result();