Guest User

Untitled

a guest
Dec 6th, 2017
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1. import sys
  2. import telnetlib
  3. import time
  4. def ts():
  5. time.sleep(2)
  6. username = 'nunu'
  7. password = 'abbaqueenfish'
  8. HOST = 'mud.finalchallenge.net'
  9. tn = telnetlib.Telnet(HOST, 4000)
  10. data = tn.read_until('By what name do you wish to be known?')
  11. ts()
  12. tn.write(username+"\n")
  13. tn.read_until('Is this the name you want:')
  14. ts()
  15. tn.write('y\n')
  16. tn.read_until('Give me a password for ')
  17. ts()
  18. tn.write(password+'\n')
  19. tn.read_until('Please retype password:')
  20. ts()
  21. tn.write(password+'\n')
  22. tn.read_until('What is your sex (M/F)?')
  23. ts()
  24. tn.write('m\n')
  25. tn.read_until('Press <return> to continue.')
  26. ts()
  27. tn.write('\n')
  28. tn.read_until('''Please select race, ''')
  29. ts()
  30. tn.write('1\n')
  31. tn.read_until('''Please select a hometown, ''')
  32. ts()
  33. tn.write('1\n')
  34. tn.read_until('Please select class,')
  35. ts()
  36. tn.write('2\n')
  37. tn.read_until('acknowledge that you have read, agree to')
  38. ts()
  39. tn.write('yes\n')
  40. tn.read_until('Please enter e-mail address')
  41. ts()
  42. tn.write('\n')
  43. tn.read_until('Accept?')
  44. ts()
  45. tn.write('y\n')
  46. tn.read_until('Press RETURN to continue:')
  47. ts()
  48. tn.write('\n')
  49. ts()
  50. while 1:
  51. tn.write('w\n')
  52. ts()
  53. tn.write('n\n')
  54. tn.close()
Add Comment
Please, Sign In to add comment