Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import sys
- import telnetlib
- import time
- def ts():
- time.sleep(2)
- username = 'nunu'
- password = 'abbaqueenfish'
- HOST = 'mud.finalchallenge.net'
- tn = telnetlib.Telnet(HOST, 4000)
- data = tn.read_until('By what name do you wish to be known?')
- ts()
- tn.write(username+"\n")
- tn.read_until('Is this the name you want:')
- ts()
- tn.write('y\n')
- tn.read_until('Give me a password for ')
- ts()
- tn.write(password+'\n')
- tn.read_until('Please retype password:')
- ts()
- tn.write(password+'\n')
- tn.read_until('What is your sex (M/F)?')
- ts()
- tn.write('m\n')
- tn.read_until('Press <return> to continue.')
- ts()
- tn.write('\n')
- tn.read_until('''Please select race, ''')
- ts()
- tn.write('1\n')
- tn.read_until('''Please select a hometown, ''')
- ts()
- tn.write('1\n')
- tn.read_until('Please select class,')
- ts()
- tn.write('2\n')
- tn.read_until('acknowledge that you have read, agree to')
- ts()
- tn.write('yes\n')
- tn.read_until('Please enter e-mail address')
- ts()
- tn.write('\n')
- tn.read_until('Accept?')
- ts()
- tn.write('y\n')
- tn.read_until('Press RETURN to continue:')
- ts()
- tn.write('\n')
- ts()
- while 1:
- tn.write('w\n')
- ts()
- tn.write('n\n')
- tn.close()
Add Comment
Please, Sign In to add comment