import netchat

# connect to telnet server with username and password
script = "login: haxx0r1337 password: <PASSWORD>"
netchat.Session(('localhost', 23), script).run()


import netchat

# connect to telnet server with username and password
script = "login: haxx0r1337 password: <PASSWORD>"
netchat.Session(('localhost', 23), script).run()


# connect to telnet server with username and password