Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import sys
- import telnetlib
- HOST = 10.8.0.1 3333
- user = login
- password = password
- tn = telnetlib.Telnet(HOST, 23, 5)
- tn.write("login\r\n")
- tn.write(user + "\r\n")
- tn.write(password + "\r\n")
- tn.write(".say #Jeux TEST-Python\r\n") # this reboots plug 3
- tn.write(".logout\r\n")
- tn.close
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement