Detect-It-Easy/db/Binary/text.script.2.sg
2024-11-07 00:17:07 +03:00

16 lines
No EOL
407 B
JavaScript
Executable file

// Detect It Easy: detection rule file format
// Author: Jason Hood <jadoxa@yahoo.com.au>
init("script");
includeScript("shell-script");
function detect() {
if (sInterpreter) {
// Capitalize the first letter, lowercase the rest.
sName = sInterpreter.substr(0, 1).toUpperCase() + sInterpreter.substr(1).toLowerCase();
bDetected = true;
}
return result();
}