Hi, I’m creating a sort of plugin to scan scripts that could contain viruses, essentially this plugin scans all the source code of the scripts present in the game / path and checks if there are any functions or parts of code that could be dangerous.
I was looking for help to improve my filter by adding functions and assigning them the possible gravity according to 3 different colors, for the more severe ones red (255, 0, 0), for the intermediate ones orange (255, 170, 0) and finally for the less severe yellow (255, 255, 0).
I would really appreciate if someone (who has experience and time to devote) improves it.
Sorry for the bad english.
Module with the code:
-- Red | more severe ones | Color3.fromRGB(255, 0, 0);
-- Orange | intermediate ones | Color3.fromRGB(255, 170, 0);
-- Yellow | less severe ones | Color3.fromRGB(255, 255, 0);
local filter = {
["loadstring"] = Color3.fromRGB(255, 0, 0);
["require"] = Color3.fromRGB(255, 0, 0);
["FireServer"] = Color3.fromRGB(255, 170, 0);
["InvokeServer"] = Color3.fromRGB(255, 170, 0);
["PromptProductPurchase"] = Color3.fromRGB(255, 0, 0);
}
return filter