Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.pullEvent = os.pullEventRaw
- term.clear()
- term.setCursorPos(0,0)
- print("Reserving Memory Space...")
- os.sleep(4)
- print("Initializing Download...")
- os.sleep(2)
- print("Starting Download")
- os.sleep(5)
- local zeichen = {"1","0"}
- for i=0,100 do
- for i=0,47 do
- char = zeichen[math.random(1, #zeichen)]
- term.write(char)
- end
- print(char)
- os.queueEvent("randomEvent")
- os.pullEvent()
- end
- os.sleep(4)
- print("")
- print("Download completed!")
- print("Unpacking Data...")
- os.sleep(2)
- print("'Virus.app' has been moved to 'startup'")
- os.sleep(1)
- print("Removing old Files...")
- os.sleep(4)
- print("Files Removed")
- os.sleep(2)
- print("Rebooting System in 5")
- os.sleep(1)
- print("Rebooting System in 4")
- os.sleep(1)
- print("Rebooting System in 3")
- os.sleep(1)
- print("Rebooting System in 2")
- os.sleep(1)
- print("Rebooting System in 1")
- os.sleep(1)
- print("Rebooting System now")
- os.sleep(2)
- term.clear()
- term.setCursorPos(1,1)
- print("VirusOS 1.1")
- print("")
- local inFolder = "root"
- local deleted = false
- local stop = 0
- os.sleep(3)
- print("Starting 'Virus.app'...")
- print("Done")
- while stop == 0 do
- local command = read()
- if command == "help" then
- print("Command List:")
- print("help delete reboot edit version open")
- print("Dir: " ..inFolder)
- elseif command == "delete" then
- print("Delete what File?")
- local file = read()
- if (inFolder == "startup") and (file == 'virus.app') and (deleted == false) then
- print("File deleted")
- deleted = true
- elseif (inFolder == "startup") and (file == 'system.dc') then
- print("Access denied")
- elseif (inFolder == "startup") and (file == 'config.lpc') then
- print("Access denied")
- else
- print("File not found")
- end
- elseif command == "reboot" then
- print("Rebooting System in 5")
- os.sleep(1)
- print("Rebooting System in 4")
- os.sleep(1)
- print("Rebooting System in 3")
- os.sleep(1)
- print("Rebooting System in 2")
- os.sleep(1)
- print("Rebooting System in 1")
- os.sleep(1)
- print("Rebooting System now")
- os.sleep(2)
- term.clear()
- if deleted == true then
- stop = 1
- else
- print("VirusOS 1.1")
- os.sleep(3)
- print("Starting 'Virus.app'...")
- print("Done")
- end
- elseif command == "edit" then
- print("Edit what File?")
- local file = read()
- if (inFolder == "startup") and (file == 'virus.app') and (deleted == false) then
- print("Access denied")
- elseif (inFolder == "startup") and (file == 'system.dc') then
- print("Access denied")
- elseif (inFolder == "startup") and (file == 'config.lpc') then
- print("Access denied")
- else
- print("File not found")
- end
- elseif command == "version" then
- term.clear()
- term.setCursorPos(1,1)
- print("VirusOS 1.1")
- print("Directory : "..inFolder)
- elseif command == "open" then
- print("Open what Folder?")
- local folder = read()
- if folder == "startup" then
- print("Directory has been changed to 'startup'")
- print("Files: 'virus.app', 'system.dc', 'config.lpc'")
- inFolder = "startup"
- else
- print("Folder not found")
- end
- else
- print("ERROR 2.3")
- print("exception handle: unknown command")
- end
- end
- term.clear()
- term.setCursorPos(1,1)
- os.sleep(2)
- print("War kein echter Virus, du hast dich aber trotzdem gut geschlagen!")
- os.sleep(3)
- print("Echter System-Neustart in 5")
- os.sleep(1)
- print("Echter System-Neustart in 4")
- os.sleep(1)
- print("Echter System-Neustart in 3")
- os.sleep(1)
- print("Echter System-Neustart in 2")
- os.sleep(1)
- print("Echter System-Neustart in 1")
- os.sleep(1)
- print("Echter System-Neustart jetzt")
- os.sleep(2)
- os.reboot()
Advertisement
Add Comment
Please, Sign In to add comment