Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- modem=peripheral.wrap("back")
- modem.open(753)
- admin = "bryceio"
- local memes, are, kings, user = os.pullEvent("modem_message")
- if are == 753 and kings == 921 then
- local test = fs.exists("login/"..user)
- if test == false then
- modem.transmit("Error404")
- shell.run("startup")
- end
- file = fs.open("login/"..user)
- local fileData = {}
- repeat
- table.insert(fileData,line)
- line = file.readLine()
- until line == nil
- file.close()
- local password = fileData[2]
- modem.transmit(921, 753, password)
- shell.run("startup")
- else
- shell.run("startup")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement