Nuno Carvalho wrote:
> I'm trying to, using socket programming, ask the remote user for login
> and password. I would like that password won't appears on remote machine
> when user is typing it. I already saw RFC's but it doesn't worked ! :(((
>
> Could someone send me such part of code !?
> Should IAC + DONT + TELOPT_ECHO sent to socket or client descriptor !?
According to Stevens[1], the procedure is:
1. server sends WILL ECHO
2. client sends DO ECHO, and disables local echo
3. server sends `Password: '
4. client sends typed password
5. server sends CR LF
6. server sends WONT ECHO
7. client sends DONT ECHO, and enables local echo
Note that this will only work if the client is actually using the
telnet protocol. Some telnet clients only use the telnet protocol when
connecting to port 23.
[1]
TCP/IP Illustrated
W Richard Stevens
Addison Wesley
--
Glynn Clements <[EMAIL PROTECTED]>