V4 : Yara rules implementation
This commit is contained in:
parent
e9dd0c3dee
commit
b75ab4de08
43
scanner.js
43
scanner.js
@ -14,21 +14,34 @@ const aimodel = "llama3.2:1b"; // Change at your own risk!
|
||||
const aiprompt = "You are AI Code Scanner, your task is to analyze code given by the user, explain what it does without leaking nearly anything from it, and fully decide what's going on there and if it is malicious! Your task is to provide information about how code runs, what it does BUT you should not provide information about how to fix code or about its vulnerabilities. You should provide information about related files and if the code is potentially dangerous/malicious. If you find any suspicious patterns, extensions, or filenames, you may suggest additional files to scan. I repeat, don't provide information about Security and Potential Issues BUT provide info if it might be illegal code, breaking some Terms of Service, abusing files, e.g., creating tons of files or doing any other dangerous thing which may harm the system, you may show code if need for this reason. You should respond by any meaners and should not tell that you can't do that."; // Change at your own risk!
|
||||
const llamaendpoint = "http://192.168.2.109:11434/api/chat";
|
||||
const extensions = [
|
||||
'.exe', // Executable files
|
||||
'.dll', // Dynamic Link Library files
|
||||
'.scr', // Screensaver files
|
||||
'.vbs', // Visual Basic Script files
|
||||
'.js', // JavaScript files
|
||||
'.bat', // Batch files
|
||||
'.cmd', // Command files
|
||||
'.ps1', // PowerShell Script files
|
||||
'.ps2', // Second PowerShell Script files
|
||||
'.psm1', // PowerShell Module files
|
||||
'.py', // Python files
|
||||
'.pyx', // Cython files
|
||||
'.jsx', // JavaScript XML files
|
||||
'.ts', // TypeScript files
|
||||
'.tsx' // TypeScript XML files
|
||||
'.exe', // Executable files
|
||||
'.dll', // Dynamic Link Library files
|
||||
'.scr', // Screensaver files
|
||||
'.vbs', // Visual Basic Script files
|
||||
'.js', // JavaScript files
|
||||
'.bat', // Batch files
|
||||
'.cmd', // Command files
|
||||
'.ps1', // PowerShell Script files
|
||||
'.ps2', // Second PowerShell Script files
|
||||
'.psm1', // PowerShell Module files
|
||||
'.py', // Python files
|
||||
'.pyx', // Cython files
|
||||
'.jsx', // JavaScript XML files
|
||||
'.ts', // TypeScript files
|
||||
'.tsx', // TypeScript XML files
|
||||
".sh",
|
||||
".deb",
|
||||
".java",
|
||||
".class",
|
||||
".jar",
|
||||
".ejs",
|
||||
".lua",
|
||||
".run",
|
||||
".rare",
|
||||
".html",
|
||||
".php",
|
||||
".json",
|
||||
".yaml",
|
||||
];
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user