Advertisement
metalx1000

Basic Telnet Client

Jul 6th, 2013
480
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.14 KB | None | 0 0
  1. #!/usr/bin/python
  2.  
  3. import telnetlib
  4.  
  5. HOST = "localhost"
  6. tn = telnetlib.Telnet(HOST, "999")
  7.  
  8. tn.write("Hello World\n")
  9. print tn.read_all()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement