daily pastebin goal
74%
SHARE
TWEET

Register Account

bryceio Feb 13th, 2018 96 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. modem = peripheral.wrap("back")
  2. modem.open(593)
  3. local modmSide, senderChannel,replyChannel, user = os.pullEvent("modem_message")
  4. fs.makeDir("login")
  5. if fs.exists("login/"..user) == true then
  6.     modem.transmit(921, 593, "already")
  7.     shell.run("startup")
  8. else
  9.     modem.transmit(921, 593, "ready")
  10. local file = fs.open("login/"..user,"a")
  11. file.writeLine(user)
  12. modem.close(593)
  13. modem.open(674)
  14. local memes, are, king, password = os.pullEvent("modem_message")
  15. file.writeLine(password)
  16. file.close()
  17. sleep(2)
  18. shell.run("startup")
  19. end
RAW Paste Data
Top