Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[ Calls in and requires AP and/or components ]--
- local component = require("component") --allows use to call components
- local term = require("term") --enables us to use the term API
- local fs = require("filesystem") -- I think this might be fs instead of file system
- local event = require("event")
- local m = component.modem
- local whitelist = fs.open("/Server/Whitelist.txt",'r') --opening a file in read mode
- whitelist:read() --This reads all the data from the file and stores it into the variable whitelist
- whitelist:close()
- local pswds = fs.open("/Server/passes.txt",'r') --opening a file in read mode
- pswds:read() -- This reads all the data from the file and stores it into the pswds variable
- pswds:close()
- m.open(95)
- function checkValue(address)
- end
- while true do
- local _,me,who,port,_,message = os.pullEvent("modem_message")
- checkValue(who)
- end
- --[[ Files Structure
- computer1 = {"verylongstringaddress","passwordisstring"} --remove this comment once the code is complete.
- ]]--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement