Solved

Telnet - disabling the echo

Posted on 2002-07-28
5
485 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
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 20

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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
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.

708 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now