This was common-practice back in the early 2000s, when you had to troubleshoot your webapp in production and the hosting company didn't provide you with ssh access (or it was too overpriced and/or required too much red tape).
I was particularly fond of this one:
http://www.rohitab.com/cgi-telnet
Don't miss the screenshots there :D