home *** CD-ROM | disk | FTP | other *** search
- #include <stdio.h>
- #include <string.h>
- #include <conio.h>
-
- char text[9];
- unsigned char bits[96];
- char password[13];
-
- main()
- {
- cputs("╔══════════════════════════════════════════════════════════════════════════════╗");
- cputs("║ TEST4 by LordByte SOLVED ║");
- cputs("║ All the hard work was done in 1997 by CR00CK ║");
- cputs("║ Enter 8 chars to be contained on the end of 12 char password ║");
- cputs("║ BTW: genpass.c is JUST 31 lines long!!!!!! ║");
- cputs("╚══════════════════════════════════════════════════════════════════════════════╝");
- do {
- printf("\nEnter text (8 chars): ");
- scanf("%8s", text);
- } while (strlen(text) != 8);
- strcpy(&(password[4]), text);
- password[0] = text[7] ^ 6;
- password[1] = 'a';
- password[2] = 't';
- password[3] = text[0] ^ text[1] ^ text[2] ^ text[3] ^ text[4] ^ text[5] ^
- text[6] ^ password[0] ^ 57;
- printf("Password is: %s\n", password);
- printf("Hex: %x %x %x %x %x %x %x %x %x %x %x %x\n", password[0], password[1],
- password[2], password[3], password[4], password[5], password[6],
- password[7], password[8], password[9], password[10], password[11]);
- return 0;
- }