[NCLUG] CHAT script and bad password

Brian Stanback bhs at stanback.net
Tue Oct 24 19:09:08 MDT 2000


You can get rid of the ^ in the password by doing a $password =~ s/\^//g;
or you can tell the user this is an invalid character with a simple if
statement...
if ($password =~ /\^/)
{
   print "Don't use the ^ carrot symbol please\n";
}

I am not sure how to make this a legal character.
I wrote a pretty neat chat script ,in perl, a while ago. I'll let you
take a look at it if you need any examples.

On Tue, 24 Oct 2000, Stephen G. Smith wrote:

> I have a chat script that has a problem
> with using the ^ symbol in a password.
> I know the dialup works due to changing
> the password to something else and having
> success. I can recreate the problem by inserting
> an account with a password that includes a ^ .
> 
> I am not a programmer but I am guessing
> that the ^ is a reserved character.
> 
> Any hints on
> 
> A. Why does this happen?
> B. Can I make the script pass the ^ as a legal
>    character?
> 
> Thanks,
> 
> SGS
> _________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
> 
> Share information about yourself, create your own public profile at 
> http://profiles.msn.com.
> 
> _______________________________________________
> NCLUG mailing list
> NCLUG at nclug.org
> http://www.nclug.org/mailman/listinfo/nclug
> 

-- 
Brian Stanback
http://www.stanback.net




More information about the NCLUG mailing list