mirror of
https://github.com/horsicq/Detect-It-Easy.git
synced 2026-06-24 01:54:08 +00:00
hotfixes
This commit is contained in:
parent
4c21478360
commit
8faf857e0f
3 changed files with 3 additions and 4 deletions
|
|
@ -1683,15 +1683,15 @@ function detect(bShowType, bShowVersion, bShowOptions) {
|
|||
|
||||
}
|
||||
|
||||
|
||||
_setResult("compiler", sCompilerCPP_Name, sCompilerCPP_Version, sCompilerCPP_Options);
|
||||
} else if (sCompilerMASM_Name) {
|
||||
_setLang("ASMx" + (PE.is64() ? "64" : "86"));
|
||||
_setResult("compiler", sCompilerMASM_Name, sCompilerMASM_Version, sCompilerMASM_Options);
|
||||
}
|
||||
|
||||
|
||||
if (sLibraryDot_Name) {
|
||||
if (_getNumberOfResults("language") == -1) _setLang("MSIL/C#");
|
||||
if (!_isLangDetected()) _setLang("MSIL/C#");
|
||||
_setResult("library", sLibraryDot_Name, sLibraryDot_Version, sLibraryDot_Options);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -2294,7 +2294,6 @@ function scanForLanguages_NET_and_Native() {
|
|||
var found = PE.findSignature(0x00, PE.getSize(), "'." + langExtName + "' 00 00");
|
||||
if (found !== -1 && PE.compare("** ** ** ** **", found - 5)) {
|
||||
_setLang(langName, true, "HEUR");
|
||||
debug("detected " + langName);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ function _setLang(languageName, isPositive, version) {
|
|||
// following results containing several variants of languages written with a
|
||||
// slash. (For example, "C/C++" will not be added to the list of languages
|
||||
// if there is already a detection of "C" or "C++")
|
||||
if (!_isLangDetected() && languageName.indexOf("/") !== -1)
|
||||
if (_isLangDetected() && languageName.indexOf("/") !== -1)
|
||||
return;
|
||||
|
||||
if ((isPositive == true || isPositive == undefined) && File.isVerbose() && !_isResultPresent("language", languageName))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue