Advertisement
Marlingaming

Security/FileScan

Oct 22nd, 2022
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. function Scan(file)
  2. settings.load("System/Files/SecuritySettings.txt")
  3. local BlackListed_Phrases = settings.get("Blocked_Phrases")
  4. local Doc = fs.open(file,"r")
  5. local Text = Doc.readAll()
  6. Pass = true
  7. for i = 1, #BlackListed_Phrases do
  8. if string.find(Text,BlackListed_Phrases[i]) == true then Pass = false end
  9. end
  10. return Pass
  11. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement