Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import sys
- import telnetlib
- HOST = '10.25.0.10'
- user = 'cctc'
- password = 'dangermouse'
- tn = telnetlib.Telnet(HOST)
- tn.read_until("login: ")
- tn.write(user + "\n")
- if password:
- tn.read_until("Password: ")
- tn.write(password + "\n")
- tn.write("ls\n")
- tn.interact()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement