I want to interactively connect to a telnet server in Python and be able to both read and write text to the server. I am trying the following code to connect:
import telnetlib
host = telnetlib.Telnet("mud.accursed-lands.com",8000)
host.read_very_eager()
But when I do this nothing happends. If I wrap the host.read_very_eager()
in print then I get b''
, which I think represents an empty bit.
How can I interactively connect to this server?