Enables telnet access on certain Netgear devices
This code did not quite work for me on OS X, but it was OK on Debian:
http://www.seattlewireless.net/telnetenable.c
I've made changes so it works on OS X 10.7.4. I've also added some comments to clarify what was wrong.