Re: another expect question
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.tcl archive

Re: another expect question

From: gbarn <gbarnette@adelphia.net>
Date: Fri Mar 31 2006 - 21:24:12 CEST

The login is successful with this script and with the original script.

When typing in the password manually, the login command on the remote
machine turns keyboard echo off. That way, no password is seen on the
screen.

With the script, however, I and "sending" the password the remote system so
it also appears on the screen. If someone is looking, they can see the
password. Does that help ??

"Uwe Klein" <uwe_klein_habertwedt@t-online.de> wrote in message
news:jnb0g3-lef.ln1@robert.houseofmax.de...
> gbarn wrote:
> > The original script as presented worked fine.
> >
> > However, I have made the suggested changes and the password is still
printed
> > to my screen. The script is now:
> >
> > log_user 0
> > spawn ssh -l root kull
> > expect "word: "
> ---------------^-mind the space
> > send "password\r"
> > expect -re ".*"
> > interact
>
> is the login successfull?
>
> what happens with the password if you log in manually?
>
> uwe
>
Received on Sun Apr 30 02:55:29 2006