For Programmers: Free Programming Magazines  


Home > Archive > PERL Miscellaneous > October 2006 > Net::Telnet, wrong prompt, user not needed only password is requested









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Net::Telnet, wrong prompt, user not needed only password is requested
georg.heiss@gmx.de

2006-10-30, 7:10 pm

Hi,
with:
$ netcat 192.168.1.254 23
i get this prompt:
??????!????Fritz!Box web password:
and after typing the password and
# ls
the telnet session works fine.

but with perl:
my $telnet =3D new Net::Telnet (Timeout =3D> 55, Prompt =3D> '/# /');
$telnet->open('192.168.1.254');
$telnet->login('root', 'passwd'); # user not needed only password is
requested
my @lines =3D $telnet->cmd("ls");

i get a timeout. Any Idea???
thanks
georg

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com