Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- import telnetlib
- tn = telnetlib.Telnet(ip, port)
- print (tn.read_until("Username: "))
- tn.write(“lab“+ "n")
- print (tn.read_until(“Password: "))
- tn.write(“lab” + "n")
- print (tn.read_until("#"))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement