[13119] in bugtraq
Re: HP Secure Web Console
daemon@ATHENA.MIT.EDU (Thillmann, Rolf)
Tue Dec 28 11:59:11 1999
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Message-Id: <2F099B8E66D1D211BCA100A0C978B8C8300E86@U8D22>
Date: Tue, 28 Dec 1999 15:46:45 +0100
Reply-To: "Thillmann, Rolf" <Rolf.Thillmann@TELEKOM.DE>
From: "Thillmann, Rolf" <Rolf.Thillmann@TELEKOM.DE>
X-To: "BUGTRAQ@SECURITYFOCUS.COM" <BUGTRAQ@SECURITYFOCUS.COM>
To: BUGTRAQ@SECURITYFOCUS.COM
William Randolph Royere III wrote:
>
> #include <stdio.h>
> #include <ctype.h>
>
> void main() {
> int user_input;
> while((user_input=getchar())) {
>
> if (islower(user_input))
> user_input = 'a' + (user_input - 'a' + 18) % 26;
> if (isupper(user_input))
> user_input = 'A' + (user_input - 'A' + 18) % 26;
>
> /* convert to string and put a reverse string function here */
> putchar(user_input);
> }
I think the program has to be modified a bit:
...
if (islower(user_input))
user_input = 'A' + (user_input - 'a' + 18) % 26;
else if (isupper(user_input))
user_input = 'a' + (user_input - 'A' + 18) % 26;
...
--
Rolf Thillmann