Detect-It-Easy/db/PE/java.3.sg
2024-11-12 20:11:38 +03:00

21 lines
No EOL
562 B
JavaScript
Executable file

// Detect It Easy: detection rule file
init("library", "Java");
function detect() {
if (PE.getOverlaySize() > 0x40) {
if (PE.findString(PE.getOverlayOffset(), 0x40, "META-INF/MANIFEST.MF") != -1) {
var nResSection = PE.getResourceSection();
if (nResSection != -1) {
if (PE.isSignatureInSectionPresent(nResSection, "'Java Runtime Environment'")) {
bDetected = true;
}
}
}
}
_setLang("Java", bDetected);
return result();
}