Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Telnet - disabling the echo

Posted on 2002-07-28
5
Medium Priority
?
491 Views
Last Modified: 2010-04-21
Hi

I'm creating a Telnet like programm.
I want to know, how can I send data to the remote telnet (the telnet to connect to me), so a string will not echo (such as in password scanarios).
I can't find where in the RFC it's defined.

Can anyone help ?

Liron
0
Comment
Question by:lirong
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 51

Expert Comment

by:ahoffmann
ID: 7183769
man ioctl
man stty
0
 
LVL 14

Expert Comment

by:chris_calabrese
ID: 7185567
As for the RFC's, they're mum because it's not a protocol issue, but rather an issue for the host the server is running on (whether the OS thinks it should do character echo or not).
0
 

Expert Comment

by:skatethere
ID: 7267200
You've probably figured this out by now, but if not...

Most telnet client/servers negotiate two options that control the state of character echo: WILL ECHO and WILL SUPPRESS GO AHEAD.

These two settings specify that each character should be sent from the client to the server, echoed by the server, and displayed on the client when the echo is received.  This reverses what the original RFC854 says about all echos being local and all transmissions been line-at-a-time.

This is done in order to allow the server to control whether or not a character is echoed (and to improve interactivity).  With these settings in place, all a server needs to do to hide a password is to not echo it.

Practially speaking, if you are running a shell on your server to interact with the client, you would call 'stty -echo' to effect this change, and then 'stty echo' to reestablish echo.

In a program, look at the termio(7) ioctl(2).

  --kirby
0
 
LVL 21

Expert Comment

by:tfewster
ID: 7921715
No comment has been added lately, so it's time to clean up this Topic Area.
I will leave a recommendation for this question in the Cleanup topic area as follows:

- PAQ, no points refunded

Please leave any comments here within the next 7 days

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER !

tfewster
Cleanup Volunteer
0
 

Accepted Solution

by:
SpideyMod earned 0 total points
ID: 7967308
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Suggested Courses

715 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question