Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/python
- import telnetlib
- HOST = "localhost"
- tn = telnetlib.Telnet(HOST, "999")
- tn.write("Hello World\n")
- print tn.read_all()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement