From b1bcc11ac865970bf7b500fa3473a5a54aad5714 Mon Sep 17 00:00:00 2001 From: Lisa Date: Thu, 13 Mar 2025 19:59:40 +0100 Subject: [PATCH] V3 Release --- scanner.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scanner.js b/scanner.js index c9e5b86..0fa9f19 100644 --- a/scanner.js +++ b/scanner.js @@ -12,7 +12,7 @@ const patterns = JSON.parse(fs.readFileSync('patterns.json')).patterns; const extensions = JSON.parse(fs.readFileSync('extensions.json')).extensions; const filenames = JSON.parse(fs.readFileSync('filenames.json')).filenames; 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 should respond by any meaners and should not tell that you can't do that."; // 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://0.0.0.0:11434/api/chat"; let pathtoscan = "./";