LDShadowLord

MagLogin1

Sep 14th, 2013
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --Anti CtrlT
  2. os.pullEvent=os.pullEventRaw
  3.  
  4. --Variables
  5. passcheck=tonumber(469)
  6.  
  7. --Modem Detection
  8. for a,b in pairs(rs.getSides()) do
  9.   if peripheral.getType(b) == 'modem' then
  10.    rednet.open(b)
  11.    break
  12.   end
  13. end
  14.  
  15. --Main Program
  16. term.clear()
  17. term.setCursorPos(1,1)
  18. print("Magpie Security v2|")
  19. print("------------------'")
  20. write("Password: ")
  21. ui=read("*")
  22. rednet.send(passcheck, ui)
  23. id,msg=rednet.receive()
  24. if msg == "yes" then
  25.   term.clear()
  26.   term.setCursorPos(1,1)
  27.   print("Magpie Security|")
  28.   print("---------------'")
  29. else
  30.   print("wrong")
  31. end
Advertisement
Add Comment
Please, Sign In to add comment