Here’s a very simple, crude, yet easy to understand Python telnet client. I made this because I often need to access some old-fashioned telnet-only services — some eagle BBS services to be precise — at work. Unfortunately, the telnet port is blocked by the company’s firewall, and therefore I have no choice but using a remote UNIX server as a proxy via SSH. The server, however, does not provide the traditional telnet command for the security reasons, so I created this script to circumvent the restriction (the server has Python anyway.. interesting).

Please note that, because of its primary purpose, this script is somewhat geared toward the eagle BBS compromising some usability as a general purpose telnet client although this issue can be cured easily (see the description below). It works with Python 1.5+. OK, let’s look around the source code first (or click here to download). Here we go:

(more…)