in reply to Echo off in IO::Sockets
I got an answer ready for this but I had a crisis of morality.
If you can explain a good reason to have something like this, I'll answer. Until then, this is a bad attempt at getting someone to help you thwart security.
Please, no one answer until we are sure we are not helping someone make life harder on someone else.
I can only see one reason for this:
You are in a college or a library, and you see a common computer. You decide to log in and check your email through telnet on a college server. You go to the computer, run 'telnet', and wait for the "username" and "Password" prompts. When they arrive, you type in your username "naiveboy", and you type in your password "drowssap". You get an "incorrect password" message. You try again, you get the same error. You try another computer and you get connected. Unbeknownst to you, your password and username were just grabbed by the unimaginative yutz who can write enough perl to create a fake telnet client like the one above.
Let's not help the yutz above ruin someone's life.
J. J. Horner Linux, Perl, Apache, Stronghold, Unix email@example.com http://www.knoxlug.org/