Detect-It-Easy/db/Binary/source_text.python.1.sg
DosX 9e621e1954 Rename and reorganize rule files
Renamed and moved numerous .sg files in the db directory to follow a more consistent naming convention and directory structure, grouping by type (e.g., compiler, cruncher, packer, protector, etc.). This improves maintainability and clarity of the signature database organization.
2026-01-25 11:20:39 +03:00

16 lines
No EOL
345 B
JavaScript

// Detect It Easy: detection rule file
meta("source", "Python");
function detect() {
var sText = Binary.getHeaderString();
if ((/import\s/.test(sText)) && (/class\s/.test(sText)) && (/self/.test(sText))) {
if (/\sdef\s/.test(sText)) {
bDetected = true;
}
}
sLang = "Python";
return result();
}