mirror of
https://github.com/horsicq/Detect-It-Easy.git
synced 2026-06-24 01:54:08 +00:00
23 lines
No EOL
572 B
JavaScript
Executable file
23 lines
No EOL
572 B
JavaScript
Executable file
// Detect It Easy: detection rule file
|
|
// Author: horsicq <horsicq@gmail.com>
|
|
|
|
meta("library", "Python"); // !!!! 🐓🐓🐓🐓🐓 !!!!
|
|
|
|
function detect() {
|
|
var aPython = PE.isLibraryPresentExp(/^python(\d)(\d+)/i);
|
|
if (aPython) {
|
|
sVersion = aPython[1] + "." + aPython[2];
|
|
bDetected = true;
|
|
}
|
|
|
|
var aPython2 = PE.isLibraryPresentExp(/^libpython(\d.\d)/i);
|
|
if (aPython2) {
|
|
sVersion = aPython2[1];
|
|
bDetected = true;
|
|
}
|
|
|
|
sLang = "Python";
|
|
sLangVersion = sVersion;
|
|
|
|
return result();
|
|
} |